/* ==========================================================================
   Widgetsify — Helix Ultimate header/menu restyle (dark glass)
   Paste into: Template Options -> Custom Code -> Custom CSS
   or file:    media/templates/site/shaper_helixultimate/css/custom.css
               (older Joomla: templates/shaper_helixultimate/css/custom.css)
   ========================================================================== */

:root {
  --wfy-bg: #030712;
  --wfy-text: #f9fafb;
  --wfy-muted: #9ca3af;
  --wfy-blue: #4F8DFF;
  --wfy-cyan: #35d4ff;
  --wfy-purple: #8b5cf6;
  --wfy-border: rgba(255, 255, 255, 0.08);
  --bg: #030712;
  --bg-card: rgba(17, 24, 39, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f9fafb;
  --muted: #9ca3af;
  --blue: #4F8DFF;
  --cyan: #35d4ff;
  --purple: #8b5cf6;
}

/* ===== Widgetsify landing (SPPB) — scoped to .wfy ========================= */
.wfy, .wfy * { box-sizing: border-box; }
.wfy { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #f9fafb; position: relative; z-index: 2; }
.wfy-container { width: min(1280px, 100%); margin: auto; position: relative; z-index: 2; }
.wfy h1, .wfy h2, .wfy h3, .wfy h4, .wfy p, .wfy ul { margin: 0; padding: 0; }
.wfy ul { list-style: none; }
.wfy a { text-decoration: none; }

/* Page canvas: full-bleed dark background even inside a light template */
.sppb-section.wfy-canvas, .wfy-canvas {
  background: #030712 !important;
  color: #f9fafb;
  box-shadow: 0 0 0 100vmax #030712;
  clip-path: inset(0 -100vmax);
  overflow: hidden;
}

.sb-authbtns {
    justify-content: center;
}

/* --- Aurora / glow / grid backgrounds ------------------------------------ */
.wfy .aurora-container { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.wfy .aurora-blob { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .25; animation: wfyAurora 20s ease-in-out infinite alternate; }
.wfy .aurora-blob-1 { top: -10%; left: -10%; width: 700px; height: 700px; background: radial-gradient(circle, #4F8DFF, #8b5cf6); }
.wfy .aurora-blob-2 { bottom: -15%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, #8b5cf6, #ec4899); animation-delay: -5s; }
.wfy .aurora-blob-3 { top: 40%; left: 30%; width: 500px; height: 500px; background: radial-gradient(circle, #35d4ff, #4F8DFF); animation-duration: 25s; animation-delay: -10s; }
@keyframes wfyAurora { 0% { transform: translate(0,0) scale(1) rotate(0deg); } 50% { transform: translate(120px,80px) scale(1.2) rotate(180deg); } 100% { transform: translate(-80px,140px) scale(.9) rotate(360deg); } }
.wfy .pulsing-glow { position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(79,141,255,.15), transparent 70%); filter: blur(100px); animation: wfyPulse 6s ease-in-out infinite alternate; z-index: 0; pointer-events: none; }
@keyframes wfyPulse { 0% { opacity:.3; transform: translate(-50%,-50%) scale(.8);} 100% { opacity:.8; transform: translate(-50%,-50%) scale(1.2);} }
.wfy .bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 60px 60px; -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%); mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%); pointer-events: none; z-index: 0; animation: wfyGrid 40s linear infinite; }
@keyframes wfyGrid { 0% { background-position: 0 0; } 100% { background-position: 60px 60px; } }

/* --- Buttons -------------------------------------------------------------- */
.wfy .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .3s cubic-bezier(.16,1,.3,1); position: relative; overflow: hidden; border: none; }
.wfy .btn-primary { background: linear-gradient(135deg, #4F8DFF, #8b5cf6); color: #fff; box-shadow: 0 4px 25px rgba(79,141,255,.35); }
.wfy .btn-primary::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transition: left .6s ease; }
.wfy .btn-primary:hover::before { left: 100%; }
.wfy .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(79,141,255,.5); color:#fff; }
.wfy .btn-secondary { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(10px); }
.wfy .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); transform: translateY(-3px); color:#fff; }

/* --- Hero ----------------------------------------------------------------- */
.wfy .hero { min-height: 88vh; padding: 90px 0 80px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.wfy .hero-content small { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(79,141,255,.08); border: 1px solid rgba(79,141,255,.25); color: #35d4ff; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.wfy .hero-content h1 { font-size: 64px; line-height: 1.05; font-weight: 800; letter-spacing: -2px; margin-bottom: 24px; color:#f9fafb; }
.wfy .hero-content h1 span { background: linear-gradient(135deg, #4F8DFF, #35d4ff, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wfy .hero-content p { font-size: 18px; line-height: 1.7; color: #9ca3af; margin-bottom: 36px; max-width: 560px; }

/* --- Hero mockup ---------------------------------------------------------- */
.wfy .mockup-wrapper { perspective: 1000px; }
.wfy .mockup-container { position: relative; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.02)); }
.wfy .animated-border { position: absolute; inset: -2px; border-radius: 26px; background: linear-gradient(90deg, #4F8DFF, #35d4ff, #8b5cf6, #ec4899, #4F8DFF); background-size: 300% 300%; animation: wfyBorder 6s ease infinite; z-index: 0; opacity: .7; filter: blur(8px); }
@keyframes wfyBorder { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.wfy .saas-dashboard { position: relative; z-index: 1; background: rgba(13,22,39,.85); backdrop-filter: blur(20px); border-radius: 24px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.wfy .dashboard-header { height: 48px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.wfy .window-dots { display: flex; gap: 8px; }
.wfy .dot { width: 11px; height: 11px; border-radius: 50%; }
.wfy .dot.red { background: #ff5f56; } .wfy .dot.yellow { background: #ffbd2e; } .wfy .dot.green { background: #27c93f; }
.wfy .dashboard-search { background: rgba(255,255,255,.05); border-radius: 6px; padding: 4px 12px; font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 6px; width: 180px; }
.wfy .dashboard-body { padding: 20px; display: grid; gap: 18px; }
.wfy .dashboard-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.wfy .dash-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 14px; }
.wfy .dash-card small { font-size: 11px; color: #9ca3af; display: block; margin-bottom: 4px; }
.wfy .dash-card strong { font-size: 20px; color: #fff; }
.wfy .dash-card .badge-up { font-size: 10px; color: #34d399; float: right; font-weight: 600; }
.wfy .dashboard-main-chart { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 16px; height: 160px; display: flex; flex-direction: column; justify-content: flex-end; }
.wfy .chart-svg { width: 100%; height: 100px; overflow: visible; }

/* --- Marquee + wave ------------------------------------------------------- */
.wfy .marquee-section { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.01); overflow: hidden; position: relative; white-space: nowrap; }
.wfy .marquee-section::before, .wfy .marquee-section::after { content:''; position:absolute; top:0; width:150px; height:100%; z-index:2; pointer-events:none; }
.wfy .marquee-section::before { left:0; background: linear-gradient(90deg, #030712, transparent); }
.wfy .marquee-section::after { right:0; background: linear-gradient(-90deg, #030712, transparent); }
.wfy .marquee-content { display: inline-flex; gap: 20px; animation: wfyMarquee 30s linear infinite; }
.wfy .marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); font-size: 14px; font-weight: 600; color: #9ca3af; }
.wfy .marquee-item svg { color: #35d4ff; }
@keyframes wfyMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.wfy .wave-divider { width: 100%; overflow: hidden; line-height: 0; margin-top: -1px; }
.wfy .wave-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.wfy .wave-divider .shape-fill { fill: rgba(255,255,255,.015); }

/* --- Counters ------------------------------------------------------------- */
.wfy .stats-counter-section { padding: 70px 0; background: rgba(255,255,255,.02); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.wfy .counters-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.wfy .counter-item h2 { font-size: 48px; font-weight: 800; background: linear-gradient(135deg, #4F8DFF, #35d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.wfy .counter-item p { color: #9ca3af; font-size: 14px; font-weight: 500; }

/* --- Sections & cards ----------------------------------------------------- */
.wfy .section { padding: 100px 0; position: relative; }
.wfy .section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.wfy .section-title { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; color: #f9fafb; }
.wfy .section-title span { background: linear-gradient(135deg, #4F8DFF, #35d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wfy .section-sub { font-size: 17px; color: #9ca3af; line-height: 1.7; }
.wfy .cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.wfy .card { position: relative; background: rgba(17,24,39,.5); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 30px; backdrop-filter: blur(10px); transition: all .3s ease; overflow: hidden; }
.wfy .card:hover { transform: translateY(-8px); border-color: rgba(79,141,255,.3); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.wfy .card-icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, rgba(79,141,255,.15), rgba(139,92,246,.15)); border: 1px solid rgba(79,141,255,.2); display: flex; align-items: center; justify-content: center; color: #35d4ff; margin-bottom: 20px; }
.wfy .card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #f9fafb; }
.wfy .card p { color: #9ca3af; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.wfy .card.card-link { display: block; color: inherit; }
.wfy .card-badge { position: absolute; top: 18px; right: 18px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.wfy .card-badge.live { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #34d399; }
.wfy .card-badge.soon { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #9ca3af; }
.wfy .card.is-soon { opacity: .6; }
.wfy .card.is-soon:hover { transform: none; border-color: rgba(255,255,255,.08); box-shadow: none; }
.wfy .card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #35d4ff; }
.wfy .card-preview-box { width: 100%; height: 150px; background: rgba(3,7,18,.6); border-radius: 12px; border: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }

/* --- Platforms ------------------------------------------------------------ */
.wfy .platforms-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.wfy .platform-pill { background: rgba(17,24,39,.5); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 20px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #f9fafb; transition: all .3s ease; }
.wfy .platform-pill:hover { border-color: #35d4ff; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(53,212,255,.15); }

/* --- Pricing -------------------------------------------------------------- */
.wfy .pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; max-width: 860px; margin: 0 auto; }
.wfy .pricing-card { background: rgba(17,24,39,.5); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 40px 30px; display: flex; flex-direction: column; position: relative; backdrop-filter: blur(10px); transition: all .3s ease; }
.wfy .pricing-card.popular { border-color: #4F8DFF; background: linear-gradient(180deg, rgba(79,141,255,.1) 0%, rgba(17,24,39,.6) 100%); transform: scale(1.03); }
.wfy .popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #4F8DFF, #35d4ff); color: #000; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.wfy .pricing-header h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #f9fafb; }
.wfy .pricing-header p { color: #9ca3af; font-size: 13px; margin-bottom: 24px; }
.wfy .price { font-size: 48px; font-weight: 800; margin-bottom: 24px; color: #f9fafb; }
.wfy .price span { font-size: 15px; color: #9ca3af; font-weight: 400; }
.wfy .pricing-features { margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.wfy .pricing-features li { font-size: 14px; color: #f9fafb; display: flex; align-items: center; gap: 10px; }
.wfy .pricing-features svg { color: #35d4ff; flex: 0 0 18px; width: 18px; height: 18px; }

/* --- FAQ (native details/summary, no JS) ---------------------------------- */
.wfy .faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.wfy .faq-item { background: rgba(17,24,39,.5); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; transition: border-color .3s ease; }
.wfy .faq-item[open] { border-color: #4F8DFF; }
.wfy .faq-question { width: 100%; padding: 22px 28px; color: #fff; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; }
.wfy .faq-question::-webkit-details-marker { display: none; }
.wfy .faq-question svg { flex: 0 0 20px; transition: transform .3s ease; }
.wfy .faq-item[open] .faq-question svg { transform: rotate(180deg); }
.wfy .faq-answer { padding: 0 28px 22px; color: #9ca3af; font-size: 15px; line-height: 1.7; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .wfy .hero { grid-template-columns: 1fr; text-align: center; padding-top: 70px; }
  .wfy .hero-content p { margin: 0 auto 36px; }
  .wfy .hero-content div[style*="flex"] { justify-content: center; }
  .wfy .cards-grid, .wfy .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .wfy .platforms-grid { grid-template-columns: repeat(3,1fr); }
  .wfy .counters-grid { grid-template-columns: repeat(2,1fr); gap: 40px; }
}
@media (max-width: 768px) {
  .wfy .hero-content h1 { font-size: 40px; letter-spacing: -1px; }
  .wfy .section { padding: 70px 0; }
  .wfy .section-title { font-size: 32px; }
  .wfy .cards-grid, .wfy .pricing-grid { grid-template-columns: 1fr; }
  .wfy .platforms-grid { grid-template-columns: repeat(2,1fr); }
  .wfy .pricing-card.popular { transform: none; }
}

/* --- 1. Kill the demo top bar -------------------------------------------- */

#sp-top-bar {
  display: none !important;
}

#sp-header .sp-module {

    margin-left: 50px;
}

/* --- 2. Header: transparent over the hero, glass once scrolled ----------- */

#sp-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

#sp-header.header-sticky,
#sp-header.menu-fixed,
body:not(.home) #sp-header {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wfy-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* If the hero should start under the header, uncomment:
#sp-main-body { padding-top: 0; }
*/

/* --- 3. Logo -------------------------------------------------------------- */

.logo a,
.sp-default-logo + .logo a,
#sp-header .logo a {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

#sp-header .logo img {
  max-height: 38px;
  width: auto;
}

/* --- 4. Menu links -------------------------------------------------------- */

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  color: var(--wfy-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item > a {
  color: #fff;
}

/* animated underline, same as the landing page */
.sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wfy-blue), var(--wfy-cyan));
  transition: width 0.3s ease;
}

.sp-megamenu-parent > li > a:hover::after,
.sp-megamenu-parent > li.active > a::after {
  width: 90%;
}

/* --- 5. Dropdowns --------------------------------------------------------- */

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: rgba(13, 22, 39, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--wfy-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  color: var(--wfy-muted);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* --- 6. CTA menu items ---------------------------------------------------- */
/* In Joomla: Menus -> your item -> Link Type -> Link CSS Style
   Use "wfy-cta" for the gradient button, "wfy-ghost" for the outlined one.   */

.sp-megamenu-parent > li.wfy-cta > a,
.sp-megamenu-parent > li.wfy-ghost > a {
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-megamenu-parent > li.wfy-cta > a {
  background: linear-gradient(135deg, var(--wfy-blue), var(--wfy-purple));
  color: #fff;
  box-shadow: 0 4px 25px rgba(79, 141, 255, 0.35);
}

.sp-megamenu-parent > li.wfy-cta > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(79, 141, 255, 0.5);
  color: #fff;
}

.sp-megamenu-parent > li.wfy-ghost > a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wfy-border);
  color: #fff;
}

.sp-megamenu-parent > li.wfy-ghost > a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* no underline animation on the buttons */
.sp-megamenu-parent > li.wfy-cta > a::after,
.sp-megamenu-parent > li.wfy-ghost > a::after {
  display: none;
}

/* --- 7. Burger + off-canvas (mobile) -------------------------------------- */

.burger-icon > span,
#offcanvas-toggler .burger-icon > span {
  background-color: #fff;
}

.offcanvas-menu,
.offcanvas-init .offcanvas-menu {
  background: rgba(3, 7, 18, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--wfy-border);
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li a,
.offcanvas-menu .offcanvas-inner .sp-module ul > li span {
  color: var(--wfy-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li a:hover {
  color: var(--wfy-cyan);
}

.close-offcanvas .burger-icon > span {
  background-color: #fff;
}

/* --- 8. Page body: keep the dark canvas seamless -------------------------- */

body,
#sp-main-body,
.body-wrapper,
.sp-page-builder .page-content {
  background-color: var(--wfy-bg);
}

/* Helix sometimes adds white padding around the component area */
#sp-main-body {
  padding: 0;
}

/* --- 9. Login/registration & other Joomla pages on dark ------------------- */

#sp-main-body h1,
#sp-main-body h2,
#sp-main-body h3,
#sp-main-body label,
#sp-main-body p,
#sp-main-body td,
#sp-main-body th {
  color: var(--wfy-text);
}

#sp-main-body a {
  color: var(--wfy-cyan);
}

#sp-main-body .form-control,
#sp-main-body .form-select {
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid var(--wfy-border);
  color: var(--wfy-text);
  border-radius: 12px;
}

#sp-main-body .form-control:focus,
#sp-main-body .form-select:focus {
  background: rgba(3, 7, 18, 0.85);
  border-color: var(--wfy-blue);
  color: var(--wfy-text);
  box-shadow: 0 0 0 3px rgba(79, 141, 255, 0.2);
}

#sp-main-body .btn-primary {
  background: linear-gradient(135deg, var(--wfy-blue), var(--wfy-purple));
  border: 0;
  border-radius: 12px;
  font-weight: 600;
}

/* --- Registration / login (com_users) - dark card to match the rest ------ */

.com-users-registration.registration,
.com-users-login {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 20px;
}

.com-users-registration .row,
.com-users-login .row {
  margin: 0;
}

.com-users-registration [class*="col-"],
.com-users-login [class*="col-"] {
  padding: 0;
  max-width: 100%;
  flex: 0 0 100%;
}

.com-users-registration__form,
.com-users-login form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(10px);
}

.com-users-registration__form fieldset {
  border: none;
  margin: 0 0 8px;
  padding: 0;
}

.com-users-registration__form legend {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding: 0;
  width: auto;
  border: none;
}

/* "* Required field" line */
.com-users-registration__form .field-spacer .spacer {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.com-users-registration__form .star,
.com-users-registration__form .red {
  color: #ec4899;
}

.com-users-registration__form .control-group {
  margin-bottom: 20px;
}

.com-users-registration__form .control-label {
  margin-bottom: 6px;
}

.com-users-registration__form .control-label label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.com-users-registration__form .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}

.com-users-registration__form .password-group .input-group {
  position: relative;
  display: flex;
}

.com-users-registration__form .input-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
}

.com-users-registration__form .input-password-toggle:hover {
  color: var(--cyan);
}

.com-users-registration__form meter {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.com-users-registration__form meter::-webkit-meter-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: none;
}

.com-users-registration__form meter::-webkit-meter-optimum-value,
.com-users-registration__form meter::-webkit-meter-suboptimum-value,
.com-users-registration__form meter::-webkit-meter-even-less-good-value {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.com-users-registration__form output {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.com-users-registration__form .text-muted {
  color: var(--muted) !important;
  font-size: 12px;
}

.com-users-registration__submit {
  margin-top: 32px;
}

.com-users-registration__register {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .com-users-registration__form,
  .com-users-login form {
    padding: 32px 24px;
  }
}


/*LEGAL*/

.legal-content {
  max-width: 840px;
  margin: 30px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 64px;
  backdrop-filter: blur(10px);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #fff;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content strong {
  color: #fff;
  font-weight: 700;
}

.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--blue);
}

.legal-content ul {
  margin: 4px 0 16px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.legal-content ol {
  margin: 4px 0 16px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content th, .legal-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.legal-content th {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.tbd {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 1px 7px;
  border-radius: 5px;
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 36px 24px;
  }
}

/* --- v3 native-addon bridge (hero buttons + stat counters) --------------- */

/* Hero CTA buttons are now 2 separate SPPB button addons instead of one
   flex-wrapped div - keep them sitting side by side with the same gap. */
.wfy-hero-btn {
  display: inline-block;
  margin: 0 16px 16px 0;
}
.wfy-hero-btn:last-child {
  margin-right: 0;
}

/* Stat counters: plain HTML/CSS reusing the .card look. Two fixes here:
   1) .wfy .cards-grid (2 classes) beats a single-class override, so this
      needs matching specificity + !important to force 4 columns instead
      of the default 3.
   2) .card's backdrop-filter creates a compositing context that breaks
      background-clip:text gradients on children in some browsers - the
      number rendered solid white instead of the blue/cyan gradient.
      Disabling backdrop-filter just for these cards fixes it. */
.wfy .cards-grid.wfy-counters-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
.wfy-counters-grid .card {
  text-align: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 1024px) {
  .wfy .cards-grid.wfy-counters-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .wfy .cards-grid.wfy-counters-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Wave divider (between marquee and the next section) was barely visible -
   original fill was 1.5% white opacity, bumped up a bit while staying subtle. */
.wfy .wave-divider .shape-fill {
  fill: rgba(255, 255, 255, 0.06);
}

