/* ============================================================
   COINHASH BRAND OVERRIDE — Primary #8def12 + Premium Design
   ============================================================ */

/* ---- Fix CSS Variables ---- */
:root {
  --primary: #8def12;
  --primary-hover: #7bd40e;
  --primary-dark: #5ea00a;
  --rgba-primary-1: rgba(141, 239, 18, 0.1);
  --rgba-primary-2: rgba(141, 239, 18, 0.2);
  --rgba-primary-3: rgba(141, 239, 18, 0.3);
  --rgba-primary-4: rgba(141, 239, 18, 0.4);
  --rgba-primary-5: rgba(141, 239, 18, 0.5);
  --rgba-primary-6: rgba(141, 239, 18, 0.6);
  --rgba-primary-7: rgba(141, 239, 18, 0.7);
  --rgba-primary-8: rgba(141, 239, 18, 0.8);
  --rgba-primary-9: rgba(141, 239, 18, 0.9);
  --bs-primary: #8def12;
  --bs-primary-rgb: 141, 239, 18;
  --gradient: linear-gradient(135deg, #8def12 0%, #6bc406 100%);
  --gradient-sec: linear-gradient(135deg, #0b0e11 0%, #1a1d26 100%);
  --title: #0b0e11;
}

/* ---- Dark text on primary backgrounds ---- */
.btn-primary,
.btn-primary.btn-gradient,
.btn-primary.btn-shadow,
.badge.bg-primary,
.bg-primary,
.pricingtable-wrapper.style-1.active .pricingtable-inner,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #0b0e11 !important;
}

.btn-primary {
  background-color: #8def12;
  border-color: #8def12;
  color: #0b0e11;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #7bd40e !important;
  border-color: #7bd40e !important;
}

.btn-primary.btn-gradient {
  background: linear-gradient(135deg, #8def12 0%, #6bc406 100%) !important;
  border: 0;
  color: #0b0e11 !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary.btn-shadow {
  box-shadow: 0 10px 30px rgba(141, 239, 18, 0.25);
}

.btn-outline-primary {
  border-color: #8def12;
  color: #8def12;
}
.btn-outline-primary:hover {
  background: #8def12;
  border-color: #8def12;
  color: #0b0e11;
}

.text-primary {
  color: #8def12 !important;
}

/* ---- Premium Button Upgrades ---- */
.btn {
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  border-radius: 12px;
}
.btn:hover {
  transform: translateY(-2px);
}

/* ---- Premium Typography ---- */
h1, h2, h3, h4, h5, h6, .title {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head .title {
  font-size: 36px;
  line-height: 1.25;
}
.section-head .sub-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- Hero Banner Premium ---- */
.main-bnr.style-1 h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (max-width: 768px) {
  .main-bnr.style-1 h1 {
    font-size: 32px;
  }
}
.main-bnr.style-1 .text {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ---- Premium Card Styling ---- */
.icon-bx-wraper {
  border-radius: 16px !important;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.icon-bx-wraper:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.icon-bx-wraper .icon-media img {
  filter: brightness(0) !important;
  transition: filter 0.3s ease;
}
.icon-bx-wraper:hover .icon-media img {
  filter: brightness(0) invert(1) !important;
}
.icon-bx-wraper.style-3 {
  padding: 40px 30px;
  border-radius: 20px !important;
  border: 1px solid #e8ebf0;
  background: #fff;
}
.icon-bx-wraper.style-3:hover {
  border-color: #8def12;
  box-shadow: 0 20px 50px rgba(141, 239, 18, 0.1);
}
.icon-bx-wraper.style-3 .icon-media {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(141, 239, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.icon-bx-wraper.style-3 .icon-media img {
  max-width: 36px;
  filter: brightness(0) !important;
}
.icon-bx-wraper.style-3:hover .icon-media {
  background: #8def12;
}
.icon-bx-wraper.style-3:hover .icon-media img {
  filter: brightness(0) invert(1) !important;
}

/* ---- Pricing Table Premium ---- */
.pricingtable-wrapper.style-1 {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.pricingtable-wrapper.style-1:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}
.pricingtable-wrapper.style-1.active {
  border-color: #8def12;
  box-shadow: 0 30px 60px rgba(141, 239, 18, 0.12);
  transform: scale(1.03);
}
.pricingtable-wrapper.style-1.active:hover {
  transform: scale(1.03) translateY(-4px);
}
.pricingtable-bx.text-primary {
  color: #8def12 !important;
}

/* ---- Accordion (FAQ) ---- */
.accordion-button:not(.collapsed) {
  background: rgba(141, 239, 18, 0.06);
  color: #0b0e11;
  font-weight: 700;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(141, 239, 18, 0.25);
}

/* ---- Banner / Page Header ---- */
.dz-bnr-inr {
  text-align: center !important;
}
.dz-bnr-inr .container {
  display: table;
  width: 100%;
  height: 100%;
}
.dz-bnr-inr .dz-bnr-inr-entry {
  display: table-cell;
  vertical-align: middle;
  text-align: center !important;
}
.dz-bnr-inr h1,
.dz-bnr-inr .h1 {
  font-size: 48px;
  font-weight: 800;
  text-align: center !important;
}
.dz-bnr-inr .breadcrumb-row {
  text-align: center !important;
}
.dz-bnr-inr .breadcrumb-row ul {
  text-align: center;
  margin: 0 auto;
}

/* ---- Stats / Counter ---- */
.ch-stat-number {
  font-size: 48px;
  font-weight: 900;
  color: #8def12;
  line-height: 1;
  margin-bottom: 8px;
}
.ch-stat-label {
  font-size: 14px;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.02em;
}

/* ---- Screenshot Showcase ---- */
.ch-screenshot-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.ch-screenshot-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 100px rgba(0,0,0,0.15);
}
.ch-screenshot-wrapper img {
  width: 100%;
  display: block;
}

/* ---- Testimonial Card ---- */
.ch-testimonial {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 20px;
  padding: 36px 30px;
  transition: all 0.3s ease;
}
.ch-testimonial:hover {
  border-color: #8def12;
  box-shadow: 0 15px 40px rgba(141, 239, 18, 0.08);
}
.ch-testimonial .stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 14px;
}
.ch-testimonial p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}
.ch-testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ch-testimonial .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8def12, #6bc406);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #0b0e11;
  flex-shrink: 0;
}
.ch-testimonial .author-name {
  font-weight: 700;
  font-size: 14px;
  color: #0b0e11;
}
.ch-testimonial .author-role {
  font-size: 12px;
  color: #888;
}

/* ---- Brand Trust Bar ---- */
.ch-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.ch-trust-item {
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.ch-trust-item:hover {
  opacity: 1;
}
.ch-trust-item img {
  height: 28px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.ch-trust-item:hover img {
  filter: none;
}

/* ---- Feature Row (image + text) ---- */
.ch-feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.ch-feature-row.reverse {
  flex-direction: row-reverse;
}
@media (max-width: 992px) {
  .ch-feature-row,
  .ch-feature-row.reverse {
    flex-direction: column;
    gap: 30px;
  }
}
.ch-feature-img {
  flex: 1;
  min-width: 0;
}
.ch-feature-text {
  flex: 1;
  min-width: 0;
}

/* ---- Glassmorphism Panel ---- */
.ch-glass {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 24px;
  padding: 48px;
}

/* ---- Footer text on primary bg ---- */
.footer-bottom {
  background: rgba(0,0,0,0.05);
}

/* ---- Smooth scrolling ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Page transitions ---- */
.page-content {
  animation: chFadeIn 0.5s ease-out;
}
@keyframes chFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Frontend Mobile Sidebar Fix ---- */
@media only screen and (max-width: 991px) {
  .mo-left .header-nav {
    background-color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .mo-left .header-nav .nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .mo-left .header-nav .nav > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
  }
  .mo-left .header-nav .nav > li > a {
    color: #0b0e11 !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px !important;
    border-bottom: 1px solid rgba(0,0,0,.06);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .mo-left .header-nav .nav > li > a:hover {
    color: #8def12 !important;
    background: rgba(141,239,18,.04);
  }
  .mo-left .header-nav .sub-menu {
    background: #f8fafb !important;
    position: static !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    transform: none !important;
  }
  .mo-left .header-nav .sub-menu-down.open > .sub-menu {
    display: block !important;
  }
  .mo-left .header-nav .sub-menu li {
    display: block !important;
  }
  .mo-left .header-nav .sub-menu li a {
    color: #555 !important;
    font-size: 14px;
    padding: 12px 24px 12px 40px !important;
    display: block !important;
  }
  .mo-left .header-nav .sub-menu li a:hover {
    color: #8def12 !important;
    background: rgba(141,239,18,.04);
  }
  .mo-left .header-nav .header-bottom {
    padding: 20px 24px;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: auto;
  }
  .mo-left .header-nav .logo-header.mostion {
    display: block !important;
    padding: 24px !important;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .mo-left .header-nav .logo-header.mostion img {
    max-width: 160px !important;
    height: auto !important;
  }
  /* Hide the bg-shape images in mobile sidebar */
  .mo-left .header-nav .bg-shape1,
  .mo-left .header-nav .bg-shape2,
  .mo-left .header-nav .bg-shape3,
  .mo-left .header-nav .bg-shape4 {
    display: none !important;
  }
}

/* ---- Hero banner shape images: hide on mobile to prevent overlap ---- */
@media only screen and (max-width: 991px) {
  .main-bnr .bg-shape1,
  .main-bnr .bg-shape2,
  .main-bnr .bg-shape3,
  .main-bnr .bg-shape4,
  .main-bnr .image-before {
    display: none !important;
  }
  .main-bnr.style-1 {
    padding-bottom: 40px !important;
  }
  .main-bnr.style-1 h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }
  .main-bnr.style-1 .text {
    font-size: 15px !important;
  }
}

/* ---- Coin ticker: prevent overlap on header banner ---- */
.page-content > .clearfix:first-child {
  position: relative;
  z-index: 2;
}
.main-bnr.style-1 {
  position: relative;
  z-index: 1;
}
@media only screen and (max-width: 767px) {
  .main-bnr.style-1 {
    padding-bottom: 30px !important;
    min-height: auto !important;
  }
}

/* ---- App sidebar: fix duplicate/overlap on tablet ---- */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  [data-sidebar-style="full"] .deznav {
    width: 5rem !important;
    min-width: 5rem !important;
  }
  [data-sidebar-style="full"] .deznav .metismenu > li > a {
    padding: 14px 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }
  [data-sidebar-style="full"] .deznav .metismenu > li > a span,
  [data-sidebar-style="full"] .deznav .nav-text {
    display: none !important;
  }
  [data-sidebar-style="full"] .deznav .metismenu > li > a i {
    margin: 0 auto !important;
    padding: 0 !important;
  }
  [data-sidebar-style="full"] .content-body {
    margin-left: 5rem !important;
  }
  [data-sidebar-style="full"] .nav-header {
    width: 5rem !important;
  }
  [data-sidebar-style="full"] .header {
    padding-left: 5rem !important;
  }
}
