:root {
  --bg: #000;
  --glass: rgba(255, 255, 255, .05);
  --glass-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .10);
  --border-soft: rgba(255, 255, 255, .06);
  --text: #fff;
  --primary: #4169E1;
  --primary-2: #5179F1;
  --nav-offset-fallback: 96px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-y: hidden;
}

img {
  max-width: 100%;
  display: block
}

/* Screens */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease
}

.screen.active {
  opacity: 1;
  z-index: 1
}

/* Welcome */
#screen1 {
  background-image: url('../assets/welcome.jpg');
  background-size: cover;
  background-position: center
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4)
}

.title {
  position: absolute;
  top: 40px;
  left: 60px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 2px;
  color: #a67b5b;
  opacity: 0;
  animation: fadeIn 1.2s .4s forwards
}

.arrow-btn {
  position: absolute;
  bottom: 54px;
  right: 60px;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .3s;
  opacity: 0;
  animation: fadeIn 1.2s .4s forwards;
  background: transparent
}

.arrow-btn::before {
  content: "→";
  color: #fff;
  font-size: 1.8em
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, .1);
  transform: scale(1.05)
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Main */
#screen2 {
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  scroll-behavior: smooth;
  background: #000; /* Solid black background so nothing from below shows */
}

#screen2::-webkit-scrollbar {
  width: 8px;
}

#screen2::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
}

#screen2::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .08);
  border-radius: 10px
}

#screen2::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .12);
}

/* Background animation */
.reactive-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden
}

.bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0/24px 24px;
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .9) 40%, rgba(0, 0, 0, 0) 85%);
  opacity: .95;
  will-change: transform
}

.glow {
  position: absolute;
  inset: -12% -12%;
  mix-blend-mode: screen;
  background:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, 45%), rgba(56, 132, 255, var(--g1, 0.18)), transparent 65%),
    radial-gradient(240px circle at calc(var(--mx, 50%) + 12%) calc(var(--my, 45%) + 8%), rgba(56, 189, 248, var(--g2, 0.12)), transparent 60%),
    radial-gradient(980px circle at 50% 105%, rgba(33, 84, 230, var(--g3, 0.10)), transparent 70%)
}

.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .72;
  will-change: transform, opacity
}

.orb1 {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #0ea5e9, transparent 60%);
  transform: translate(var(--px1, 0px), var(--py1, 0px))
}

.orb2 {
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle at 70% 70%, #22d3ee, transparent 60%);
  transform: translate(var(--px2, 0px), var(--py2, 0px))
}

.orb3 {
  top: 40%;
  left: 55%;
  background: radial-gradient(circle at 50% 50%, #60a5fa, transparent 60%);
  transform: translate(-50%, -50%) translate(var(--px3, 0px), var(--py3, 0px))
}

/* Nav - dark turquoise */
.nav {
  position: sticky;
  top: 0;
  z-index: 100 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(26, 109, 114, 0.95); /* dark turquoise #1a6d72 */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15)
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

/* Logo Styles */
.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

/* Remove the old logo styles */
.logo {
  display: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #fff 0%, #e0f7fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-toggle {
  font-size: 1.6rem;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: .1rem .45rem;
  border-radius: 10px;
  cursor: pointer
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  z-index: 101;
  position: relative
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  padding: .55rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: .25s;
  display: flex;
  align-items: center;
  gap: .4rem
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.has-dropdown .dropdown::after {
  content: '⌄';
  font-size: .8rem;
  opacity: .8;
  margin-left: .25rem;
  transition: transform .3s
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 115%
}

.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  min-width: 260px;
  background: rgba(26, 109, 114, 0.98); /* dark turquoise */
  border-radius: 18px;
  backdrop-filter: blur(20px);
  padding: .8rem 0;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 200;
  box-shadow: 0 0 35px rgba(26, 109, 114, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  top: 115%
}

.dropdown-menu a {
  display: block;
  padding: .9rem 1.2rem;
  margin: .3rem .6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin: 4px 0;
  opacity: 0.85;
  transition: opacity .2s ease;
}
.footer a:hover { opacity: 1; }

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.footer h4 {
  margin-bottom: .5rem;
  font-weight: 600;
  color: #fff;
}
.footer-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}

@media (max-width:900px) {
  .nav-toggle {
    display: block
  }

  .nav-links {
    display: none;
    background: rgba(26, 109, 114, 0.98); /* dark turquoise for mobile */
    position: absolute;
    top: calc(var(--nav-offset, var(--nav-offset-fallback)));
    left: 0;
    right: 0;
    flex-direction: column;
    padding: .75rem;
    width: 100vw;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-links a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    display: flex
  }
}

/* Auth buttons */
.auth-buttons {
  display: flex;
  gap: .75rem;
  align-items: center;
  z-index: 101 !important;
  position: relative;
}

.auth-buttons a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  transition: all .18s ease;
  position: relative;
  z-index: 102 !important;
}

.sign-in {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: .55rem 1.25rem;
  border-radius: 50px;
}

.sign-in:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.sign-up-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: .55rem 1.25rem;
  border-radius: 50px;
}

.sign-up-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Auth state styles */
.user-welcome {
  color: #fff;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
}

/* Backdrop for Services */
.nav-backdrop {
  position: fixed;
  inset: var(--nav-offset, var(--nav-offset-fallback)) 0 0 0;
  z-index: 90;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto
}

/* Layout */
:root {
  --nav-offset: var(--nav-offset-fallback)
}

/* HERO – force full screen so nothing from below shows */
.hero {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) 1.25rem;
  /* push content down so it clears the sticky nav */
  padding-top: calc(var(--nav-offset) + 3rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  min-height: 100vh; /* full viewport height */
}

.hero h2 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #4a3b5c 0%, #2a1f3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase
}

.hero-sub {
  color: #cfcfcf;
  margin-bottom: 1.25rem;
  max-width: 42ch
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

.primary-btn,
.secondary-btn {
  border-radius: 50px;
  font-size: 1rem;
  padding: 1rem 1.8rem;
  text-decoration: none;
  color: #fff;
  transition: .25s;
  display: inline-block
}

.primary-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .32)
}

.secondary-btn {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18)
}

.hero.fade {
  opacity: .4;
  filter: blur(3px);
  transition: .25s
}

@media (max-width:900px) {
  .hero {
    grid-template-columns: 1fr
  }
}

/* Sections / scroll anchor */
section {
  scroll-margin-top: calc(var(--nav-offset) + 10px)
}

/* MAIN SECTION SYSTEM – full-screen feature blocks */
.section {
  min-height: 100vh;                /* one full screen per section */
  padding: 6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0;
  border: none;
  overflow: hidden;
}

/* Individual section backgrounds */
#broker {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .45)),
    url("../assets/broker integration.webp");
}

#ai {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .45)),
    url("../assets/ai powered.webp");
}

#tools {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .45)),
    url("../assets/comprehensive tradingtool.webp");
}

#education {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .45)),
    url("../assets/educational research.webp");
}

#risk {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .45)),
    url("../assets/risk management.webp");
}

.section-inner {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center
}

/* Text blocks */
.section-content {
  max-width: 900px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s, transform .6s;
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  backdrop-filter: blur(0.5px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0)
}

.section h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: .75rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  font-weight: 700;
}

.section p {
  opacity: 0.95;
  color: #f8f8f8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Old visual card — not used now but kept safe */
.feature-visual {
  display: none;
}

.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}

@media (max-width:960px) {
  .section-inner {
    grid-template-columns: 1fr
  }
}

/* Support (selected rules) */
.support-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px
}

.support-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem
}

.muted {
  opacity: .85
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .06);
  font-size: .9rem
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.status-pill.online .dot {
  background: #22c55e
}

.support-search {
  display: flex;
  gap: .5rem;
  margin: 1rem 0 1.8rem
}

.support-search input {
  flex: 1;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff
}

.support-search button {
  padding: .85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  color: #fff;
  cursor: pointer
}

.support-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem
}

@media (max-width:1000px) {
  .support-grid {
    grid-template-columns: 1fr
  }
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-bottom: 1.2rem
}

@media (max-width:820px) {
  .contact-cards {
    grid-template-columns: 1fr
  }
}

.card {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .06);
  padding: 1rem;
  border-radius: 14px;
  transition: .2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.card-icon {
  font-size: 1.2rem;
  line-height: 1
}

.faq-title {
  margin: 1rem 0 .6rem
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  margin-bottom: .6rem;
  overflow: hidden
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 1rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.faq-q::after {
  content: '+';
  opacity: .8;
  transition: .2s
}

.faq-q[aria-expanded="true"]::after {
  content: '–';
  opacity: 1
}

.faq-a {
  padding: 0 1.1rem 1rem;
  opacity: .95
}

/* Ticket form */
.ticket-form {
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .05);
  padding: 1.1rem;
  border-radius: 14px
}

.ticket-form h4 {
  margin-bottom: .6rem
}

.ticket-form .row {
  display: flex;
  gap: .8rem;
  margin-bottom: .8rem;
  flex-wrap: wrap
}

.ticket-form .col {
  flex: 1 min(260px, 100%)
}

.ticket-form .col.full {
  flex: 1 0 100%
}

.ticket-form label {
  display: block;
  margin-bottom: .35rem;
  font-size: .9rem
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: #fff
}

.ticket-form textarea {
  resize: vertical
}

.ticket-form .submit-btn {
  margin-top: .2rem
}

.form-feedback {
  margin-top: .5rem
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}
/* Auth overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.auth-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-container {
  background: rgba(20, 20, 20, .85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  width: min(680px, 92vw);
  color: #fff;
  position: relative;
  box-shadow: 0 12px 60px rgba(0, 200, 200, .06), inset 0 0 60px rgba(255, 255, 255, .02);
  z-index: 10000 !important;
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: transform .2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

.form-group {
  margin-bottom: 1rem
}

label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem
}

input,
select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: .95rem;
  transition: border-color .2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .35)
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: .2s
}

.submit-btn:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Password icon — far-right, middle */
.pw-field {
  position: relative
}

.pw-field input {
  width: 100%;
  padding-right: 48px
}

#togglePassword {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  fill: #cfd6e0;
  opacity: .9;
  cursor: pointer;
  transition: opacity .18s, transform .12s
}

#togglePassword:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.02)
}

#togglePassword:active {
  transform: translateY(-50%) scale(.96)
}

.hint {
  font-size: .8rem;
  color: #c9e4ff;
  margin-top: .35rem;
  min-height: 1em;
  transition: color .2s ease;
}

/* Signup "bubble" */
.auth-container.bubble {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(20, 20, 20, 0.88));
  border-radius: 24px;
  box-shadow: 0 12px 60px rgba(0, 200, 200, 0.06), inset 0 0 60px rgba(255, 255, 255, 0.02);
  animation: bubbleFloat 6s ease-in-out infinite alternate;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) scale(1)
  }

  100% {
    transform: translateY(-6px) scale(1.008)
  }
}

/* Signup fields transition */
.signup-field {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Chat widget */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  cursor: pointer;
  z-index: 990;
  transition: all .2s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  background: rgba(255, 255, 255, .12);
}

.chat-fab svg {
  width: 22px;
  height: 22px;
  fill: #e5ecff;
  opacity: .9
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  width: min(360px, 92vw);
  max-height: min(60vh, 540px);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(12, 12, 14, .94);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 990
}

.chat-panel.open {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-soft)
}

.chat-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform .2s ease;
}

.chat-close:hover {
  transform: scale(1.1);
}

.chat-body {
  padding: 10px 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.chat-msg {
  max-width: 75%;
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform .2s ease;
}

.chat-msg.user {
  background: #1e293b;
  align-self: flex-end
}

.chat-msg.bot {
  background: #0f172a;
  align-self: flex-start
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: .8rem;
  border-top: 1px solid var(--border-soft)
}

.chat-form input {
  flex: 1;
  padding: .65rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .06);
  color: #fff
}

.chat-send {
  padding: .65rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--glass-strong);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

.chat-send:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Accounts page specific styles */
.accounts-shell {
  position: relative;
  z-index: 1;
}

.pricing {
  padding: 2rem 4rem 1rem;
  position: relative;
  z-index: 1;
}

.pricing h2 {
  text-align: center;
  color: #dfe3ec;
  font-size: 4rem;
  letter-spacing: .03em;
  margin-bottom: 1rem;
  text-transform: capitalize;
  font-weight: 400;
}

.billing-toggle {
  width: max-content;
  margin: .25rem auto 1.5rem;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}

.bill-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font: 600 .95rem/1 "Poppins", system-ui;
  color: #e6e9f2;
  background: transparent;
  transition: all .18s ease;
}

.bill-btn[aria-pressed="true"] {
  background: #1f2536;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(12, 1fr);
}

.plan {
  grid-column: span 3;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(10, 10, 10, .8));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 22px;
  color: #fff;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}

/* DARK TURQUOISE GLOW IN PLAN CARD */
.plan:before {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 109, 114, .28), rgba(26, 109, 114, 0) 70%);
  pointer-events: none;
  filter: blur(18px);
}

.plan .name {
  font-weight: 700;
  text-align: center;
  margin-top: .25rem;
  margin-bottom: 1.25rem;
  opacity: .95;
}

.price {
  text-align: center;
  margin: .25rem 0 1rem;
}

.amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.per {
  display: block;
  font-size: .85rem;
  opacity: .8;
  margin-top: .25rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: .5rem 0 1.2rem;
}

.features li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: #cfd3dc;
}

.features li:before {
  content: "✓";
  color: #7df5c3;
  margin-top: .1rem;
}

.cta {
  display: flex;
  justify-content: center;
}

/* DARK TURQUOISE SELECT PLAN BUTTON */
.select-plan {
  border-radius: 999px;
  border: 1px solid rgba(26, 109, 114, 0.95);
  background: #1a6d72; /* dark turquoise */
  color: #fff;
  padding: .7rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  transition: all .18s ease;
  width: 100%;
  max-width: 200px;
}

.select-plan:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.badge-popular {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 214, 102, .12);
  color: #ffdd87;
  border: 1px solid rgba(255, 214, 102, .3);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}

.compare {
  position: relative;
  max-width: 1220px;
  margin: 24px auto 40px;
  padding: 0 16px;
  color: #fff;
}

.compare h3 {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: 4rem;
  letter-spacing: .02em;
}

.compare .sub .hl {
  color: #ffdd87;
}

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(10, 10, 10, .65);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
}

.table-compare {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  color: #e9edf7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-compare thead th {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 22, .95);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.table-compare thead th:first-child {
  text-align: left;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.table-compare thead th:not(:first-child) {
  font-weight: 700;
  text-align: center;
}

.table-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
}

.table-compare td:first-child {
  text-align: left;
  color: #cfd3dc;
}

.table-compare .strong {
  font-weight: 800;
}

.table-compare .muted {
  color: #9aa3b2;
}

.table-compare tfoot td {
  padding: 16px;
  background: rgba(255, 255, 255, .02);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* DARK TURQUOISE COMPARE BUTTONS */
.compare .cta-btn {
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(26, 109, 114, 0.95);
  background: #1a6d72;
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.compare .cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.compare-foot {
  text-align: center;
  color: #9aa3b2;
  font-size: 12px;
  margin-top: 10px;
}

.accounts-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.25rem 4rem 2rem;
}

.accounts-hero h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.accounts-hero .muted {
  color: #cfd3dc;
  opacity: .85;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 4rem 1rem;
}

.tab {
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
  color: #eaeaea;
  padding: .65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: all .18s ease;
  font-size: .95rem;
}

.tab[aria-selected="true"] {
  background: #4169E1;
  border-color: transparent;
  color: #fff;
}

.panels {
  padding: 0 4rem 3rem;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

.kpi {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: all .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
}

.btn.primary {
  background: #4169E1;
  border-color: transparent;
}

.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: .75rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.row-line:last-child {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
}

.badge.ok {
  background: rgba(94, 255, 178, .09);
  border-color: rgba(94, 255, 178, .25);
}

.badge.warn {
  background: rgba(255, 214, 102, .1);
  border-color: rgba(255, 214, 102, .3);
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.f-6 {
  grid-column: span 6;
}

.f-12 {
  grid-column: span 12;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: border-color .2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .35);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  display: inline-block;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  border-radius: 999px;
  transition: all .2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: all .2s ease;
}

.switch input:checked+.slider {
  background: #4169E1;
}

.switch input:checked+.slider:before {
  transform: translateX(20px);
}

/* Responsive logo */
@media (max-width: 768px) {
  .nav-logo {
    width: 30px;
    height: 30px;
  }
  
  .brand-name {
    font-size: 1rem;
  }
}

@media (max-width:1100px) {
  .plan {
    grid-column: span 6;
  }
}

@media (max-width:700px) {
  .pricing {
    padding: 1.25rem 1.25rem .75rem;
  }

  .grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .col-3,
  .col-4,
  .col-6,
  .col-8,
  .col-12 {
    grid-column: span 6;
  }

  .accounts-hero {
    padding: 1rem 1.25rem 1.25rem;
  }

  .tabs {
    padding: 0 1.25rem 1rem;
  }

  .panels {
    padding: 0 1.25rem 3rem;
  }
}

@media (max-width:414px) {
  .sign-up-btn {
    display: none;
  }

  .nav-toggle {
    margin-left: 40px;
    padding: 2px 20px;
    border-radius: 70px;
  }

  .cta-buttons {
    display: flex !important;
  }

  .hero {
    margin: 0;
    padding: 8px;
  }

  .hero-content h2 {
    font-size: 4rem !important;
  }

  .nav-links a {
    padding: 1rem 0;
    width: 200px;
    display: block;
    text-align: center;
  }
}

/* ========================================= */
/* FIX FOR ACCOUNTS PAGE AUTHENTICATION */
/* ========================================= */

/* Fix for accounts page auth buttons */
#screen2 .auth-buttons a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure auth overlay is above everything */
.auth-overlay {
  z-index: 9999 !important;
}

.auth-container {
  z-index: 10000 !important;
}

/* Make sure auth buttons are clickable on accounts page */
.accounts-shell .auth-buttons a,
.pricing ~ .auth-buttons a,
.compare ~ .auth-buttons a {
  pointer-events: auto !important;
  cursor: pointer !important;
}
/* Force identical Back-to-Top button shape */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;     /* <-- THIS makes it round */
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}
.footer-disclaimer-wrap {
  max-width: 1200px;         /* same width feel as your columns */
  margin: 0 auto 2rem auto;  /* center it and add space under */
  padding: 0 1.5rem;
}

.risk-disclaimer {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #bfbfbf;
  text-align: center;        /* center across full width */
}

.risk-disclaimer strong {
  color: #e0e0e0;
  display: block;
  margin-bottom: 0.75rem;
}
html, body {
  height: 100%;
  overflow-y: auto !important;
}
/* ===========================
   Auth modal (Market Llama)
   =========================== */

.auth-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
}

.auth-overlay[aria-hidden="false"] {
  display: flex;
}

.auth-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 1.75rem;
  padding: 1.75rem 1.75rem 1.4rem;
  border-radius: 20px;
  background: rgba(8, 12, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  color: #fff;
}

.close-btn {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.2rem;
}

.auth-container .form-group {
  margin-bottom: 0.9rem;
}

.auth-container label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  display: block;
  opacity: 0.9;
}

.auth-container input,
.auth-container select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.95);
  
  font-size: 0.9rem;
}

.auth-container input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.pw-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding-right: 0.25rem;
}

.pw-field input {
  border: none;
  background: transparent;
  padding-right: 0;
}

.pw-field input:focus {
  outline: none;
}

.pw-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  
  padding: 0 0.45rem;
}

.password-strength {
  margin-top: 0.45rem;
}

.password-strength-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 1);
  overflow: hidden;
}

.password-strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #4b5563;
  transition: width 0.18s ease, background-color 0.18s ease;
}

.password-strength-text {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

.hint {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #fbbf24;
}

.submit-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  background: #4169e1;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.submit-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.form-feedback {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* bottom switch row */
.auth-switch-row {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  text-align: center;
}

.auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.35rem;
  font-size: 0.88rem;
  text-decoration: underline;
  color: #60a5fa;
  cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .auth-container {
    margin: 1.25rem;
    padding: 1.3rem 1.2rem 1.1rem;
    border-radius: 18px;
  }

  .auth-title {
    font-size: 1.25rem;
  }

  .auth-subtitle {
    font-size: 0.86rem;
  }
}