/* ==========================================================================
   Arwen Prime – brand styles
   Light + dark themes. Areas marked .ap-dark (CTA banner, footer) stay dark in both themes.
   ========================================================================== */

/* ---------- light theme tokens (default) ---------- */
:root,
[data-bs-theme=light] {
  --ap-blue: #3D8BFF;
  --ap-violet: #7B5CFA;
  --ap-grad: linear-gradient(135deg, #3D8BFF 0%, #7B5CFA 100%);
  --ap-up: #16A874;
  --ap-down: #E0405F;

  --ap-surface: #FFFFFF;
  --ap-surface-alt: #F3F6FC;
  --ap-card: #FFFFFF;
  --ap-card-2: #F8FAFF;
  --ap-card-hi: #EEF3FF;
  --ap-line: rgba(18, 48, 110, 0.10);
  --ap-line-strong: rgba(61, 139, 255, 0.45);
  --ap-heading: #0B1838;
  --ap-text: #3E4A63;
  --ap-text-muted: #6B7891;
  --ap-accent-text: #2F6FE0;
  --ap-soft: rgba(61, 139, 255, 0.08);
  --ap-soft-border: rgba(61, 139, 255, 0.22);
  --ap-input: #FFFFFF;
  --ap-shadow: 0 16px 40px rgba(26, 64, 137, 0.08);
  --ap-shadow-hi: 0 24px 60px rgba(61, 139, 255, 0.18);

  --brand-color: #3D8BFF;
  --secondary-color: #3D8BFF;
  --body-color: #FFFFFF;
  --title-color: #0B1838;
  --title-color-style2: #0B1838;
  --text-color: #5A6680;
  --bg-color-3: #FFFFFF;
  --footer-bg-color: #020817;
  --header-bg-color: #06122B;
  --faq-bg-color: #FFFFFF;
  --form-focus-color: #3D8BFF;
}

/* ---------- dark theme tokens (also used inside .ap-dark zones) ---------- */
[data-bs-theme=dark],
.ap-dark {
  --ap-up: #22C38E;
  --ap-down: #F0506E;

  --ap-surface: #030A1C;
  --ap-surface-alt: #050F29;
  --ap-card: #0B1838;
  --ap-card-2: #0F2150;
  --ap-card-hi: #142A63;
  --ap-line: rgba(140, 170, 255, 0.14);
  --ap-line-strong: rgba(61, 139, 255, 0.55);
  --ap-heading: #FFFFFF;
  --ap-text: rgba(255, 255, 255, 0.80);
  --ap-text-muted: rgba(255, 255, 255, 0.55);
  --ap-accent-text: #A9C6FF;
  --ap-soft: rgba(61, 139, 255, 0.12);
  --ap-soft-border: rgba(61, 139, 255, 0.25);
  --ap-input: #071331;
  --ap-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --ap-shadow-hi: 0 24px 70px rgba(61, 139, 255, 0.25);

  --title-color: #FFFFFF;
  --title-color-style2: #FFFFFF;
  --text-color: rgba(255, 255, 255, 0.6);
  --bg-white: #FFFFFF;
  --wh-color: #0B1838;
}

/* template variables only for the dark theme */
[data-bs-theme=dark] {
  --brand-color: #3D8BFF;
  --secondary-color: #3D8BFF;
  --tertiary-color: #0B1838;
  --tertiary-color2: #0B1838;
  --tertiary-color3: #0B1838;
  --body-color: #030A1C;
  --border-color-7: #1E3A7A;
  --header-bg-color: #06122B;
  --header-bg-color2: #06122B;
  --bg-grad-color: #16264D;
  --bg-grad-color-3: rgba(22, 38, 77, 0.5);
  --bg-grad-color-trans-3: rgba(3, 10, 28, 0);
  --bg-grad-color-4: rgba(61, 139, 255, 0.24);
  --bg-grad-color-trans-4: rgba(61, 139, 255, 0);
  --bg-color-3: #030A1C;
  --bg-color-14: #0B1838;
  --bg-team: #0B1838;
  --floating-content-bg-color: rgba(16, 32, 70, 0.97);
  --service-item-border-color: #071331;
  --service-item-bg-color: #0E1C40;
  --faq-bg-color: #0B1838;
  --extra-bg-color: #0B1838;
  --tag-bg-color: #0B1838;
  --footer-bg-color: #020817;
  --faq-img-bg-shadow: rgba(61, 139, 255, 0.56);
  --pagination-bg-color: #030A1C;
  --sec-bg-color-2: #06102A;
  --account-bg-color: #030A1C;
  --account-bg-color2: #030A1C;
  --arrow-color1: #1E3A7A;
  --banner2-bg-color: #040E26;
  --about-img-bg-shadow: rgba(123, 92, 250, 0.5);
  --cta-img-bg-shadow: #1E2C55;
}

.accordion-button:after,
.accordion-button--style3:after,
[data-bs-theme=dark] .accordion-button:after,
[data-bs-theme=dark] .accordion-button--style3:after {
  --bs-accordion-btn-active-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><style>svg{fill:%233D8BFF}</style><path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"/></svg>');
}

body { background-color: var(--ap-surface); color: var(--ap-text); transition: background-color .3s ease; }
::selection { background: rgba(61, 139, 255, .35); color: #fff; }
.bg-color-3 { background-color: var(--ap-surface) !important; }
.bg-ap-alt { background-color: var(--ap-surface-alt); }
.section-header h2, .section-header__content h2, h1, h2, h3, h4, h5, h6 { color: var(--ap-heading); }
.section-header p { color: var(--ap-text-muted); }
a { transition: color .2s ease; }
.ap-muted { color: var(--ap-text-muted); }

/* ---------- buttons ---------- */
.trk-btn--primary,
.trk-btn--border.trk-btn--primary {
  background: var(--ap-grad);
  border: 0;
  color: #fff !important;
}
.trk-btn--primary:hover { filter: brightness(1.12); color: #fff; }
.trk-btn--primary.trk-btn--arrowplay span svg path { fill: #fff; }
.trk-btn--primary.trk-btn--arrowplay span svg rect { stroke: rgba(255, 255, 255, .5); }
.ap-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600;
  border: 1px solid var(--ap-line-strong); color: var(--ap-heading);
  transition: all .3s ease;
}
.ap-dark .ap-btn-ghost { border-color: rgba(255, 255, 255, .22); }
.ap-btn-ghost:hover { border-color: var(--ap-blue); color: var(--ap-heading); background: var(--ap-soft); }

/* ---------- header (follows the theme) ---------- */
.header-section .logo img { max-height: 44px; width: auto; }
.ap-logo-on-light { display: none !important; }
[data-bs-theme=light] .ap-logo-on-light { display: block !important; }
[data-bs-theme=light] .ap-logo-on-dark { display: none !important; }
.header-section .header-btn { display: flex; align-items: center; gap: 10px; }
.header-login { color: var(--ap-heading); font-weight: 600; padding: 10px 14px; white-space: nowrap; }
.header-login:hover { color: var(--ap-blue); }
.header-section--style3.header-fixed { background-color: rgba(4, 12, 32, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ap-line); }
[data-bs-theme=light] .header-section--style3.header-fixed { background-color: rgba(255, 255, 255, .95); box-shadow: 0 1px 0 var(--ap-line), 0 10px 30px rgba(26, 64, 137, .08); }
.header-section .menu li a { color: var(--ap-heading); }
.header-section .menu > li > a:hover, .header-section .menu > li.active > a { color: var(--ap-blue); }
.header-section .menu li .submenu { background: var(--ap-card); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.header-section .menu li .submenu li a { color: var(--ap-text); }
.header-section .menu li .submenu li a:hover { color: var(--ap-blue); }
.header-bar--style2 span { background-color: var(--ap-heading) !important; }
.menu li .submenu li a i { width: 22px; color: var(--ap-blue); }
.menu li .submenu li a { justify-content: flex-start !important; gap: 8px; }
@media (max-width: 991px) {
  .header-section .menu { background: rgba(6, 18, 43, .98) !important; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
  [data-bs-theme=light] .header-section .menu { background: rgba(255, 255, 255, .98) !important; box-shadow: 0 20px 40px rgba(26, 64, 137, .12); }
  .header-section .menu li .submenu { background: var(--ap-soft); border: 0; box-shadow: none; }
}

/* theme toggle */
.ap-theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 40px;
  border: 1px solid var(--ap-line-strong); background: var(--ap-soft); color: var(--ap-heading); cursor: pointer;
  transition: all .3s ease; padding: 0;
}
.ap-theme-toggle:hover { border-color: var(--ap-blue); color: var(--ap-blue); }
.ap-theme-toggle .ap-ico-sun { display: none; }
[data-bs-theme=dark] .ap-theme-toggle .ap-ico-sun { display: inline-block; }
[data-bs-theme=dark] .ap-theme-toggle .ap-ico-moon { display: none; }

@media (max-width: 767px) {
  .header-wrapper .menu-area .header-btn { display: flex !important; }
  .header-wrapper .menu-area .header-btn .trk-btn { padding: 9px 14px; font-size: 14px; }
  .header-wrapper .menu-area { gap: 10px; }
  .ap-theme-toggle { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (max-width: 575px) {
  .header-login { display: none; }
  .header-section .logo img { max-height: 34px; }
}
@media (max-width: 360px) {
  .header-section .logo img { max-height: 28px; }
}

/* ---------- section headers ---------- */
.section-header h2 span.style2,
.section-header__content h2 span,
.banner__content-heading span { background: var(--ap-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ap-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 99px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--ap-accent-text); background: var(--ap-soft); border: 1px solid var(--ap-soft-border);
}

/* ---------- hero (follows the theme) ---------- */
.banner--style2 {
  background-image:
    radial-gradient(60% 70% at 85% 10%, rgba(123, 92, 250, .28) 0%, rgba(123, 92, 250, 0) 60%),
    radial-gradient(50% 60% at 10% 80%, rgba(61, 139, 255, .25) 0%, rgba(61, 139, 255, 0) 60%),
    linear-gradient(180deg, #050F2B 0%, #040B22 100%) !important;
  background-color: #040B22 !important;
}
[data-bs-theme=light] .banner--style2 {
  background-image:
    radial-gradient(60% 70% at 85% 10%, rgba(123, 92, 250, .16) 0%, rgba(123, 92, 250, 0) 60%),
    radial-gradient(50% 60% at 10% 80%, rgba(61, 139, 255, .16) 0%, rgba(61, 139, 255, 0) 60%),
    linear-gradient(180deg, #EEF3FF 0%, #F7F9FF 100%) !important;
  background-color: #F4F7FF !important;
}
[data-bs-theme=light] .banner--style2 .banner__wrapper--style2::after { border-color: rgba(61, 139, 255, .9); opacity: .06; }
.banner--style2 .banner__content h1 { color: var(--ap-heading); }
.banner--style2 .banner__content p.banner__content-moto { color: var(--ap-text); }
.banner__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--ap-text-muted); font-size: 15px; }
.banner__trust span { display: inline-flex; align-items: center; gap: 8px; }
.banner__trust span i, .banner__trust span svg { color: var(--ap-blue); margin: 0; }
.banner--style2 .banner__wrapper--style2 .row { align-items: center; }
.banner--style2 .banner__thumb { position: relative !important; left: auto !important; bottom: auto !important; max-inline-size: 100% !important; z-index: 1; }
.banner--style2 .banner__thumb .ap-terminal { margin-inline: auto; }
@media (min-width: 768px) {
  .banner--style2 { padding-block-end: 140px; }
}
@media (min-width: 1200px) {
  .banner--style2 { padding-block-start: 190px; padding-block-end: 200px; }
}
@media (max-width: 767px) {
  .banner--style2 { padding-block-end: 60px; }
  .banner--style2 .banner__thumb { margin-top: 40px; }
}
[data-bs-theme=light] .ap-terminal { box-shadow: 0 30px 70px rgba(26, 64, 137, .25); }

/* terminal mockup (always dark) */
.ap-terminal {
  width: 100%; max-width: 560px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 38, 86, .97), rgba(8, 18, 46, .97));
  border: 1px solid rgba(140, 170, 255, 0.14); box-shadow: 0 30px 80px rgba(4, 12, 40, .45);
}
.ap-terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(140, 170, 255, 0.14); }
.ap-terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3B66; display: inline-block; }
.ap-terminal__bar strong { margin-left: 8px; font-size: 13px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.ap-terminal__bar em { margin-left: auto; font-style: normal; font-size: 12px; color: #22C38E; }
.ap-terminal__chart { padding: 18px 18px 6px; }
.ap-terminal__chart svg { width: 100%; height: auto; display: block; }
.ap-terminal__rows { padding: 6px 18px 18px; }
.ap-terminal__row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px dashed rgba(140, 170, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .85); }
.ap-terminal__row b { font-weight: 600; color: #fff; }
.ap-terminal__row span { color: rgba(255, 255, 255, .55); font-size: 13px; }
.ap-chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(61, 139, 255, .14); color: #A9C6FF !important; }
.ap-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22C38E; margin-right: 4px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(34, 195, 142, .2); }

/* ---------- TradingView widgets ---------- */
/* TradingView widget pages declare a light colour scheme; the iframe must match or browsers paint an opaque canvas behind the widget */
.tradingview-widget-container iframe { color-scheme: light; }
.ap-ticker { background: var(--ap-surface-alt); border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); min-height: 46px; }
.ap-widget { border-radius: 16px; overflow: hidden; border: 1px solid var(--ap-line); background: var(--ap-card); box-shadow: var(--ap-shadow); }
.tradingview-widget-copyright { font-size: 12px; color: var(--ap-text-muted) !important; text-align: right; padding: 4px 8px 0; }
.tradingview-widget-copyright a { color: var(--ap-text-muted) !important; }

/* ---------- cards ---------- */
.ap-card {
  height: 100%; padding: 30px; border-radius: 16px;
  background: linear-gradient(160deg, var(--ap-card-2), var(--ap-card));
  border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow);
  transition: transform .3s ease, border-color .3s ease;
}
a.ap-card { color: inherit; }
.ap-card:hover { transform: translateY(-4px); border-color: var(--ap-line-strong); }
.ap-card h4, .ap-card h5, .ap-card h6 { color: var(--ap-heading); margin-bottom: 10px; }
.ap-card p { margin-bottom: 0; color: var(--ap-text-muted); }
.ap-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--ap-grad); color: #fff; font-size: 24px; box-shadow: 0 10px 30px rgba(61, 139, 255, .3);
}
.ap-icon--soft { background: var(--ap-soft); color: var(--ap-blue); box-shadow: none; border: 1px solid var(--ap-soft-border); }
.ap-card .text-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--ap-blue); font-weight: 600; }
.ap-card .text-btn:hover { gap: 10px; }

.about__content-details h5 { color: var(--ap-heading); }
.about__content-details p { color: var(--ap-text-muted); }

.ap-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ap-stat { padding: 26px 22px; border-radius: 16px; background: linear-gradient(160deg, var(--ap-card-2), var(--ap-card)); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.ap-stat h3 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 40px); background: var(--ap-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ap-stat p { margin: 0; color: var(--ap-text-muted); }

.ap-step__num { font-size: 56px; font-weight: 700; line-height: 1; margin-bottom: 18px; background: var(--ap-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.ap-list { list-style: none; padding: 0; margin: 0; }
.ap-list li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--ap-text); }
.ap-list li strong { color: var(--ap-heading); }
.ap-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--ap-soft); color: var(--ap-blue); }

/* ---------- pricing / accounts ---------- */
.pricing .pricing__item-inner,
html[data-bs-theme] .pricing .pricing__item-inner {
  position: relative; height: 100%;
  background: linear-gradient(160deg, var(--ap-card-2) 0%, var(--ap-card) 100%) !important;
  border: 1px solid var(--ap-line) !important;
  border-radius: 18px;
  box-shadow: var(--ap-shadow) !important;
  color: var(--ap-text);
}
.pricing .pricing__item-inner:hover { border-color: var(--ap-line-strong) !important; transform: translateY(-4px); }
.pricing .pricing__item-inner.active,
html[data-bs-theme] .pricing .pricing__item-inner.active {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(123, 92, 250, 0.20) 0%, transparent 70%),
    linear-gradient(160deg, var(--ap-card-hi) 0%, var(--ap-card) 100%) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 0 0 1px rgba(61, 139, 255, 0.7), var(--ap-shadow-hi) !important;
}
.pricing .pricing__item-top { border-bottom: 1px solid var(--ap-line) !important; }
.pricing .pricing__item-top h6 { color: var(--ap-heading) !important; letter-spacing: .06em; }
.pricing .pricing__item-top h3 { color: var(--ap-heading) !important; }
.pricing .pricing__item-top h3 span { font-size: 16px; color: var(--ap-text-muted) !important; -webkit-text-fill-color: currentColor; }
.pricing .pricing__item-top p { color: var(--ap-text-muted) !important; }
.pricing .pricing__list-item { color: var(--ap-text) !important; }
.pricing .pricing__wrapper .row { align-items: stretch !important; }
.pricing .pricing__item { height: 100%; }
.pricing .pricing__item-content { display: flex; flex-direction: column; height: 100%; }
.pricing .pricing__item-bottom { margin-top: auto; }
.pricing .trk-btn--outline4,
html[data-bs-theme] .pricing .trk-btn--outline4 {
  background: transparent !important; color: var(--ap-heading) !important; border: 1px solid var(--ap-line-strong) !important;
}
.pricing .trk-btn--outline4:hover,
.pricing .trk-btn--outline4.active,
html[data-bs-theme] .pricing .trk-btn--outline4.active,
html[data-bs-theme] .pricing .trk-btn--outline4:hover {
  background: var(--ap-grad) !important; border-color: transparent !important; color: #fff !important;
}
.ap-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--ap-grad); color: #fff; margin-left: 8px; vertical-align: middle; letter-spacing: 0; }

/* ---------- tables ---------- */
.ap-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--ap-line); background: var(--ap-card); box-shadow: var(--ap-shadow); }
.ap-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ap-table th, .ap-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ap-line); color: var(--ap-text); font-size: 15px; }
.ap-table thead th { background: var(--ap-soft); color: var(--ap-heading); font-weight: 600; white-space: nowrap; }
.ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-table tbody tr:hover td { background: var(--ap-soft); }
.ap-table td:first-child { color: var(--ap-heading); font-weight: 600; }
.ap-table a { color: var(--ap-blue); }
.ap-note { font-size: 13px; color: var(--ap-text-muted); margin-top: 12px; }

/* ---------- tabs ---------- */
.ap-tabs { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin-bottom: 28px; }
.ap-tabs .nav-link { border-radius: 99px; padding: 10px 20px; color: var(--ap-text); border: 1px solid var(--ap-line); background: var(--ap-card); font-weight: 600; }
.ap-tabs .nav-link.active, .ap-tabs .nav-link:hover { background: var(--ap-grad); color: #fff; border-color: transparent; }

/* ---------- platform ---------- */
.ap-devices { position: relative; padding: 20px; }
.ap-devices .ap-terminal { max-width: 100%; }
.ap-phone {
  position: absolute; right: -6px; bottom: -24px; width: 150px; border-radius: 24px; padding: 12px 10px;
  background: linear-gradient(160deg, #13285C, #0A1636); border: 1px solid rgba(140, 170, 255, 0.14); box-shadow: 0 20px 50px rgba(4, 12, 40, .45);
}
.ap-phone .ap-terminal__row { font-size: 12px; padding: 7px 0; }
.ap-store { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ap-store a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--ap-line); background: var(--ap-card); color: var(--ap-heading); font-weight: 600; box-shadow: var(--ap-shadow); }
.ap-store a i { font-size: 22px; }
.ap-store a small { display: block; font-size: 11px; color: var(--ap-text-muted); font-weight: 400; line-height: 1.2; }
.ap-store a:hover { border-color: var(--ap-blue); color: var(--ap-heading); }

/* ---------- payments ---------- */
.ap-pay-title { color: var(--ap-heading); font-weight: 600; }
.ap-pay { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ap-pay span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; background: var(--ap-card); border: 1px solid var(--ap-line); color: var(--ap-heading); font-weight: 600; box-shadow: var(--ap-shadow); }
.ap-pay span i { font-size: 24px; color: var(--ap-blue); }

/* ---------- CTA (always dark) ---------- */
.ap-cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px 28px; text-align: center;
  background: radial-gradient(80% 120% at 0% 0%, rgba(61, 139, 255, .45), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(123, 92, 250, .5), transparent 60%), #0A1739;
  border: 1px solid rgba(140, 170, 255, 0.14);
}
.ap-cta h2 { color: #fff; margin-bottom: 14px; }
.ap-cta p { color: rgba(255, 255, 255, .78); max-width: 620px; margin: 0 auto 28px; }
.ap-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (min-width: 992px) { .ap-cta { padding: 72px 60px; } }

/* ---------- page header (follows the theme) ---------- */
.page-header {
  background-image:
    radial-gradient(50% 120% at 90% 0%, rgba(123, 92, 250, .35), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(61, 139, 255, .3), transparent 60%),
    linear-gradient(180deg, #071433, #040B22) !important;
  background-color: #040B22 !important;
  border-bottom: 1px solid var(--ap-line);
  padding-top: 170px !important;
}
[data-bs-theme=light] .page-header {
  background-image:
    radial-gradient(50% 120% at 90% 0%, rgba(123, 92, 250, .16), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(61, 139, 255, .16), transparent 60%),
    linear-gradient(180deg, #EEF3FF, #F7F9FF) !important;
  background-color: #F4F7FF !important;
}
.page-header h1, .page-header h2, .page-header__content h2 { color: var(--ap-heading); }
.page-header__content p, .page-header p { color: var(--ap-text); max-width: 680px; margin: 10px 0 18px; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item.active { color: var(--ap-text-muted); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--ap-text-muted); }
.page-header .breadcrumb-item a { color: var(--ap-blue); }

/* ---------- legal ---------- */
.ap-legal-nav { position: sticky; top: 110px; }
.ap-legal-nav a { display: block; padding: 10px 16px; border-radius: 10px; color: var(--ap-text); border: 1px solid transparent; margin-bottom: 4px; }
.ap-legal-nav a:hover, .ap-legal-nav a.active { background: var(--ap-card); border-color: var(--ap-line); color: var(--ap-heading); box-shadow: var(--ap-shadow); }
.ap-legal section { padding: 34px; border-radius: 16px; background: var(--ap-card); border: 1px solid var(--ap-line); margin-bottom: 26px; scroll-margin-top: 110px; box-shadow: var(--ap-shadow); }
.ap-legal h3 { color: var(--ap-heading); margin-bottom: 6px; }
.ap-legal h5 { color: var(--ap-heading); margin: 24px 0 10px; font-size: 18px; }
.ap-legal p, .ap-legal li { color: var(--ap-text); }
.ap-legal strong { color: var(--ap-heading); }
.ap-legal a { color: var(--ap-blue); }
.ap-legal ul, .ap-legal ol { padding-left: 20px; margin-bottom: 1rem; }
.ap-legal li { margin-bottom: 6px; }
.ap-legal .ap-date { font-size: 13px; color: var(--ap-text-muted); margin-bottom: 18px; }
[id] { scroll-margin-top: 100px; }

/* ---------- forms & calculators ---------- */
.ap-calc .form-label, .contact__form .form-label, .contact__form .form-check-label { color: var(--ap-text); font-weight: 500; }
.ap-calc .form-control, .ap-calc .form-select, .contact__form .form-control, .contact__form .form-select {
  background-color: var(--ap-input); border: 1px solid var(--ap-line); color: var(--ap-heading); padding: 12px 14px; border-radius: 10px;
}
.contact__form .form-control::placeholder { color: var(--ap-text-muted); }
.ap-calc .form-control:focus, .ap-calc .form-select:focus, .contact__form .form-control:focus, .contact__form .form-select:focus { border-color: var(--ap-blue); box-shadow: 0 0 0 3px rgba(61, 139, 255, .18); background-color: var(--ap-input); color: var(--ap-heading); }
[data-bs-theme=dark] .ap-calc .form-select, [data-bs-theme=dark] .contact__form .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.ap-calc option, .contact__form option { background: var(--ap-input); color: var(--ap-heading); }
.contact__form a { color: var(--ap-blue); }
.ap-result { margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: var(--ap-soft); border: 1px solid var(--ap-soft-border); }
.ap-result span { color: var(--ap-text-muted); font-size: 14px; }
.ap-result strong { display: block; font-size: 26px; color: var(--ap-heading); }
.ap-form-status { margin-top: 16px; font-size: 14px; }
.ap-form-status.ok { color: var(--ap-up); }
.ap-form-status.err { color: var(--ap-down); }

/* ---------- contact ---------- */
.ap-contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.ap-contact-item .ap-icon { margin: 0; flex: 0 0 52px; width: 52px; height: 52px; font-size: 20px; }
.ap-contact-item h6 { color: var(--ap-heading); margin-bottom: 4px; }
.ap-contact-item p, .ap-contact-item a { margin: 0; color: var(--ap-text); }
.ap-contact-item a:hover { color: var(--ap-blue); }

/* ---------- FAQ ---------- */
.accordion--style2 .accordion__item { background: var(--ap-card); border: 1px solid var(--ap-line) !important; box-shadow: var(--ap-shadow); }
.accordion--style2 .accordion__button, .accordion__button-content { color: var(--ap-heading); }
.faq .accordion__body p, .faq .accordion__body li { color: var(--ap-text); }
.faq a, .section-header p a { color: var(--ap-blue); }

/* ---------- footer (always dark) ---------- */
.footer { background: #020817 !important; border-top: 1px solid rgba(140, 170, 255, 0.14); }
.footer__about-logo img { max-height: 48px; width: auto; }
.footer__about-moto { color: rgba(255, 255, 255, .65); }
.footer__links-tittle h6 { color: #fff; }
.footer__linklist-item a { color: rgba(255, 255, 255, .65); }
.footer__linklist-item a:hover { color: var(--ap-blue); }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 10px; color: rgba(255, 255, 255, .65); font-size: 15px; }
.footer__contact li i { color: var(--ap-blue); margin-top: 5px; }
.footer__contact a { color: rgba(255, 255, 255, .65); }
.footer__contact a:hover { color: var(--ap-blue); }
.footer__legal { border-top: 1px solid rgba(140, 170, 255, 0.14); padding: 30px 0 10px; }
.footer__legal p { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .55); margin-bottom: 12px; }
.footer__legal p strong { color: rgba(255, 255, 255, .8); }
.footer__legal a { color: #A9C6FF; }
.footer__bottom { border-top: 1px solid rgba(140, 170, 255, 0.14); }
.footer__end { gap: 12px; flex-wrap: wrap; }
.footer__end-copyright p, .footer__end-copyright a { color: rgba(255, 255, 255, .6); }
.footer__end-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.footer__end-links a { color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer__end-links a:hover { color: var(--ap-blue); }

/* ---------- cookie notice ---------- */
.ap-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 760px; margin: 0 auto;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-radius: 14px;
  background: var(--ap-card); border: 1px solid var(--ap-line); box-shadow: 0 20px 60px rgba(4, 12, 40, .35);
}
.ap-cookie.show { display: flex; }
.ap-cookie p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--ap-text); }
.ap-cookie p a { color: var(--ap-blue); }
.ap-cookie .ap-cookie__btns { display: flex; gap: 10px; }
.ap-cookie button { border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; }
.ap-cookie .accept { background: var(--ap-grad); color: #fff; }

/* ---------- risk bar ---------- */
.ap-riskbar { position: relative; z-index: 3; background: #020817; border-bottom: 1px solid var(--ap-line); color: rgba(255, 255, 255, .7); font-size: 12.5px; text-align: center; padding: 7px 16px; line-height: 1.5; }
.ap-riskbar a { color: #A9C6FF; text-decoration: underline; }
[data-bs-theme=light] .ap-riskbar { background: #E9EFFB; color: #3E4A63; }
[data-bs-theme=light] .ap-riskbar a { color: #2F6FE0; }

/* ---------- preloader ---------- */
.preloader { background-color: var(--ap-surface) !important; }
.preloader img { width: 96px; height: auto; }

/* ---------- misc ---------- */
.of-hidden { overflow: hidden; }
.scrollToTop { background: var(--ap-grad) !important; color: #fff !important; }

/* slide-in animations start off-screen; never let them create sideways scrolling */
html, body { overflow-x: clip; }

/* ---------- language switcher ---------- */
.ap-lang { position: relative; }
.ap-lang img, .ap-lang-mobile img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: 0 0 22px; }
.ap-lang__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--ap-line-strong); background: var(--ap-soft); color: var(--ap-heading); font-weight: 600; font-size: 14px;
  transition: all .3s ease;
}
.ap-lang__btn:hover, .ap-lang__btn[aria-expanded=true] { border-color: var(--ap-blue); color: var(--ap-blue); }
.ap-lang__btn .fa-chevron-down, .ap-lang__btn svg.fa-chevron-down { font-size: 10px; width: 10px; transition: transform .2s ease; }
.ap-lang__btn[aria-expanded=true] .fa-chevron-down { transform: rotate(180deg); }
.ap-lang__menu {
  min-width: 170px; padding: 6px; margin-top: 8px !important; border-radius: 12px;
  background: var(--ap-card); border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow);
}
.ap-lang__menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ap-text); font-weight: 500; }
.ap-lang__menu .dropdown-item:hover, .ap-lang__menu .dropdown-item:focus { background: var(--ap-soft); color: var(--ap-heading); }
.ap-lang__menu .dropdown-item.active { background: var(--ap-soft); color: var(--ap-blue); font-weight: 600; }

/* language links inside the mobile menu */
.menu .ap-lang-mobile { display: none !important; }
@media (max-width: 991px) {
  .menu .ap-lang-mobile { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 14px 20px !important; border-top: 1px solid var(--ap-line); }
  .menu .ap-lang-mobile a { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px !important; border-radius: 99px; border: 1px solid var(--ap-line); font-size: 15px; }
  .menu .ap-lang-mobile a.active { border-color: var(--ap-blue); color: var(--ap-blue) !important; }
}
@media (max-width: 575px) {
  .header-btn .ap-lang { display: none; }
}

/* Title Case is an English convention; other languages use sentence case */
html:not([lang="en"]) :is(.section-header h2, .section-header__content h2, .banner__content-heading, .page-header__content h2,
  .accordion__button, .text-btn, .menu > li > a, .about__content-details h5, .trk-btn, .subtitle, .error__content h2) {
  text-transform: none;
}

/* keep the header on one line: the Log In label collapses to its icon on narrower screens */
@media (max-width: 1199px) {
  .header-login__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-login { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--ap-line-strong); background: var(--ap-soft); }
  .header-login i, .header-login svg { margin: 0 !important; }
}
.header-wrapper .menu-area .header-btn { flex-wrap: nowrap; }
.header-wrapper .menu-area .header-btn .trk-btn { white-space: nowrap; }

/* desktop header: menu + language + theme + log in + join must share one line */
@media (min-width: 992px) {
  .header-section .menu { flex-wrap: nowrap; }
  .header-section .menu > li > a { padding: 15px 14px; white-space: nowrap; }
  .header-section .header-content { gap: 14px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-section .menu > li > a { padding: 15px 9px; font-size: 15px; }
  .ap-lang__btn span { display: none; }
}
@media (max-width: 1399px) {
  .header-login__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-login { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--ap-line-strong); background: var(--ap-soft); }
  .header-login i, .header-login svg { margin: 0 !important; }
}
@media (min-width: 1400px) {
  .header-section .menu > li > a { padding: 15px 18px; }
}

/* phones: logo, theme toggle, join button and menu icon on one row in every language */
@media (max-width: 575px) {
  .header-wrapper { flex-wrap: nowrap; gap: 8px; }
  .header-section .logo img { max-height: 30px; }
  .header-section .header-login { display: none !important; }
  .header-wrapper .menu-area { gap: 8px; }
  .header-wrapper .menu-area .header-btn { gap: 8px; }
  .header-wrapper .menu-area .header-btn .trk-btn { padding: 8px 12px; font-size: 13px; }
  .ap-theme-toggle { width: 34px; height: 34px; flex-basis: 34px; }
}
@media (max-width: 360px) {
  .header-section .logo img { max-height: 26px; }
  .header-wrapper .menu-area .header-btn .trk-btn { padding: 7px 10px; font-size: 12px; }
}
.header-wrapper .header-action .menu-area { flex-wrap: nowrap; align-items: center; }
.header-wrapper .header-bar { flex: 0 0 auto; }
@media (max-width: 767px) {
  .header-wrapper { flex-wrap: nowrap; }
  .header-section .header-login { display: none !important; }
  .ap-lang__btn { padding: 0 10px; }
  .ap-lang__btn span { display: none; }
}
@media (min-width: 992px) {
  .header-wrapper { flex-wrap: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-section .logo img { max-height: 36px; }
  .header-section .menu > li:first-child { display: none; }
  .header-section .header-login { display: none !important; }
  .header-wrapper .menu-area .header-btn .trk-btn { padding: 10px 16px; font-size: 15px; }
}

/* the logo must never shrink to make room for the menu */
.header-wrapper .logo { flex: 0 0 auto; }
.header-section .logo img { max-width: none; }
.header-wrapper .header-content { min-width: 0; }
@media (min-width: 992px) {
  .header-section .menu > li > a { padding: 15px 11px; }
  .header-login__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-login { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--ap-line-strong); background: var(--ap-soft); }
  .header-login i, .header-login svg { margin: 0 !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-section .menu > li > a { padding: 15px 8px; }
}

/* phones: fixed logo sizes and tight gaps so the row fits without shrinking the logo */
@media (max-width: 575px) {
  .header-wrapper .header-content { gap: 6px !important; }
  .header-section .logo img { max-height: 26px; }
  .header-wrapper .menu-area, .header-wrapper .menu-area .header-btn { gap: 6px; }
  .header-wrapper .menu-area .header-btn .trk-btn { padding: 7px 10px; font-size: 12.5px; }
  .ap-theme-toggle { width: 32px; height: 32px; flex-basis: 32px; }
  .header-wrapper .header-bar { transform: scale(.85); margin-inline: -2px; }
}
@media (max-width: 374px) {
  .header-section .logo img { max-height: 21px; }
  .header-wrapper .menu-area .header-btn .trk-btn { padding: 6px 8px; font-size: 11.5px; }
  .ap-theme-toggle { width: 30px; height: 30px; flex-basis: 30px; }
}
