/* ==========================================================================
   Keld — Keld-inspired frontend theme
   Design tokens adapted from the Keld reference (navy / electric-blue / lime).
   Self-contained: only depends on Bootstrap 5 grid + Font Awesome + Inter.
   The admin-configurable accent arrives via --base (set in main.php); we
   default it to the Keld signature blue.
   ========================================================================== */

:root {
  --ep-navy:        #121A26;
  --ep-navy-700:    #202B3C;
  --ep-teal:        #164951;   /* deep shape colour behind the hero        */
  --base:           #006AFF;   /* signature electric blue (overridable)     */
  --ep-blue-600:    #0052cc;
  --ep-blue-100:    #E9F0FF;
  --ep-lime:        #87E64B;   /* signature highlight card                  */
  --ep-lime-ink:    #12331a;
  --ep-success:     #22C55E;
  --ep-warning:     #FACC15;
  --ep-error:       #FF4747;

  --ep-body:        #FAFBFF;
  --ep-surface:     #FFFFFF;
  --ep-section:     #F1F5F9;
  --ep-ink:         #111827;
  --ep-ink-soft:    #4F627D;
  --ep-muted:       #94A3B8;
  --ep-line:        #E5E7EB;

  --ep-radius:      18px;
  --ep-radius-lg:   26px;
  --ep-pill:        999px;
  --ep-shadow:      0 18px 40px -22px rgba(18,26,38,.35);
  --ep-shadow-soft: 0 10px 30px -18px rgba(18,26,38,.28);
  --ep-ease:        cubic-bezier(.22,.61,.36,1);

  --ep-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ----- base ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ep-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ep-ink);
  background: var(--ep-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--base); text-decoration: none; transition: color .2s var(--ep-ease); }
a:hover { color: var(--ep-blue-600); }
h1, h2, h3, h4, h5, h6 { color: var(--ep-ink); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1rem; color: var(--ep-ink-soft); }
ul { margin: 0; }

.container { max-width: 1180px; }

/* colour helpers used across the blades */
.bg--base    { background: var(--base) !important; color: #fff !important; }
.bg--section { background: var(--ep-section) !important; }
.bg--body    { background: var(--ep-body) !important; }
.text--base  { color: var(--base) !important; }
.text--title { color: var(--ep-ink) !important; }
.text--danger{ color: var(--ep-error) !important; }

/* custom spacing scale referenced by the section blades */
.pt-100 { padding-top: 100px; }  .pb-100 { padding-bottom: 100px; }
.pt-50  { padding-top: 56px; }   .pb-50  { padding-bottom: 56px; }
@media (max-width: 767px){
  .pt-100 { padding-top: 60px; } .pb-100 { padding-bottom: 60px; }
  .pt-50  { padding-top: 36px; } .pb-50  { padding-bottom: 36px; }
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.contact-bar.navbar-top {
  background: var(--ep-navy) !important;
  color: #fff;
  font-size: .85rem;
}
.navbar-top .social-icons,
.navbar-top .contact-bar { display: flex; gap: 14px; align-items: center; padding: 8px 0; margin: 0; list-style: none; }
.navbar-top a { color: rgba(255,255,255,.85); }
.navbar-top a:hover { color: #fff; }
.language-bar {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--ep-pill);
  padding: 4px 12px;
  font-size: .85rem;
  outline: none;
}
.language-bar option { color: #111; }

/* ==========================================================================
   Header / primary navigation
   ========================================================================== */
.navbar-bottom {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(18,26,38,.06);
}
.navbar-wrapper { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.logo img { max-height: 46px; width: auto; }
.nav-menu-area { margin-left: auto; }
.nav-menu {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu > li > a {
  color: var(--ep-navy);
  font-weight: 500;
  font-size: .98rem;
  padding: 6px 2px;
  position: relative;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px; background: var(--base);
  transition: width .25s var(--ep-ease);
}
.nav-menu > li > a:hover { color: var(--base); }
.nav-menu > li > a:hover::after { width: 100%; }

/* buttons */
.cmn--btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--base); color: #fff !important;
  border: 1px solid var(--base);
  border-radius: var(--ep-pill);
  padding: 12px 26px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: transform .18s var(--ep-ease), box-shadow .18s var(--ep-ease), background .18s var(--ep-ease);
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--base) 70%, transparent);
}
.cmn--btn:hover { transform: translateY(-2px); background: var(--ep-blue-600); color: #fff !important; box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--base) 80%, transparent); }
.cmn--btn.btn-outline {
  background: transparent; color: var(--base) !important;
  border: 1px solid color-mix(in srgb, var(--base) 40%, var(--ep-line));
  box-shadow: none;
}
.cmn--btn.btn-outline:hover { background: var(--ep-blue-100); color: var(--ep-blue-600) !important; border-color: var(--base); }
.btn__grp { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* mobile toggler */
.nav-toggle { width: 42px; height: 42px; border-radius: 12px; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--ep-blue-100); cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ep-navy); border-radius: 2px; transition: .25s var(--ep-ease); }
.menu-close { display: none; cursor: pointer; font-size: 1.4rem; }
.overlayer { position: fixed; inset: 0; background: rgba(18,26,38,.5); opacity: 0; visibility: hidden; transition: .3s var(--ep-ease); z-index: 44; }
.overlayer.active { opacity: 1; visibility: visible; }

@media (max-width: 991px){
  .nav-toggle { display: flex; }
  .nav-menu-area {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
    background: #fff; box-shadow: -20px 0 50px -30px rgba(0,0,0,.4);
    padding: 26px 22px; z-index: 45; transition: right .32s var(--ep-ease);
    overflow-y: auto; margin-left: 0;
  }
  .nav-menu-area.active { right: 0; }
  .menu-close { display: block; text-align: right; margin-bottom: 18px; color: var(--ep-error); }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--ep-line); width: 100%; }
  .btn__grp { flex-direction: column; align-items: stretch; width: 100%; margin-top: 16px; }
  .btn__grp .cmn--btn { width: 100%; }
}

/* ==========================================================================
   Hero (inner pages) + Banner (home)
   ========================================================================== */
.hero-section, .banner-section { position: relative; overflow: hidden; }

.hero-section {
  background: radial-gradient(120% 140% at 85% -10%, var(--base) 0%, var(--ep-teal) 45%, var(--ep-navy) 100%);
  color: #fff; padding: 84px 0 96px;
}
.hero-section .hero-title { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.hero-section .breadcrumb { display: flex; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; color: rgba(255,255,255,.7); }
.hero-section .breadcrumb li a { color: #fff; }
.hero-section .breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.banner-section {
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--base) 22%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--ep-body) 100%);
  padding: 72px 0 84px;
}
.banner__wrapper { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.banner__wrapper-content .subtitle {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--base);
  background: var(--ep-blue-100); padding: 7px 14px; border-radius: var(--ep-pill); margin-bottom: 18px;
}
.banner__wrapper-content .title { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 0 0 18px; }
.banner__wrapper-content > p { font-size: 1.08rem; max-width: 46ch; }
.banner__wrapper-thumb {
  background: linear-gradient(160deg, var(--ep-lime) 0%, #b6f08a 100%);
  border-radius: var(--ep-radius-lg);
  padding: 22px; box-shadow: var(--ep-shadow);
  position: relative;
  width: 100%; max-width: 460px; margin-left: auto;   /* keep it a tidy card, not a slab */
}
.banner__wrapper-thumb::before {
  content: ""; position: absolute; inset: auto 18px -18px 18px; height: 40px;
  background: color-mix(in srgb, var(--base) 20%, transparent); filter: blur(26px); z-index: -1;
}
.banner__wrapper-thumb img { border-radius: 16px; display: block; width: 100%; height: auto; }
@media (max-width: 991px){
  .banner__wrapper { grid-template-columns: 1fr; gap: 34px; }
  .banner__wrapper-thumb { order: -1; }
}

/* decorative floating blobs */
.banner-elem {
  position: absolute; display: block; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--base) 40%, transparent), transparent 70%);
  filter: blur(6px); opacity: .5; animation: epFloat 9s var(--ep-ease) infinite;
}
/* keep only three, subtle, well inside the section so nothing crowds the content */
.banner-elem { opacity: .28; filter: blur(10px); }
.elem1 { width: 150px; height: 150px; top: 6%;  right: 30%; }
.elem2 { width: 80px;  height: 80px;  bottom: 14%; right: 10%; background: radial-gradient(circle,var(--ep-lime),transparent 70%); opacity: .22; animation-delay: 1.5s; }
.elem3 { width: 110px; height: 110px; top: 44%; right: 4%; animation-delay: 1s; }
/* hide the rest — they only added visual noise */
.elem4, .elem5, .elem6, .elem7, .elem8, .elem9, .elem10 { display: none; }
@keyframes epFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

/* ==========================================================================
   Section titles + shared cards
   ========================================================================== */
.section-title .subtitle {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--base);
  background: var(--ep-blue-100); padding: 6px 14px; border-radius: var(--ep-pill); margin-bottom: 14px;
}
.section-title .title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 14px; }
.section-title.text-center { max-width: 620px; margin-inline: auto; margin-bottom: 44px; }
.sticky-section-title { position: sticky; top: 110px; }

/* generic feature/service/how/counter cards share one look */
.feature-item, .service-item, .how__item, .counter-item {
  background: var(--ep-surface);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
  padding: 24px;
  box-shadow: var(--ep-shadow-soft);
  transition: transform .22s var(--ep-ease), box-shadow .22s var(--ep-ease), border-color .22s var(--ep-ease);
}
.feature-item:hover, .service-item:hover, .how__item:hover, .counter-item:hover {
  transform: translateY(-4px); box-shadow: var(--ep-shadow); border-color: color-mix(in srgb, var(--base) 30%, var(--ep-line));
}

.feature-wrapper { display: grid; gap: 18px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon, .service-icon, .how__item-thumb, .counter-icon {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--ep-blue-100); color: var(--base);
}
.feature-icon img, .service-icon img { width: 30px; height: 30px; object-fit: contain; }
.service-item { text-align: center; }
.service-item .service-icon { margin: 0 auto 18px; }
.how__item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.how__item-title { color: var(--base); margin: 0 0 6px; font-size: 1.05rem; }
.feature-content h5, .service-item .title { font-size: 1.1rem; margin: 0 0 8px; }
.feature-content h5 a, .service-item .title a { color: var(--ep-ink); }

/* counters / CTA band */
.ctas-section { background: var(--ep-section); }
.counter-item { display: flex; gap: 16px; align-items: center; }
.counter-title { font-size: 2rem; margin: 0; color: var(--ep-navy); }
.counter-subtitle { margin: 0; color: var(--ep-ink-soft); font-weight: 500; }

/* testimonials */
.testimonial-item, .testimonial__item {
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-radius);
  padding: 26px; box-shadow: var(--ep-shadow-soft); margin: 10px;
}
.testimonial-item p, .testimonial__item p { font-size: 1.02rem; color: var(--ep-ink); }

/* sponsors / logos */
.sponsors-section img, .sponsor-item img { filter: grayscale(1); opacity: .6; transition: .25s var(--ep-ease); max-height: 46px; }
.sponsors-section img:hover, .sponsor-item img:hover { filter: none; opacity: 1; }

/* blog cards */
.blog-item, .blog__item {
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--ep-radius);
  overflow: hidden; box-shadow: var(--ep-shadow-soft); transition: transform .22s var(--ep-ease), box-shadow .22s var(--ep-ease);
}
.blog-item:hover, .blog__item:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow); }
.blog-item img, .blog__item img { width: 100%; object-fit: cover; }

/* FAQ / accordion */
.accordion-item, .faq-item { border: 1px solid var(--ep-line) !important; border-radius: var(--ep-radius) !important; overflow: hidden; margin-bottom: 12px; background: #fff; }
.accordion-button { font-weight: 600; color: var(--ep-navy); }
.accordion-button:not(.collapsed) { background: var(--ep-blue-100); color: var(--base); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--base) 25%, transparent); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: var(--ep-navy); color: rgba(255,255,255,.72); }
.footer-top.bg--section { background: var(--ep-navy) !important; padding: 64px 0 40px; }
.footer-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-widget a { color: rgba(255,255,255,.7); }
.footer-widget a:hover { color: var(--ep-lime); padding-left: 4px; }
.footer-bottom.bg--body { background: #0d141d !important; border-top: 1px solid rgba(255,255,255,.08); }
.bottom-menu-wrapper { padding: 20px 0; gap: 14px; }
.footer-logo img { max-height: 44px; }
.copyright { color: rgba(255,255,255,.6); }
.copyright a.text--base { color: var(--ep-lime) !important; }
.bottom-menu { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.bottom-menu a { color: rgba(255,255,255,.7); }
.bottom-menu a:hover { color: #fff; }
@media (max-width: 767px){ .footer-wrapper { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-wrapper { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reveal-on-scroll + accessibility
   ========================================================================== */
.ep-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ep-ease), transform .6s var(--ep-ease); }
.ep-reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--base) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ep-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Owl Carousel — Keld dots + safety
   ========================================================================== */
/* Belt-and-braces: never let an un-initialised carousel dump its items raw. */
.owl-carousel:not(.owl-loaded) { display: none; }
.owl-carousel.owl-loaded { display: block; }
.owl-carousel .owl-item { display: flex; }        /* equal-height slides */
.owl-carousel .owl-item > * { width: 100%; }
.owl-dots { text-align: center; margin-top: 22px; display: flex; gap: 8px; justify-content: center; }
.owl-dots .owl-dot span {
  width: 9px; height: 9px; margin: 0; background: color-mix(in srgb, var(--base) 25%, var(--ep-line));
  border-radius: 999px; display: block; transition: .25s var(--ep-ease);
}
.owl-dots .owl-dot.active span { width: 26px; background: var(--base); }
.owl-nav button.owl-prev, .owl-nav button.owl-next {
  width: 42px; height: 42px; border-radius: 50%; background: #fff !important;
  border: 1px solid var(--ep-line) !important; color: var(--base) !important;
  box-shadow: var(--ep-shadow-soft);
}

/* Graceful, no-JS fallback: if Owl never loads, show a clean responsive row. */
.ep-slider-fallback { display: grid !important; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px){ .ep-slider-fallback { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px){ .ep-slider-fallback { grid-template-columns: 1fr; } }
.sponsor-slider.ep-slider-fallback { grid-template-columns: repeat(6, 1fr); align-items: center; }
@media (max-width: 991px){ .sponsor-slider.ep-slider-fallback { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Auth pages (login / register / forgot / reset / verify)
   ========================================================================== */
.account-section {
  min-height: calc(100vh - 0px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 16px;
  background:
    radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--base) 16%, transparent) 0%, transparent 55%),
    radial-gradient(70% 80% at 0% 100%, color-mix(in srgb, var(--ep-lime) 22%, transparent) 0%, transparent 55%),
    var(--ep-body);
}
.account-wrapper {
  width: 100%; max-width: 480px;
  background: #fff;
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius-lg);
  box-shadow: var(--ep-shadow);
  padding: 40px 34px;
}
.account-section.register .account-wrapper { max-width: 720px; }
.account-right { width: 100%; }
.account-wrapper .section-title { margin-bottom: 26px; }
.account-wrapper .logo img { max-height: 48px; width: auto; }
.account-wrapper .title { font-size: 1.5rem; color: var(--ep-navy); }

/* form controls */
.form-group { margin-bottom: 4px; }
.form--label {
  display: inline-block; font-weight: 600; font-size: .9rem;
  color: var(--ep-navy); margin-bottom: 8px;
}
.form-control.form--control, .form--control, textarea.form--control, select.form--control {
  width: 100%;
  background: var(--ep-section) !important;
  border: 1px solid var(--ep-line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: .98rem; color: var(--ep-ink);
  transition: border-color .2s var(--ep-ease), box-shadow .2s var(--ep-ease), background .2s var(--ep-ease);
}
.form--control::placeholder { color: var(--ep-ink-soft); opacity: .7; }
.form-control.form--control:focus, .form--control:focus {
  outline: none;
  background: #fff !important;
  border-color: var(--base);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--base) 22%, transparent);
}
.account-wrapper .cmn--btn { width: 100%; padding: 14px; font-size: 1rem; }
.account-wrapper a { color: var(--base); font-weight: 500; }
.account-wrapper a:hover { color: var(--ep-blue-600); }

/* input-group (country code, password eye, etc.) — stretch children to equal height */
.input-group { display: flex; align-items: stretch; flex-wrap: nowrap; width: 100%; }
.input-group > .form--control { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .input-group-text, .input-group > .input--group-text {
  display: flex; align-items: center; justify-content: center;
  min-width: 54px; padding: 0 14px; white-space: nowrap;
  background: var(--ep-section); border: 1px solid var(--ep-line);
  color: var(--ep-navy); font-weight: 600;
}
.input-group > .input-group-text:first-child { border-right: 0; border-radius: 12px 0 0 12px; }
.input-group > .input-group-text:last-child  { border-left: 0;  border-radius: 0 12px 12px 0; }
.input-group > .form--control:not(:first-child) { border-radius: 0 12px 12px 0; }
.input-group > .form--control:not(:last-child)  { border-radius: 12px 0 0 12px; }
.input-group > .form--control:only-child { border-radius: 12px; }
/* dial-code prefix shows the country code centred */
.input-group .d_code { font-variant-numeric: tabular-nums; }
.input-group .d_code:empty::before { content: "+"; opacity: .5; }

/* ==========================================================================
   Premium polish pass (round 6) — richer cards, icons, micro-interactions
   ========================================================================== */

/* refined section titles with a gradient eyebrow */
.section-title .subtitle, .banner__wrapper-content .subtitle {
  background: linear-gradient(90deg, var(--ep-blue-100) 0%, #eafbe0 100%);
  border: 1px solid color-mix(in srgb, var(--base) 18%, transparent);
  box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--base) 50%, transparent);
}
.section-title .title, .banner__wrapper-content .title {
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--ep-ink) 0%, #34435a 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* service / feature / how / counter cards — layered, tactile */
.feature-item, .service-item, .how__item, .counter-item {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 30px -22px rgba(18,26,38,.4);
}
.feature-item::before, .service-item::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--base), var(--ep-lime));
  opacity: 0; transition: opacity .25s var(--ep-ease);
}
.feature-item:hover, .service-item:hover, .how__item:hover, .counter-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -28px color-mix(in srgb, var(--base) 45%, rgba(18,26,38,.5));
  border-color: color-mix(in srgb, var(--base) 22%, #eef2f7);
}
.feature-item:hover::before, .service-item:hover::before { opacity: 1; }

/* icon tiles — gradient chip with soft glow */
.feature-icon, .service-icon, .how__item-thumb, .counter-icon {
  background: linear-gradient(150deg, color-mix(in srgb, var(--base) 16%, #fff) 0%, color-mix(in srgb, var(--ep-lime) 22%, #fff) 100%);
  color: var(--base);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--base) 14%, transparent), 0 12px 22px -16px color-mix(in srgb, var(--base) 70%, transparent);
  transition: transform .25s var(--ep-ease);
}
.service-item:hover .service-icon, .feature-item:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }

/* counters — gradient numerals */
.counter-title, .counter-title .count {
  background: linear-gradient(120deg, var(--base) 0%, var(--ep-teal) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* buttons — subtle gradient + crisper shadow */
.cmn--btn {
  background: linear-gradient(135deg, var(--base) 0%, color-mix(in srgb, var(--base) 82%, #1e40ff) 100%);
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--base) 75%, transparent);
  letter-spacing: .01em;
}
.cmn--btn:hover { box-shadow: 0 20px 34px -16px color-mix(in srgb, var(--base) 85%, transparent); }
.cmn--btn.btn-outline { background: #fff; }

/* testimonial cards — quote flourish + lift */
.testimonial-item, .testimonial__item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 34px -24px rgba(18,26,38,.45); transition: transform .25s var(--ep-ease), box-shadow .25s var(--ep-ease);
}
.testimonial-item:hover, .testimonial__item:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(18,26,38,.5); }
.testimonial-item .icon i, .testimonial-header .icon i { color: color-mix(in srgb, var(--base) 55%, #cfe0ff); font-size: 1.6rem; }
.testimonial-item .name, .testimonial__item .name { color: var(--base); font-weight: 700; }

/* FAQ accordion — softer, elevated */
.accordion-item, .faq-item { box-shadow: 0 8px 24px -20px rgba(18,26,38,.4); }
.accordion-button::after { filter: hue-rotate(5deg); }

/* banner asset card — glassy inner highlight */
.banner__wrapper-thumb::after {
  content: ""; position: absolute; inset: 22px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%);
}

/* footer — refined link hover with lime dot */
.footer-widget ul li a { position: relative; padding-left: 0; transition: color .2s var(--ep-ease), padding-left .2s var(--ep-ease); }
.footer-widget ul li a:hover { padding-left: 14px; }
.footer-widget ul li a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ep-lime); opacity: 0; transform: translateY(-50%) scale(.4); transition: .2s var(--ep-ease);
}
.footer-widget ul li a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }

/* smooth global anchor focus + card image zoom for blog */
.blog-item img, .blog__item img { transition: transform .4s var(--ep-ease); }
.blog-item:hover img, .blog__item:hover img { transform: scale(1.05); }

/* ==========================================================================
   Cookie consent — modern floating card with entrance flow
   ========================================================================== */
.ep-cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 1200;
  max-width: 440px; width: calc(100% - 48px);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .45s var(--ep-ease), transform .45s var(--ep-ease);
  pointer-events: none;
}
.ep-cookie.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ep-cookie.is-leaving { opacity: 0; transform: translateY(24px) scale(.98); }
.ep-cookie-inner {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(18,26,38,.08);
  border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 30px 70px -30px rgba(18,26,38,.55);
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic body" "actions actions"; gap: 6px 14px;
}
.ep-cookie-ic {
  grid-area: ic; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--ep-blue-100) 0%, #eafbe0 100%); color: var(--base); font-size: 1.2rem;
}
.ep-cookie-body { grid-area: body; }
.ep-cookie-title { margin: 2px 0 4px; font-size: 1rem; font-weight: 700; color: var(--ep-navy); }
.ep-cookie-text { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ep-ink-soft); }
.ep-cookie-actions { grid-area: actions; display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.ep-cookie-btn {
  border: 0; border-radius: 999px; padding: 9px 20px; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: transform .15s var(--ep-ease), box-shadow .18s var(--ep-ease), background .18s var(--ep-ease);
}
.ep-cookie-btn:hover { transform: translateY(-1px); }
.ep-cookie-decline { background: var(--ep-section); color: var(--ep-ink); }
.ep-cookie-decline:hover { background: #e6ebf2; }
.ep-cookie-accept {
  background: linear-gradient(135deg, var(--base) 0%, color-mix(in srgb, var(--base) 82%, #1e40ff) 100%);
  color: #fff; box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--base) 75%, transparent);
}
@media (max-width: 575px){ .ep-cookie { left: 12px; bottom: 12px; width: calc(100% - 24px); } }

/* ==========================================================================
   HOME — PROFESSIONAL STATIC SECTIONS (security, benefits, CTA)
   ========================================================================== */
.ep-section-head{ max-width:680px; margin:0 auto 48px; }
.ep-section-head .subtitle{ font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:.8rem; margin-bottom:12px; }

/* Security / Trust */
.ep-trust-section{ padding:96px 0; background:#FAFBFF; }
.ep-trust-title{ font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:800; letter-spacing:-.03em; color:#121A26; margin-bottom:16px; }
.ep-trust-lead{ color:#5b6b82; font-size:1.08rem; line-height:1.7; }
.ep-trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.ep-trust-card{
  background:#fff; border:1px solid #E9F0FF; border-radius:22px; padding:32px 26px;
  box-shadow:0 1px 2px rgba(16,24,40,.04); transition:transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
}
.ep-trust-card:hover{ transform:translateY(-6px); box-shadow:0 26px 50px -24px rgba(0,106,255,.28); border-color:#cfe0ff; }
.ep-trust-ic{
  width:60px; height:60px; border-radius:18px; display:grid; place-items:center; font-size:1.5rem; margin-bottom:20px;
  background:linear-gradient(150deg,#E9F0FF 0%, #eafbe0 100%); color:#006AFF; box-shadow:inset 0 0 0 1px rgba(0,106,255,.1);
}
.ep-trust-card h5{ font-weight:700; color:#121A26; font-size:1.12rem; margin-bottom:10px; letter-spacing:-.01em; }
.ep-trust-card p{ color:#64748B; font-size:.95rem; line-height:1.6; margin:0; }

/* Benefits strip */
.ep-benefits-section{ padding:20px 0 8px; }
.ep-benefits-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:34px; background:#121A26; border-radius:26px;
  background-image:radial-gradient(120% 140% at 100% 0%, rgba(0,106,255,.35) 0%, transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(135,230,75,.18) 0%, transparent 55%); }
.ep-benefit{ display:flex; align-items:center; gap:14px; color:#fff; }
.ep-benefit-ic{ width:48px; height:48px; flex:0 0 auto; border-radius:14px; display:grid; place-items:center; font-size:1.2rem;
  background:rgba(255,255,255,.1); color:#87E64B; }
.ep-benefit b{ display:block; font-size:1rem; font-weight:700; }
.ep-benefit span{ color:rgba(255,255,255,.66); font-size:.85rem; line-height:1.4; }

/* Final CTA */
.ep-cta-section{ padding:80px 0 96px; }
.ep-cta-card{ position:relative; overflow:hidden; border-radius:30px; padding:64px 48px; text-align:center;
  background:linear-gradient(135deg,#006AFF 0%, #0a4fd6 55%, #164951 100%); box-shadow:0 40px 80px -40px rgba(0,106,255,.6); }
.ep-cta-glow{ position:absolute; width:520px; height:520px; border-radius:50%; top:-260px; right:-120px; pointer-events:none;
  background:radial-gradient(circle, rgba(135,230,75,.4) 0%, transparent 65%); }
.ep-cta-content{ position:relative; z-index:1; max-width:680px; margin:0 auto; }
.ep-cta-content h2{ color:#fff; font-size:clamp(1.9rem,3.6vw,2.8rem); font-weight:800; letter-spacing:-.03em; margin-bottom:16px; }
.ep-cta-content p{ color:rgba(255,255,255,.86); font-size:1.12rem; line-height:1.7; margin-bottom:32px; }
.ep-cta-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.ep-cta-section .cmn--btn{ background:#fff !important; color:#006AFF !important; border-color:#fff !important; }
.ep-cta-section .cmn--btn:hover{ background:#eafbe0 !important; color:#0057D6 !important; }
.btn-outline-light{ background:transparent!important; color:#fff!important; border:2px solid rgba(255,255,255,.5)!important; }
.btn-outline-light:hover{ background:rgba(255,255,255,.12)!important; border-color:#fff!important; }
.ep-cta-trust{ margin-top:26px; color:rgba(255,255,255,.8); font-size:.9rem; font-weight:500; }

@media (max-width:991px){
  .ep-trust-grid{ grid-template-columns:repeat(2,1fr); }
  .ep-benefits-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:575px){
  .ep-trust-grid, .ep-benefits-grid{ grid-template-columns:1fr; }
  .ep-trust-section{ padding:64px 0; } .ep-cta-card{ padding:44px 24px; }
}

/* ==========================================================================
   HOME — LIVE CRYPTO MARKET (Binance / Coinbase style)
   ========================================================================== */
.ep-market-section{ padding:150px 0 96px; background:linear-gradient(180deg, #FAFBFF 0%, #0E1729 120px, #0B0E14 240px); position:relative; overflow:hidden; }
.ep-market-section::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(60% 60% at 85% 0%, rgba(0,106,255,.22) 0%, transparent 55%),
             radial-gradient(50% 50% at 0% 100%, rgba(135,230,75,.1) 0%, transparent 55%); }
.ep-market-head{ position:relative; z-index:1; display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:32px; gap:20px; flex-wrap:wrap; }
.ep-market-head .subtitle{ font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:.8rem; margin-bottom:8px; color:#4d94ff; }
.ep-market-title{ font-size:clamp(1.7rem,3.2vw,2.4rem); font-weight:800; letter-spacing:-.03em; color:#fff; margin:0; }
.ep-market-cta{ white-space:nowrap; }

.ep-market-card{ position:relative; z-index:1; background:#111A2B; border:1px solid #1E2A3D; border-radius:22px; overflow:hidden;
  box-shadow:0 40px 80px -40px rgba(0,0,0,.8); }
.ep-market-tablewrap{ overflow-x:auto; }
.ep-market-table{ width:100%; border-collapse:collapse; min-width:560px; }
.ep-market-table thead th{ text-align:left; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:#6b7a90;
  font-weight:600; padding:16px 24px; border-bottom:1px solid #1E2A3D; background:#0E1626; }
.ep-market-table th.text-end, .ep-market-table td.text-end{ text-align:right; }
.ep-market-table tbody td{ padding:16px 24px; border-bottom:1px solid #17222f; color:#e6edf5; font-variant-numeric:tabular-nums; }
.ep-market-table tbody tr:last-child td{ border-bottom:0; }
.ep-market-table tbody tr{ transition:background .15s ease; }
.ep-market-table tbody tr:hover{ background:#16223a; }
.ep-coin{ display:flex; align-items:center; gap:12px; }
.ep-coin img{ width:34px; height:34px; border-radius:50%; }
.ep-coin b{ display:block; font-weight:700; font-size:.98rem; color:#fff; }
.ep-coin span{ color:#6b7a90; font-size:.8rem; text-transform:uppercase; letter-spacing:.03em; }
.ep-coin-price{ font-weight:700; font-size:1rem; }
.ep-chg{ font-weight:700; font-size:.92rem; padding:4px 10px; border-radius:8px; display:inline-block; }
.ep-chg.up{ color:#16C784; background:rgba(22,199,132,.12); }
.ep-chg.down{ color:#EA3943; background:rgba(234,57,67,.12); }
.ep-spark svg{ vertical-align:middle; }
.ep-market-loading{ text-align:center!important; color:#6b7a90; padding:40px!important; }
.ep-spinner{ display:inline-block; width:16px; height:16px; border:2px solid rgba(77,148,255,.3); border-top-color:#4d94ff; border-radius:50%; animation:ep-spin .7s linear infinite; vertical-align:middle; margin-right:6px; }
@keyframes ep-spin{ to{ transform:rotate(360deg); } }
.ep-market-foot{ display:flex; justify-content:space-between; align-items:center; padding:14px 24px; border-top:1px solid #1E2A3D; color:#6b7a90; font-size:.82rem; }
.ep-live-dot{ color:#16C784; font-size:.5rem; vertical-align:middle; margin-right:5px; animation:ep-pulse 1.6s ease-in-out infinite; }
@keyframes ep-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
@media (max-width:575px){ .ep-hide-sm{ display:none!important; } .ep-market-section{ padding:60px 0; } }

/* ==========================================================================
   HEADER AUTH BUTTONS — compact on desktop, clean on mobile
   ========================================================================== */
.navbar-bottom .nav-menu > li:last-child { margin-left: 6px; }
.header-auth { gap: 10px; }
.header-auth .cmn--btn { padding: 9px 20px; font-size: .9rem; }
/* keep the whole nav on one line on mid-width desktops */
@media (min-width: 992px) and (max-width: 1200px) {
  .navbar-wrapper { gap: 16px; }
  .nav-menu { gap: 18px; }
  .header-auth .cmn--btn { padding: 8px 16px; font-size: .86rem; }
}
/* mobile slide-menu: stack auth buttons full-width so they're easy to tap */
@media (max-width: 991.98px) {
  .nav-menu > li:last-child { width: 100%; margin-top: 10px; }
  .header-auth { width: 100%; flex-direction: column; margin-left: 0 !important; }
  .header-auth .cmn--btn { width: 100%; padding: 13px 20px; font-size: 1rem; }
}

/* ==========================================================================
   FAQ ACCORDION — proper padding (fixes clipped text) + working toggle
   ========================================================================== */
.faqs-section .accordion-wrapper { margin-bottom: 14px; }
.faqs-section .accordion-item { border: 1px solid var(--ep-line); border-radius: 18px; background: #fff; overflow: hidden;
  transition: box-shadow .22s var(--ep-ease), border-color .22s var(--ep-ease); }
.faqs-section .accordion-item .accordion-title { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; }
.faqs-section .accordion-item .accordion-title .title { margin: 0; font-size: 1.06rem; font-weight: 600; color: var(--ep-navy); line-height: 1.4; }
.faqs-section .accordion-item .accordion-title .icon { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.faqs-section .accordion-item .accordion-title .icon::before,
.faqs-section .accordion-item .accordion-title .icon::after { content: ""; position: absolute; background: var(--base); border-radius: 2px; transition: transform .25s var(--ep-ease), opacity .25s var(--ep-ease); }
.faqs-section .accordion-item .accordion-title .icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faqs-section .accordion-item .accordion-title .icon::after  { top: 3px; left: 10px; width: 2px; height: 16px; }
.faqs-section .accordion-item.active .accordion-title .icon::after,
.faqs-section .accordion-item.open   .accordion-title .icon::after { transform: rotate(90deg); opacity: 0; }
.faqs-section .accordion-item .accordion-content { max-height: 0; overflow: hidden; padding: 0 24px;
  transition: max-height .3s var(--ep-ease), padding .3s var(--ep-ease); }
.faqs-section .accordion-item.active .accordion-content,
.faqs-section .accordion-item.open   .accordion-content { max-height: 500px; padding: 0 24px 20px; }
.faqs-section .accordion-item .accordion-content p { margin: 0; color: var(--ep-muted); line-height: 1.7; font-size: .98rem; }
.faqs-section .accordion-item.active, .faqs-section .accordion-item.open {
  border-color: color-mix(in srgb, var(--base) 32%, var(--ep-line));
  box-shadow: 0 18px 38px -22px rgba(0,106,255,.35); }

/* ==========================================================================
   Dashboard KYC prompt banner
   ========================================================================== */
.ep-kyc-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 16px; margin-bottom: 20px;
  border: 1px solid transparent; box-shadow: 0 8px 24px -14px rgba(16,24,40,.25);
}
.ep-kyc-banner .ep-kyc-ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff;
}
.ep-kyc-banner .ep-kyc-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.ep-kyc-banner .ep-kyc-text strong { font-size: 1rem; color: var(--ep-navy); }
.ep-kyc-banner .ep-kyc-text span { font-size: .9rem; color: var(--ep-ink-soft); }
.ep-kyc-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; text-decoration: none;
  background: var(--base); color: #fff !important; white-space: nowrap;
  transition: transform .15s var(--ep-ease), filter .15s var(--ep-ease);
}
.ep-kyc-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
/* status colours */
.ep-kyc-0 { background: #FFF7ED; border-color: #FED7AA; }
.ep-kyc-0 .ep-kyc-ic { background: linear-gradient(135deg,#F59E0B,#F97316); }
.ep-kyc-2 { background: #EFF6FF; border-color: #BFDBFE; }
.ep-kyc-2 .ep-kyc-ic { background: linear-gradient(135deg,#2563EB,#3B82F6); }
.ep-kyc-3 { background: #FEF2F2; border-color: #FECACA; }
.ep-kyc-3 .ep-kyc-ic { background: linear-gradient(135deg,#DC2626,#EF4444); }
.ep-kyc-3 .ep-kyc-btn { background: #DC2626; }
@media (max-width: 640px){ .ep-kyc-banner { flex-wrap: wrap; } .ep-kyc-btn { width: 100%; justify-content: center; } }

/* Confirm modals must never be clipped by cards/overflow and must sit above all */
.modal.show { display: block; }
.modal { z-index: 20000 !important; }
.modal-backdrop { z-index: 19990 !important; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(16,24,40,.5); }
.modal .modal-footer .btn-primary { background: var(--base, #006AFF); border-color: var(--base, #006AFF); }
