/* Theme 4 modernisation layer
 * Keeps the original Blade/business flows intact while replacing the visual system.
 */
:root {
  --app-bg: #0a0a0a;
  --app-surface: #111111;
  --app-surface-2: #161616;
  --app-surface-3: #1c1c1c;
  --app-border: #272727;
  --app-border-strong: #343434;
  --app-text: #f5f5f5;
  --app-muted: #9a9a9a;
  --app-muted-2: #737373;
  --app-success: #34d399;
  --app-warning: #fbbf24;
  --app-danger: #fb7185;
  --app-radius: 18px;
  --app-radius-sm: 12px;
  --app-shadow: 0 24px 80px rgba(0,0,0,.28);
  --app-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { background: var(--app-bg); }
body {
  font-family: var(--app-font) !important;
  background: var(--app-bg) !important;
  color: var(--app-text) !important;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: #fff; }
::selection { background: #fff; color: #000; }

/* Shared controls */
.form-control,
.form-select,
.select,
select,
textarea,
.input-group-text {
  background: #0d0d0d !important;
  color: var(--app-text) !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 12px !important;
  min-height: 46px;
  box-shadow: none !important;
}
.form-control:focus,
.form-select:focus,
.select:focus,
textarea:focus,
select:focus {
  border-color: #666 !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05) !important;
}
.form-control::placeholder, textarea::placeholder { color: #606060 !important; }
label { color: #c8c8c8; font-size: .82rem; font-weight: 600; margin-bottom: .45rem; }

.main-btn,
.cmn-btn,
.btn-primary,
.btn.main-btn {
  border: 1px solid #f5f5f5 !important;
  background: #f5f5f5 !important;
  color: #0a0a0a !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  min-height: 44px;
  padding: .7rem 1.15rem !important;
}
.main-btn:hover,
.cmn-btn:hover,
.btn-primary:hover,
.btn.main-btn:hover {
  background: #d9d9d9 !important;
  border-color: #d9d9d9 !important;
  transform: translateY(-1px);
}
.main-btn2,
.btn-secondary,
.btn-outline-light {
  border: 1px solid var(--app-border-strong) !important;
  background: #151515 !important;
  color: #efefef !important;
  border-radius: 999px !important;
  min-height: 44px;
  padding: .7rem 1.15rem !important;
}
.main-btn2:hover,
.btn-secondary:hover,
.btn-outline-light:hover { background: #202020 !important; color: #fff !important; }
.btn-sm { min-height: 38px !important; padding: .45rem .9rem !important; }

/* Public site */
.header {
  position: sticky !important;
  top: 0;
  z-index: 1030;
  background: rgba(10,10,10,.86) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header .header-bottom { padding: 14px 0 !important; }
.header .site-logo img { max-height: 32px !important; width: auto !important; }
.header .sp_main_menu { gap: .15rem; }
.header .sp_main_menu li a,
.header .sp_main_menu li .nav-link {
  color: #9d9d9d !important;
  padding: .7rem .8rem !important;
  font-size: .9rem;
  font-weight: 550;
  border-radius: 10px;
}
.header .sp_main_menu li a:hover,
.header .sp_main_menu li.active > a { color: #fff !important; background: #171717; }
.navbar-action { display: flex; align-items: center; gap: .55rem; }
.changeLang,
.header .changeLang,
.header-inner-pages .changeLang {
  background: #111 !important;
  color: #cfcfcf !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 999px !important;
  min-height: 38px;
  padding: 0 .75rem !important;
  font-size: .8rem;
}
.navbar-toggler { border: 1px solid var(--app-border) !important; border-radius: 11px !important; padding: .5rem .65rem !important; }
.menu-toggle, .menu-toggle::before, .menu-toggle::after { background: #fff !important; }

.banner-section.modern-hero {
  min-height: 680px !important;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 72% 20%, rgba(255,255,255,.055), transparent 27%), var(--app-bg) !important;
  padding: 110px 0 76px !important;
  border-bottom: 1px solid var(--app-border);
  overflow: hidden;
}
.modern-hero::before { display: none !important; }
.modern-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .7rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: #b7b7b7;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.modern-hero .hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--app-success);
  box-shadow: 0 0 0 4px rgba(52,211,153,.08);
}
.modern-hero .banner-title {
  color: #fff !important;
  font-size: clamp(3rem, 7vw, 6.6rem) !important;
  line-height: .96 !important;
  letter-spacing: -.065em;
  max-width: 990px;
  margin: 0;
}
.modern-hero .banner-description {
  max-width: 690px;
  color: #969696 !important;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
  margin-top: 1.7rem !important;
}
.modern-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.modern-hero .hero-trust {
  margin-top: 4.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
  color: #696969;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.modern-hero .hero-trust span { display: flex; align-items: center; gap: .5rem; }
.modern-hero .hero-trust i { color: #aaa; font-size: .9rem; }

.counter-section {
  background: #0d0d0d !important;
  border-bottom: 1px solid var(--app-border);
  padding: 0 !important;
}
.counter-wrapper { border: 0 !important; }
.counter-wrapper > div { border-right: 1px solid var(--app-border) !important; }
.counter-wrapper > div:last-child { border-right: 0 !important; }
.counter-item { padding: 34px 20px !important; text-align: left !important; background: transparent !important; }
.counter-item::before { display: none !important; }
.counter-item .counter-title { color: #fff !important; font-size: 1.75rem !important; letter-spacing: -.03em; }
.counter-item .caption { color: #707070 !important; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; }

section:not(.dashboard-section):not(.auth-section) { background-color: var(--app-bg); }
.sp_site_title, .section-title, .title { color: var(--app-text); }
.sp_site_header { margin-bottom: 48px !important; }
.sp_site_header .sp_site_title { font-size: clamp(2rem, 4vw, 3.6rem) !important; letter-spacing: -.045em; line-height: 1.05; }
.sp_separator_bg { background: #0d0d0d !important; }

.plan-section { background: #0d0d0d !important; }
.plan-section-el, .plan-section .plan-el, .plan-section .top-dollar, .plan-section .dollar-right { display: none !important; }
.plan-item {
  height: 100%;
  background: #111 !important;
  border: 1px solid var(--app-border) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: none !important;
  overflow: hidden;
  padding: 0 !important;
}
.plan-item:hover { border-color: #404040 !important; transform: translateY(-2px); }
.plan-name-area { padding: 1.55rem 1.55rem 1.2rem !important; border-bottom: 1px solid var(--app-border); }
.plan-item .plan-name { color: #fff !important; letter-spacing: -.025em; }
.plan-status { color: #777 !important; }
.plan-item .plan-fatures { padding: 1.35rem 1.55rem !important; }
.plan-item .plan-fatures::before, .plan-item .plan-fatures::after { display: none !important; }
.plan-list li { border-bottom: 1px solid #202020 !important; padding: .72rem 0 !important; }
.plan-list .caption { color: #737373 !important; }
.plan-list .details { color: #e9e9e9 !important; }
.plan-item .plan-rio {
  margin: 1rem 0 0 !important;
  padding: 1.1rem !important;
  background: #0b0b0b !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 14px;
}
.plan-item .plan-rio::before { display: none !important; }
.plan-item .plan-rio h6 { color: #777 !important; }
.plan-item .plan-amount { color: #fff !important; }
.plan-referral .single-referral { background: #0c0c0c !important; border: 1px solid #222; border-radius: 10px; }
.plan-action { padding: 0 1.55rem 1.55rem !important; }
.calculate-area { background: #111 !important; border-top: 1px solid var(--app-border); border-bottom: 1px solid var(--app-border); }
.calculate-area .calculator { opacity: .1; }

.about-section, .work-section, .investor-section, .testimonial-section, .transaction-section, .contact-section, .blog-section, .referral-section { background: var(--app-bg) !important; }
.benefit-item, .work-item, .investor-item .investor-content, .testimonial-item, .blog-item, .contact-item, .accordion-item {
  background: #111 !important;
  border: 1px solid var(--app-border) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: none !important;
}
.accordion-button { background: #111 !important; color: #fff !important; box-shadow: none !important; }
.accordion-body, .sp_text_secondary, .banner-description { color: var(--app-muted) !important; }

.footer-section { background: #090909 !important; border-top: 1px solid var(--app-border); }
.footer-logo-portion { padding: 64px 0 42px !important; }
.footer-menu-portion { border-top: 1px solid var(--app-border) !important; padding: 22px 0 !important; }
.footer-inline-list a, .footer-text-clr { color: #777 !important; }
.social-links li a { background: #131313 !important; border: 1px solid var(--app-border) !important; color: #aaa !important; }

/* Dashboard shell */
.dashboard-main { min-height: 100vh; background: var(--app-bg) !important; padding: 0 !important; }
.dashboard-section { min-height: 100vh; background: var(--app-bg) !important; }
#header.header-inner-pages {
  height: 72px !important;
  background: rgba(10,10,10,.9) !important;
  border-bottom: 1px solid var(--app-border) !important;
  backdrop-filter: blur(18px);
  box-shadow: none !important;
  padding: 0 22px !important;
}
#header.header-inner-pages .container-fluid { height: 100%; max-width: none; }
.header-inner-pages .logo img { max-height: 30px !important; width: auto !important; }
.header-inner-pages .user-toggle-menu {
  background: #111 !important;
  color: #e5e5e5 !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 999px !important;
  padding: 5px 10px 5px 5px !important;
  min-height: 42px;
}
.header-inner-pages .user-toggle-menu img { width: 30px !important; height: 30px !important; border-radius: 50% !important; object-fit: cover; }
.header-inner-pages .dropdown-menu { background: #111 !important; border: 1px solid var(--app-border) !important; border-radius: 14px !important; padding: .45rem !important; box-shadow: var(--app-shadow); }
.header-inner-pages .dropdown-menu .dropdown-item { color: #aaa !important; border-radius: 9px; padding: .55rem .7rem; }
.header-inner-pages .dropdown-menu .dropdown-item:hover { color: #fff !important; background: #1b1b1b !important; }

.d-sidebar {
  position: fixed !important;
  left: 0 !important;
  top: 72px !important;
  bottom: 0 !important;
  width: 260px !important;
  height: auto !important;
  padding: 22px 14px 24px !important;
  background: #0c0c0c !important;
  border-right: 1px solid var(--app-border) !important;
  overflow-y: auto;
  z-index: 1020;
}
.sidebar-section-label {
  color: #505050;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 14px 12px 8px;
}
.d-sidebar-menu { margin: 0 !important; padding: 0 !important; }
.d-sidebar-menu li { margin: 2px 0 !important; }
.d-sidebar-menu li a {
  display: flex !important;
  align-items: center;
  gap: .72rem;
  min-height: 42px;
  padding: .62rem .72rem !important;
  color: #858585 !important;
  border-radius: 11px !important;
  font-size: .87rem !important;
  font-weight: 560 !important;
  background: transparent !important;
}
.d-sidebar-menu li a:hover { color: #e9e9e9 !important; background: #151515 !important; }
.d-sidebar-menu li.active > a,
.d-sidebar-menu li a.active { color: #fff !important; background: #1b1b1b !important; }
.d-sidebar-menu li a svg { width: 17px !important; height: 17px !important; stroke: currentColor !important; }
.d-sidebar-menu .submenu { margin-left: 29px !important; border-left: 1px solid #222; padding-left: 8px !important; }
.d-sidebar-menu .submenu li a { font-size: .8rem !important; min-height: 36px; padding: .45rem .6rem !important; }
.d-plan-notice {
  margin: 24px 0 0 !important;
  padding: 15px !important;
  background: #111 !important;
  border: 1px solid var(--app-border) !important;
  border-radius: 14px !important;
}
.d-plan-notice p { color: #777 !important; font-size: .75rem !important; }
.d-plan-notice strong { display: block; color: #fff; font-size: .92rem; margin-top: .25rem; }
.d-plan-notice a { color: #ccc !important; font-size: .76rem; margin-top: .7rem; display: inline-flex; }

.dashboard-body-part {
  margin-left: 260px !important;
  padding: 104px 32px 48px !important;
  max-width: 1600px;
}
.app-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 26px; }
.app-page-kicker { color: #656565; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }
.app-page-title { color: #fff; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.04em; margin: 0; }
.app-page-subtitle { color: #777; margin: .6rem 0 0; max-width: 680px; font-size: .9rem; }
.app-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.app-action-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .58rem .85rem;
  border-radius: 999px; border: 1px solid var(--app-border); background: #111; color: #ccc; font-size: .8rem; font-weight: 650;
}
.app-action-btn:hover { background: #191919; color: #fff; border-color: #3a3a3a; }
.app-action-btn.primary { background: #f4f4f4; color: #0a0a0a; border-color: #f4f4f4; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.metric-card {
  position: relative; min-height: 145px; padding: 18px; background: #111; border: 1px solid var(--app-border); border-radius: var(--app-radius); overflow: hidden;
}
.metric-card.featured { grid-column: span 2; background: #f2f2f2; color: #090909; border-color: #f2f2f2; }
.metric-card .metric-label { color: #707070; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 18px; }
.metric-card.featured .metric-label { color: #595959; }
.metric-card .metric-value { color: #f5f5f5; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; }
.metric-card.featured .metric-value { color: #090909; font-size: clamp(2rem, 4.3vw, 3.4rem); }
.metric-card .metric-note { color: #5f5f5f; font-size: .75rem; margin-top: .6rem; }
.metric-card.featured .metric-note { color: #6a6a6a; }
.metric-card .metric-icon { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; display:grid; place-items:center; border:1px solid #272727; border-radius:10px; color:#858585; }
.metric-card.featured .metric-icon { border-color: #d4d4d4; color: #555; }

.app-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.8fr); gap: 14px; margin-top: 14px; }
.app-panel,
.site-card,
.d-card,
.account-wrapper {
  background: #111 !important;
  border: 1px solid var(--app-border) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: none !important;
  color: var(--app-text) !important;
}
.app-panel { padding: 20px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:18px; }
.panel-title { color:#eee; font-size: .98rem; font-weight:650; letter-spacing:-.015em; margin:0; }
.panel-copy { color:#676767; font-size:.78rem; margin:.3rem 0 0; }
.quick-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.quick-action {
  min-height:86px; display:flex; align-items:center; gap:12px; padding:14px; background:#0c0c0c; border:1px solid #202020; border-radius:14px; color:#bcbcbc;
}
.quick-action:hover { background:#151515; border-color:#333; color:#fff; }
.quick-action .quick-icon { width:38px; height:38px; display:grid; place-items:center; border:1px solid #272727; border-radius:11px; color:#aaa; flex:0 0 auto; }
.quick-action strong { display:block; color:inherit; font-size:.88rem; }
.quick-action span { display:block; color:#656565; font-size:.72rem; margin-top:.15rem; }
.referral-box { display:flex; gap:8px; }
.referral-box .form-control { flex:1; }
.referral-box .copy { flex:0 0 auto; }

.site-card .card-header { background: transparent !important; border-bottom: 1px solid var(--app-border) !important; padding: 18px 20px !important; }
.site-card .card-header h5, .site-card .card-header h4 { color: #eee !important; font-size: .95rem !important; }
.site-card .card-body { padding: 20px !important; }
.site-table { color: #bdbdbd !important; border-color: #222 !important; }
.site-table thead th { color: #666 !important; background: #0d0d0d !important; border-color: #222 !important; font-size: .68rem !important; text-transform: uppercase; letter-spacing: .07em; padding: .85rem !important; }
.site-table tbody td { color: #b9b9b9 !important; background: transparent !important; border-color: #202020 !important; padding: .9rem .85rem !important; }
.site-table tbody tr:hover td { background: #141414 !important; }
.badge { border-radius: 999px !important; padding: .45rem .65rem !important; font-weight: 650 !important; }
.pagination .page-link { background: #111 !important; color: #888 !important; border-color: #272727 !important; }
.pagination .active .page-link { background: #eee !important; color: #111 !important; border-color: #eee !important; }
.modal-content { background: #111 !important; color: #eee !important; border: 1px solid #2b2b2b !important; border-radius: 18px !important; }
.modal-header, .modal-footer { border-color: #262626 !important; }

/* Referral tree */
.sp-referral, .sp-referral ul { list-style: none; }
.sp-referral .single-child { background: #0d0d0d; border: 1px solid #222; padding: 8px 10px; border-radius: 12px; }
.sp-referral .single-child + .single-child { margin-top: 10px; }
.sp-referral .single-child p { display:flex; align-items:center; margin:0; }
.sp-referral .single-child p img { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.sp-referral .single-child p span { font-size:.78rem; color:#aaa; padding-left:9px; }
.sub-child-list { position:relative; padding-left:30px; margin-top:9px; }
.sub-child-list::before { content:""; position:absolute; left:14px; top:0; bottom:0; border-left:1px solid #262626; }

/* Mobile nav */
.mobile-bottom-menu-wrapper { display: none; }
.mobile-bottom-menu { background: rgba(12,12,12,.94) !important; border: 1px solid #2a2a2a !important; box-shadow: 0 12px 50px rgba(0,0,0,.45) !important; }
.mobile-bottom-menu li a { color: #696969 !important; }
.mobile-bottom-menu li a.active { color: #fff !important; }

/* Authentication */
.auth-section { min-height: 100vh !important; background: var(--app-bg) !important; }
.auth-wrapper { background: var(--app-bg) !important; }
.auth-top-part { border-bottom: 1px solid var(--app-border) !important; padding: 26px 32px !important; }
.auth-logo img { max-height: 34px !important; width: auto !important; }
.auth-top-part p, .auth-footer-part p { color: #727272 !important; }
.auth-body-part { display:flex; align-items:center; justify-content:center; padding: 54px 32px !important; }
.auth-form-wrapper { width: min(100%, 520px); background:#111; border:1px solid var(--app-border); border-radius:22px; padding: clamp(24px,5vw,42px) !important; box-shadow: var(--app-shadow); }
.auth-form-wrapper h3 { color:#fff !important; letter-spacing:-.035em; font-size:2rem; }
.auth-form-wrapper p, .auth-form-wrapper .sp_text_dark { color:#777 !important; }
.auth-footer-part { border-top:1px solid var(--app-border) !important; padding:20px 30px !important; }
.auth-thumb-area { background: #0d0d0d !important; border-left: 1px solid var(--app-border); }
.auth-thumb-area::before { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)) !important; }
.auth-thumb img { filter: grayscale(1) contrast(.9); opacity:.8; }
.form-check-input { background-color:#0d0d0d !important; border-color:#383838 !important; }
.form-check-input:checked { background-color:#f1f1f1 !important; border-color:#f1f1f1 !important; }
.color-change { color:#ddd !important; }

/* Responsive */
@media (max-width: 1199.98px) {
  .header .navbar-collapse { background:#0d0d0d; border:1px solid var(--app-border); border-radius:16px; padding:12px; margin-top:12px !important; }
  .navbar-action { padding:8px; flex-wrap:wrap; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-card.featured { grid-column: span 2; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  #header.header-inner-pages { padding: 0 14px !important; }
  .d-sidebar { transform: translateX(-105%); transition: transform .24s ease; }
  .d-sidebar.active { transform: translateX(0); }
  .dashboard-body-part { margin-left:0 !important; padding: 96px 18px 110px !important; }
  .mobile-bottom-menu-wrapper { display:block !important; position:fixed !important; left:12px !important; right:12px !important; bottom:12px !important; z-index:1050 !important; }
  .mobile-bottom-menu { border-radius:18px !important; padding:7px 5px !important; }
  .mobile-bottom-menu li a { padding:7px 4px !important; border-radius:11px; }
  .mobile-bottom-menu li a.active { background:#1a1a1a; }
  .header-inner-pages .user-toggle-menu span { display:none; }
  .auth-thumb-area { display:none !important; }
  .auth-wrapper { width:100% !important; }
}
@media (max-width: 767.98px) {
  .banner-section.modern-hero { min-height: 610px !important; padding: 84px 0 60px !important; }
  .modern-hero .banner-title { font-size: clamp(2.7rem, 14vw, 4.4rem) !important; }
  .modern-hero .hero-actions a { width:100%; justify-content:center; }
  .counter-wrapper > div { border-right:0 !important; border-bottom:1px solid var(--app-border); }
  .counter-wrapper > div:last-child { border-bottom:0; }
  .counter-item { text-align:center !important; }
  .app-page-head { align-items:flex-start; flex-direction:column; }
  .metric-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .metric-card, .metric-card.featured { grid-column:span 1; min-height:126px; padding:14px; }
  .metric-card.featured { grid-column:span 2; min-height:155px; }
  .quick-action-grid { grid-template-columns:1fr; }
  .auth-top-part { padding:18px !important; }
  .auth-top-part p span { display:none; }
  .auth-body-part { padding:28px 16px !important; }
  .auth-form-wrapper { padding:24px 20px !important; border-radius:18px; }
  .site-card { overflow:hidden; }
  .table-responsive { border:0 !important; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns:1fr; }
  .metric-card.featured { grid-column:span 1; }
  .metric-card.featured .metric-value { font-size:2.35rem; }
  .header-inner-pages .changeLang { display:none; }
}

/* Secondary public/user pages */
.page-banner {
  min-height: 250px !important;
  display: flex;
  align-items: flex-end;
  padding: 110px 0 48px !important;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.05), transparent 38%), #0a0a0a !important;
  border-bottom: 1px solid var(--app-border);
}
.page-banner::before { display:none !important; }
.page-banner .title { color:#fff !important; font-size:clamp(2rem,4vw,3.7rem) !important; letter-spacing:-.05em; }
.page-breadcrumb { gap:.35rem; }
.page-breadcrumb li, .page-breadcrumb li a { color:#676767 !important; font-size:.78rem; }
.page-breadcrumb li::after { color:#383838 !important; }

.mobile-page-header {
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:20px !important;
}
.mobile-page-header .title { color:#f1f1f1 !important; font-size:1.35rem !important; letter-spacing:-.03em; margin:0; }
.mobile-page-header .back-btn { display:inline-flex; align-items:center; gap:.4rem; color:#777 !important; font-size:.78rem; }
.mobile-page-header .back-btn:hover { color:#fff !important; }
.color-change, .sp_text_base { color:#e8e8e8 !important; }
.sp_text_dark { color:#8d8d8d !important; }
.sp_text_danger { color:var(--app-danger) !important; }
.sp_text_success { color:var(--app-success) !important; }
.text-small { font-size:.76rem !important; }

/* Legacy dashboard cards still used by some sub-pages */
.user-account-number,
.d-box-two,
.d-box-three {
  background:#111 !important;
  border:1px solid var(--app-border) !important;
  border-radius:var(--app-radius) !important;
  box-shadow:none !important;
  color:#eee !important;
}
.gr-bg-1,.gr-bg-2,.gr-bg-3,.gr-bg-4,.gr-bg-5,.gr-bg-6,.gr-bg-7 { background:#111 !important; }
.d-box-two-icon, .d-box-three .icon { background:#191919 !important; color:#aaa !important; }
.d-box-two .caption-title, .d-box-three .content p { color:#777 !important; }
.d-box-two-amount, .d-box-three .content .title { color:#eee !important; }

/* Uploads, radio/checkbox, selectric */
.selectric, .selectric-items { background:#0d0d0d !important; border-color:#2a2a2a !important; color:#ddd !important; }
.selectric .label, .selectric-items li { color:#aaa !important; }
.selectric-items li:hover, .selectric-items li.selected { background:#181818 !important; color:#fff !important; }
.site-radio label, .site-checkbox label { color:#aaa !important; }

/* Tables collapse into readable cards on smaller screens */
@media (max-width: 767.98px) {
  .site-table thead { display:none; }
  .site-table, .site-table tbody, .site-table tr, .site-table td { display:block; width:100%; }
  .site-table tbody tr { margin-bottom:10px; border:1px solid #242424; border-radius:14px; overflow:hidden; background:#0d0d0d; }
  .site-table tbody tr td { display:flex; align-items:center; justify-content:space-between; gap:1rem; text-align:right !important; border-bottom:1px solid #202020 !important; padding:.72rem .85rem !important; }
  .site-table tbody tr td:last-child { border-bottom:0 !important; }
  .site-table tbody tr td::before { content:attr(data-caption); color:#626262; font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; text-align:left; }
  .site-table .no-data-table { display:block !important; text-align:center !important; }
  .site-table .no-data-table::before { display:none; }
}
.sidebar-open-btn {
  width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--app-border); border-radius:11px;
  background:#111; color:#ddd; font-size:1.15rem; padding:0;
}
.sidebar-open-btn:hover, .sidebar-open-btn.active { background:#1a1a1a; color:#fff; }

/* Visual QA fixes: neutralise legacy Theme 4 shape/list/mobile rules. */
a,
a:hover,
a:focus {
  text-decoration: none !important;
}

.main-btn,
.main-btn2,
.cmn-btn,
.btn-primary,
.btn-secondary,
.btn-outline-light,
.btn.main-btn {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.d-sidebar-menu,
.mobile-bottom-menu,
.plan-list,
.plan-referral {
  list-style: none !important;
}

@media (max-width: 991.98px) {
  /* The purchased theme used to remove the dashboard header/sidebar entirely on mobile. */
  #header.header-inner-pages {
    display: block !important;
  }
  .d-sidebar {
    display: block !important;
  }

  .mobile-bottom-menu-wrapper {
    width: auto !important;
  }
  .mobile-bottom-menu {
    margin: 0 !important;
    list-style: none !important;
  }
  .mobile-bottom-menu li {
    width: 20% !important;
    list-style: none !important;
  }
  .mobile-bottom-menu li a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    text-decoration: none !important;
  }
  .mobile-bottom-menu li a i,
  .mobile-bottom-menu li a.active i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
    font-size: 1rem !important;
    line-height: 1 !important;
  }
  .mobile-bottom-menu li a span {
    display: block !important;
    font-size: .62rem !important;
    line-height: 1.1;
    font-weight: 600;
  }
}

/* Legacy buttons often wrap their label in a span. Keep that wrapper visually neutral. */
.main-btn > span,
.main-btn2 > span,
.cmn-btn > span,
.btn.main-btn > span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-align: inherit !important;
}

@media (max-width: 991.98px) {
  body.sidebar-menu-open .d-sidebar {
    z-index: 1060 !important;
    box-shadow: 24px 0 70px rgba(0,0,0,.45);
  }
  body.sidebar-menu-open .mobile-bottom-menu-wrapper {
    opacity: 0;
    pointer-events: none;
  }
}
