/* Shared layout rules for public pages, account forms and administration.
   Keep content in flow; only navigation drawers and scrollable tables overflow. */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
body[data-sp-layout] { margin: 0; min-width: 0; }
body[data-sp-layout] :is(input, select, textarea, button) { font-family: inherit; }
body[data-sp-layout] :is(img, video) { max-width: 100%; }
body[data-sp-layout] img.h-8 { height: 2rem !important; }
body[data-sp-layout] img.h-10 { height: 2.5rem !important; }
body[data-sp-layout] img.h-12 { height: 3rem !important; }
body[data-sp-layout] img.h-16 { height: 4rem !important; }
body[data-sp-layout] img.w-auto { width: auto !important; object-fit: contain; }
body[data-sp-layout] :is(h1, h2, h3, h4, p, li, label) { overflow-wrap: break-word; }

/* Exported utility sheets omitted several icon sizes. Without these, SVGs
   fall back to 300 x 150 pixels and stretch buttons and cards. */
body[data-sp-layout] svg.w-3 { width: .75rem !important; height: .75rem !important; }
body[data-sp-layout] svg.w-4 { width: 1rem !important; height: 1rem !important; }
body[data-sp-layout] svg.w-5 { width: 1.25rem !important; height: 1.25rem !important; }
body[data-sp-layout] svg.w-6 { width: 1.5rem !important; height: 1.5rem !important; }
body[data-sp-layout] svg.w-8 { width: 2rem !important; height: 2rem !important; }
body[data-sp-layout] svg.w-10 { width: 2.5rem !important; height: 2.5rem !important; }
body[data-sp-layout] svg.w-12 { width: 3rem !important; height: 3rem !important; }
body[data-sp-layout] button svg { flex-shrink: 0; }
body[data-sp-layout] .material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: 'liga';
  letter-spacing: normal;
  text-transform: none;
  display: inline-block !important;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  font-size: 24px;
  line-height: 1 !important;
  overflow: hidden;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: nowrap !important;
  vertical-align: middle;
}

/* Elementor's saved desktop pixel widths and negative offsets do not adapt
   when the browser or its scrollbar changes width. Keep the outer wrapper
   fluid; inner Elementor containers still provide their own boxed width. */
body[data-sp-layout="public"] .section.the_content > .section_wrapper {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 0 !important;
}
body[data-sp-layout="public"] .elementor-section-stretched {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: auto !important;
  margin-inline: 0 !important;
}
body[data-sp-layout="public"] :is(.elementor-column, .elementor-widget-wrap, .grid > *, .flex > *, [class*="grid-cols-"] > *) {
  min-width: 0;
}
body[data-sp-layout="public"] video.object-cover.h-full {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
body[data-sp-layout="public"] section:has(> .absolute.inset-0 > video) {
  background-color: #101b27;
}
body[data-sp-layout="public"] :is(.sp-vr-tablewrap, .overflow-x-auto) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body[data-sp-layout="public"] .sp-vr-tablewrap table {
  display: table !important;
  width: 100%;
}
body[data-sp-layout="public"] :is(.sp-vr-consent, label:has(> input[type="checkbox"])) {
  min-width: 0;
}
body[data-sp-layout] input:is([type="checkbox"], [type="radio"]) {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}
body[data-sp-layout="public"] .sp-news-main {
  width: 100%;
  max-width: 860px;
}

/* Private pages have their own navigation; the public mobile bar must never
   replace their header or introduce an empty offset above the application. */
body[data-sp-layout="admin"], body[data-sp-layout="dashboard"] { padding-top: 0 !important; }
body[data-sp-layout="admin"] :is(#sp-mbar, #sp-mnav, .sp-mnav-backdrop),
body[data-sp-layout="dashboard"] :is(#sp-mbar, #sp-mnav, .sp-mnav-backdrop) { display: none !important; }
body[data-sp-layout="admin"] :is(.admin-body, .admin-content, .admin-logo) { min-width: 0; }
body[data-sp-layout="admin"] .admin-logo img {
  width: 150px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
body[data-sp-layout="admin"] .admin-sidebar { flex-shrink: 0; }
body[data-sp-layout="admin"] .admin-content { flex: 1 1 0%; }
body[data-sp-layout="admin"] .admin-table-wrapper { max-width: 100%; overflow-x: auto; }
body[data-sp-layout="dashboard"] :is(.sp-main, .sp-content, .sp-view) { min-width: 0; }
body[data-sp-layout="dashboard"] .sp-content { min-height: 0; }
body[data-sp-layout="dashboard"] .sp-header { flex-shrink: 0; }
body[data-sp-layout="dashboard"] :is(.sp-modal-box, .fg-modal-responsive) {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

@media (max-width: 1024px) {
  body[data-sp-layout="dashboard"] .sp-main {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body[data-sp-layout="dashboard"] .sp-content {
    display: block !important;
    flex: 1 1 0% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    touch-action: auto !important;
  }
  body[data-sp-layout="dashboard"] .sp-view.active { height: auto !important; }
  body[data-sp-layout="dashboard"] :is(.sp-table-wrap, .sp-table-wrapper) { touch-action: pan-x pan-y; }
}

@media (max-width: 992px) {
  body[data-sp-layout="admin"] .admin-header {
    height: auto;
    align-items: stretch;
    padding: 16px;
  }
  body[data-sp-layout="admin"] .admin-logo { flex-wrap: wrap; }
  body[data-sp-layout="admin"] .admin-title { flex: 1 1 180px; overflow-wrap: break-word; }
  body[data-sp-layout="admin"] .admin-body { flex-direction: column; }
  body[data-sp-layout="admin"] .admin-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  body[data-sp-layout="admin"] .admin-nav-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
    min-height: 44px;
  }
  body[data-sp-layout="admin"] .admin-nav-category { display: none; }
  body[data-sp-layout="admin"] .admin-content { width: 100%; padding: 16px; }
}

@media (max-width: 782px) {
  body[data-sp-layout="public"] { overflow-x: clip; }
  body[data-sp-layout="public"] :is(#Wrapper, #Content, .content_wrapper, .the_content_wrapper, .elementor) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body[data-sp-layout="public"] #Wrapper { transform: none !important; left: 0 !important; margin-inline: 0 !important; }
  body[data-sp-layout="public"] .content_wrapper :is(.section_wrapper, .container) {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 0 !important;
  }
  body[data-sp-layout="public"] :is(.elementor-section, .elementor-column, .elementor-widget-wrap, .elementor-container) {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }
  body[data-sp-layout="public"] .elementor-container { flex-wrap: wrap; }
  body[data-sp-layout="public"] .elementor-top-section > .elementor-container { padding-inline: 16px !important; }
  body[data-sp-layout="public"] .elementor-inner-section > .elementor-container { padding-inline: 0 !important; }
  body[data-sp-layout="public"] .elementor-column {
    width: 100% !important;
    max-width: 100%;
    padding-inline: 0 !important;
  }
  body[data-sp-layout="public"] .elementor-column > .elementor-widget-wrap {
    min-width: 0;
    padding-inline: 0 !important;
  }
  body[data-sp-layout="public"] .elementor-widget { max-width: 100% !important; min-width: 0; }
  body[data-sp-layout="public"] .elementor-widget-container { max-width: 100%; min-width: 0; margin-inline: 0 !important; }
  body[data-sp-layout="public"] :is(h1, .text-5xl, .text-6xl, .text-7xl) {
    font-size: clamp(28px, 7.5vw, 40px) !important;
    line-height: 1.2 !important;
  }
  body[data-sp-layout="public"] :is(h2, .text-4xl) {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.25 !important;
  }
  body[data-sp-layout="public"] :is(h3, .text-3xl) { font-size: 22px; line-height: 1.35; }
  body[data-sp-layout="public"] :is(p, li) { font-size: 16px; line-height: 1.65; }
  body[data-sp-layout="public"] :is(.elementor-widget-container, .elementor-widget-wrap) { overflow-wrap: break-word; }
  body[data-sp-layout="public"] :is(img, video) { max-width: 100%; }
  body[data-sp-layout="public"] img:not([height]):not(.h-full):not([style*="height"]) { height: auto; }
  body[data-sp-layout="public"] :is(.px-8, .px-6) { padding-inline: 16px; }
  body[data-sp-layout="public"] :is(.p-10, .p-8) { padding: 24px 16px; }
  body[data-sp-layout="public"] :is(.sp-vr-grid, .sp-vr-inst-grid, .sp-vr-case-grid, .sp-vr-step-grid, .sp-vr-stat-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body[data-sp-layout="public"] .grid :is(span, a) { overflow-wrap: anywhere; }
  body[data-sp-layout="public"] :is(.sp-vr-hero-in, .sp-vr-in) { width: 100%; max-width: 100%; padding-inline: 16px; }
  body[data-sp-layout="public"] .sp-vr-hero { min-height: 0; padding: 48px 0; }
  body[data-sp-layout="public"] .sp-vr-hero-btns { flex-wrap: wrap; }
  body[data-sp-layout="public"] .sp-vr-consent {
    display: flex; align-items: flex-start; gap: 12px;
  }
  body[data-sp-layout="public"] .sp-vr-consent span { flex: 1; min-width: 0; }
  body[data-sp-layout="public"] .sp-vr-table { min-width: 480px; }
  body[data-sp-layout="public"] .sp-crypto-partners img { width: auto; height: 36px; }
  body[data-sp-layout="public"] :is(.sp-hero-actions, .sp-vr-btns) { flex-wrap: wrap; }
  body[data-sp-layout="public"] #toggle-banks-btn { white-space: normal; min-height: 48px; }
  body[data-sp-layout="public"] #toggle-banks-btn span { flex: 1; min-width: 0; }
  body[data-sp-layout="public"] :is(.sp-locations-wrapper, .sp-location-card) { width: 100%; max-width: 100%; min-width: 0; }
  body[data-sp-layout="public"] .sp-location-card { padding: 16px !important; }
  body[data-sp-layout="public"] .sp-location-card > div { flex-wrap: wrap; gap: 8px; }
  body[data-sp-layout="public"] .sp-location-card a { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  body[data-sp-layout="public"] .calc-year-btn { padding-inline: 4px !important; }
  body[data-sp-layout="public"] .calc-year-btn span { font-size: 12px; white-space: normal; }
  body[data-sp-layout] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
    max-width: 100%;
    font-size: 16px;
  }
  body[data-sp-layout] button { touch-action: manipulation; }
  body[data-sp-layout="auth"] :is(.sp-login-header, .sp-reg-header) { display: none !important; }
  body[data-sp-layout="auth"] :is(.sp-login-container, .sp-reg-container) { padding: 24px 16px 40px; min-height: 0; }
  body[data-sp-layout="auth"] :is(.sp-login-card, .sp-reg-card) { width: 100%; max-width: 100%; padding: 24px 20px; }
  body[data-sp-layout="admin"] > header:not(.admin-header) { flex-wrap: wrap; gap: 12px; }
  body[data-sp-layout="admin"] > main { padding: 16px; }
  body[data-sp-layout="admin"] .bar input[type="search"] { min-width: 0; flex-basis: 100%; }
}

/* The exported slider hides its text on phones and uses fixed coordinates.
   A mobile copy of the same content provides a stable, accessible banner. */
.sp-home-mobile-copy { display: none; }
@media (max-width: 1024px) {
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .elementor-element-11f4a26 {
    height: auto !important;
    max-height: none !important;
    min-height: 420px !important;
    background-color: #13212d;
  }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .elementor-element-11f4a26 > .elementor-container { display: none !important; }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .elementor-element-11f4a26 .sp-hero-overlay { display: none !important; }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .sp-home-mobile-copy {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    min-height: 420px;
    width: 100%;
    padding: 48px 24px;
    background: linear-gradient(90deg, rgba(9, 18, 28, .85), rgba(9, 18, 28, .55));
    color:#fff;
  }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .sp-home-mobile-copy h1 {
    font-size: clamp(30px, 7vw, 46px) !important;
    line-height: 1.15 !important;
    color:#fff;
    margin: 0;
  }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .sp-home-mobile-copy p { font-size: 16px; line-height: 1.6; margin: 0; color:#fff; }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .sp-home-mobile-copy .sp-hero-actions { margin-top: 4px; }
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .video-header-container { display: none !important; }
}

@media (max-width: 480px) {
  body[data-sp-layout="public"]:has(.sp-home-mobile-copy) .sp-hero-actions a { flex: 1 1 100%; }
  body[data-sp-layout="public"] .sp-news-main { padding: 32px 16px 48px; }
  body[data-sp-layout="dashboard"] .sp-chat-fab { bottom: 12px !important; right: 12px !important; }
}
