:root {
  color-scheme: dark;
  --theme-bg: #090a0c;
  --theme-bg-soft: #0f1115;
  --theme-surface: #15181e;
  --theme-surface-raised: #1b1f27;
  --theme-text: #ffffff;
  --theme-text-muted: #b6bac4;
  --theme-border: #30343d;
  --theme-gold: #d4af37;
  --theme-gold-bright: #f1d675;
  --theme-gold-soft: rgba(212, 175, 55, 0.14);
  --theme-shadow: rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #ffffff;
  --theme-bg-soft: #f8f7f3;
  --theme-surface: #ffffff;
  --theme-surface-raised: #f4f1e8;
  --theme-text: #111216;
  --theme-text-muted: #5e626c;
  --theme-border: #ddd8ca;
  --theme-gold: #a98210;
  --theme-gold-bright: #c9a227;
  --theme-gold-soft: rgba(169, 130, 16, 0.12);
  --theme-shadow: rgba(20, 18, 12, 0.11);
}

html,
body {
  background: var(--theme-bg);
  color: var(--theme-text);
  transition: background-color 180ms ease, color 180ms ease;
}

body,
.main,
.section-box,
.banner-hero,
.footer,
.bg-6-opacity-30 {
  background-color: var(--theme-bg) !important;
}

.header-top {
  background: #050608 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

html[data-theme="light"] .header-top {
  background: #111216 !important;
}

.header-top a,
.header-top span,
.footer a:hover,
.main-menu > li > a:hover,
.mobile-menu a:hover {
  color: var(--theme-gold-bright) !important;
}

.header,
.header.stick,
.sticky-bar.stick {
  background: color-mix(in srgb, var(--theme-bg) 94%, transparent) !important;
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 12px 34px var(--theme-shadow);
  backdrop-filter: blur(16px);
}

.header .main-header .header-right {
  width: auto;
  max-width: 340px;
  min-width: 300px;
}

.header .main-header .header-right .block-signin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.main-menu > li > a,
.mobile-menu a,
.header-logo a,
.footer h4,
.footer h5 {
  color: var(--theme-text) !important;
}

.brand-logo {
  align-items: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.brand-logo picture {
  display: block;
  line-height: 0;
}

.brand-logo-image {
  display: block;
  width: 270px;
  height: auto;
  max-width: 270px;
  max-height: 42px;
  object-fit: contain;
}

.mobile-header-active,
.mobile-header-wrapper-inner,
.mobile-header-content-area,
.perfect-scroll {
  background: var(--theme-surface) !important;
}

.mobile-header-border,
.footer-bottom,
.line-bd-bottom,
.line-bd-green {
  border-color: var(--theme-border) !important;
}

.color-gray-900,
.color-gray-1100,
.text-heading-1,
.text-heading-2,
.text-heading-3,
.text-heading-4,
.text-heading-5,
.text-heading-6,
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  color: var(--theme-text) !important;
}

.color-gray-400,
.color-gray-500,
.color-gray-600,
.text-body-text,
.text-body-text-md,
.text-body-small,
.text-body-excerpt,
.text-body-lead,
.text-body-lead-large,
p,
.site-copyright {
  color: var(--theme-text-muted) !important;
}

a,
.color-green-900,
.tag-top {
  color: var(--theme-gold) !important;
}

.tag-1,
.bg-6,
.bg-green-900 {
  background: var(--theme-gold-soft) !important;
  color: var(--theme-gold-bright) !important;
  border: 1px solid rgba(212, 175, 55, 0.34);
}

.box-gray-100,
.box-pricing-item,
.card-grid-style-2,
.card-grid-style-5,
.list-icons .item-icon,
.box-signup,
.block-chart,
.block-image-bottom {
  background: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
  box-shadow: 0 18px 50px var(--theme-shadow) !important;
}

.box-pricing-item:hover,
.card-grid-style-2:hover,
.card-grid-style-5:hover,
.list-icons .item-icon:hover {
  border-color: var(--theme-gold) !important;
  box-shadow: 0 20px 52px var(--theme-shadow), 0 0 0 1px var(--theme-gold-soft) !important;
}

/* Pricing cards keep readable theme colors in every interaction state. */
.block-pricing-2 .pricing-card,
.block-pricing-2 .pricing-card.active {
  background: var(--theme-surface) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text) !important;
}

.block-pricing-2 .pricing-card:hover,
.block-pricing-2 .pricing-card:focus-within {
  background: var(--theme-surface-raised) !important;
  border: 1px solid var(--theme-gold) !important;
  color: var(--theme-text) !important;
  box-shadow: 0 22px 56px var(--theme-shadow), 0 0 0 1px var(--theme-gold-soft) !important;
}

.block-pricing-2 .pricing-card .box-info-price,
.block-pricing-2 .pricing-card .text-heading-3,
.block-pricing-2 .pricing-card .text-heading-5,
.block-pricing-2 .pricing-card:hover .text-heading-3,
.block-pricing-2 .pricing-card:hover .text-heading-5,
.block-pricing-2 .pricing-card.active .text-heading-3,
.block-pricing-2 .pricing-card.active .text-heading-5,
.block-pricing-2 .pricing-card:focus-within .text-heading-3,
.block-pricing-2 .pricing-card:focus-within .text-heading-5 {
  color: var(--theme-text) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.block-pricing-2 .pricing-card .text-body-small,
.block-pricing-2 .pricing-card:hover .text-body-small,
.block-pricing-2 .pricing-card.active .text-body-small,
.block-pricing-2 .pricing-card:focus-within .text-body-small {
  color: var(--theme-text-muted) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.block-pricing-2 .pricing-card .line-bd-bottom,
.block-pricing-2 .pricing-card:hover .line-bd-bottom,
.block-pricing-2 .pricing-card.active .line-bd-bottom {
  border-color: var(--theme-border) !important;
}

.block-pricing-2 .pricing-card .list-package-feature li,
.block-pricing-2 .pricing-card:hover .list-package-feature li,
.block-pricing-2 .pricing-card.active .list-package-feature li,
.block-pricing-2 .pricing-card:focus-within .list-package-feature li {
  position: relative;
  background-image: none !important;
  color: var(--theme-text) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.block-pricing-2 .pricing-card .list-package-feature li::before {
  content: "\2713";
  position: absolute;
  top: 2px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--theme-gold);
  color: #090a0c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.block-pricing-2 .pricing-card .btn.btn-black,
.block-pricing-2 .pricing-card:hover .btn.btn-black,
.block-pricing-2 .pricing-card.active .btn.btn-black,
.block-pricing-2 .pricing-card:focus-within .btn.btn-black {
  background: var(--theme-gold) !important;
  background-image: none !important;
  border: 1px solid var(--theme-gold) !important;
  color: #090a0c !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.block-pricing-2 .pricing-card .btn.btn-black:hover,
.block-pricing-2 .pricing-card .btn.btn-black:focus-visible {
  background: var(--theme-gold-bright) !important;
  border-color: var(--theme-gold-bright) !important;
  color: #090a0c !important;
}

.btn.btn-black,
.btn.btn-default,
.btn-green-full,
button[type="submit"] {
  background: var(--theme-gold) !important;
  border-color: var(--theme-gold) !important;
  color: #090a0c !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.2);
}

.btn.btn-black:hover,
.btn.btn-default:hover,
.btn-green-full:hover,
button[type="submit"]:hover {
  background: var(--theme-gold-bright) !important;
  border-color: var(--theme-gold-bright) !important;
  color: #090a0c !important;
  transform: translateY(-2px);
}

.btn.btn-link {
  color: var(--theme-text) !important;
}

.btn.btn-link:hover {
  color: var(--theme-gold-bright) !important;
}

.form-control,
input,
textarea,
select {
  background: var(--theme-surface-raised) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--theme-text-muted) !important;
  opacity: 0.8;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--theme-gold) !important;
  box-shadow: 0 0 0 3px var(--theme-gold-soft) !important;
}

.box-line-throught::before,
.box-line-throught::after {
  background: var(--theme-border) !important;
}

.box-line-throught span {
  background: var(--theme-bg) !important;
}

.footer {
  border-top: 1px solid var(--theme-border);
}

.footer-social a,
.icon-socials {
  filter: sepia(1) saturate(3) hue-rotate(2deg) brightness(1.08);
}

.certificate-card {
  display: block;
  max-width: 620px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface);
  box-shadow: 0 18px 50px var(--theme-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.certificate-card:hover,
.certificate-card:focus-visible {
  border-color: var(--theme-gold);
  box-shadow: 0 22px 56px var(--theme-shadow), 0 0 0 1px var(--theme-gold-soft);
  outline: none;
  transform: translateY(-4px);
}

.certificate-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

body.warning-modal-open {
  overflow: hidden;
}

.home-warning-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 280ms;
}

.home-warning-modal.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.home-warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html[data-theme="light"] .home-warning-backdrop {
  background: rgba(15, 17, 22, 0.58);
}

.home-warning-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--theme-border);
  border-radius: 24px;
  outline: none;
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-warning-modal.is-visible .home-warning-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-warning-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--theme-text-muted);
  font: 300 34px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.home-warning-close:hover,
.home-warning-close:focus-visible {
  border-color: var(--theme-border);
  outline: none;
  background: var(--theme-gold-soft);
  color: var(--theme-gold-bright);
}

.home-warning-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  place-items: center;
  border: 3px solid var(--theme-gold);
  border-radius: 50%;
  background: var(--theme-gold-soft);
  color: var(--theme-gold-bright);
  font: 700 48px/1 "Chivo", sans-serif;
}

.home-warning-eyebrow {
  margin: 0 0 8px;
  color: var(--theme-gold-bright) !important;
  font: 700 13px/1.2 "Chivo", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-warning-dialog h2 {
  margin: 0 0 22px;
  color: var(--theme-text) !important;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
}

.home-warning-copy {
  color: var(--theme-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.home-warning-copy p {
  margin: 0 0 16px;
  color: inherit !important;
}

.home-warning-copy strong {
  color: var(--theme-text);
}

.home-warning-copy a {
  color: var(--theme-gold-bright) !important;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-warning-confirm {
  min-width: 190px;
  margin-top: 12px;
  padding: 14px 28px;
  border: 1px solid var(--theme-gold);
  border-radius: 10px;
  background: var(--theme-gold);
  color: #111216;
  font: 700 16px/1.2 "Chivo", sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.home-warning-confirm:hover,
.home-warning-confirm:focus-visible {
  outline: none;
  background: var(--theme-gold-bright);
  box-shadow: 0 10px 28px var(--theme-gold-soft);
  transform: translateY(-2px);
}

.item-icon .icon-left img,
.banner-imgs .block-1 img,
.banner-imgs .block-2 img {
  filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(2deg) brightness(0.95);
}

.tradingview-widget-container {
  background: #090a0c !important;
  border-bottom: 1px solid var(--theme-border);
}

html[data-theme="light"] .tradingview-widget-container iframe {
  filter: invert(1) hue-rotate(180deg);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 14px;
  padding: 5px 8px 5px 6px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  cursor: pointer;
  font: 700 13px/1 "Chivo", sans-serif;
  vertical-align: middle;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.theme-switcher:hover,
.theme-switcher:focus-visible {
  border-color: var(--theme-gold);
  outline: none;
}

.theme-switcher-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 48px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: #08090b;
  color: #ffffff;
}

.theme-switcher-icon {
  position: relative;
  z-index: 1;
  font-size: 12px;
}

.theme-switcher-sun { color: #111216; }
.theme-switcher-moon { color: #ffffff; }

.theme-switcher-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--theme-gold-bright);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease;
}

html[data-theme="light"] .theme-switcher-thumb {
  transform: translateX(22px);
}

html[data-theme="light"] .theme-switcher-track {
  background: #e5dfcf;
}

@media (max-width: 767px) {
  .header .main-header .header-right {
    min-width: auto;
  }

  .theme-switcher {
    margin-right: 0;
  }

  .theme-switcher-label {
    display: none;
  }

  .header-right .btn-default {
    display: none;
  }

  .brand-logo-image {
    width: 124px;
    height: auto;
    max-width: 124px;
    max-height: 38px;
  }

  .home-warning-modal {
    padding: 12px;
  }

  .home-warning-dialog {
    max-height: calc(100dvh - 24px);
    padding: 32px 20px 24px;
    border-radius: 18px;
  }

  .home-warning-close {
    top: 10px;
    right: 10px;
  }

  .home-warning-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    font-size: 38px;
  }

  .home-warning-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .home-warning-confirm {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
