/* ============================================================
   M'CUBE PAY REINVENTION — COMPREHENSIVE FIXES
   Fixes: hero text, icons, modals, about/contact pages, dark mode
   Must load AFTER mcubepay-reinvention.css
   ============================================================ */

/* ── GLOBAL OVERFLOW FIX ──────────────────────────────────── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* ================================================================
   REINVENTED NAVBAR — M'Cube Pay
   ================================================================ */

/* ── TOPBAR ─────────────────────────────────────────────────── */
.mcube-topbar {
  background: #070E1A;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1001;
}
.mcube-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mcube-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mcube-topbar-left span { display: inline-flex; align-items: center; gap: 5px; }
.mcube-topbar-left i { color: #00C9A7; font-size: 11px; }
.mcube-topbar-sep { color: rgba(255,255,255,0.2); margin: 0 4px; }
.mcube-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── LANGUAGE SELECT (shared) ───────────────────────────────── */
.mcube-lang-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mcube-lang-select i { color: rgba(255,255,255,0.6); font-size: 13px; }
.mcube-lang-select select {
  background: transparent !important;
  border: none !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 12px !important;
  cursor: pointer;
  padding: 2px 4px !important;
  appearance: auto;
  -webkit-appearance: menulist;
}
.mcube-lang-select select option {
  background: #1E293B; color: #E6EDF3;
}
[data-theme="light"] .mcube-lang-select select { color: rgba(0,0,0,0.7) !important; }
[data-theme="light"] .mcube-lang-select select option { background: #fff; color: #1A1A2E; }
[data-theme="light"] .mcube-lang-select i { color: rgba(0,0,0,0.5); }

/* ── THEME TOGGLE ───────────────────────────────────────────── */
.mcube-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 2px;
}
.mcube-theme-toggle button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.mcube-theme-toggle button:hover,
.mcube-theme-toggle button.active {
  color: #F5B800;
  background: rgba(245,184,0,0.1);
}

/* ── MAIN NAVBAR ────────────────────────────────────────────── */
.mcube-nav-main {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s, padding 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mcube-nav-main.mcube-nav-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 0;
}
[data-theme="light"] .mcube-nav-main {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="light"] .mcube-nav-main.mcube-nav-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.mcube-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.mcube-nav-logo { flex-shrink: 0; }
.mcube-nav-logo img { height: 36px; width: auto; }

/* Nav Links */
.mcube-nav-links { flex: 1; justify-content: center; }
.mcube-nav-links .navigation {
  display: flex !important;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mcube-nav-links .navigation > li > a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none !important;
  white-space: nowrap;
}
.mcube-nav-links .navigation > li > a:hover,
.mcube-nav-links .navigation > li.current > a {
  color: #FFFFFF !important;
  background: rgba(255,255,255,0.08);
}
[data-theme="light"] .mcube-nav-links .navigation > li > a {
  color: #374151 !important;
}
[data-theme="light"] .mcube-nav-links .navigation > li > a:hover,
[data-theme="light"] .mcube-nav-links .navigation > li.current > a {
  color: #0A1628 !important;
  background: rgba(0,0,0,0.04);
}

/* Dropdown sub-menus */
.mcube-nav-links .navigation > li > ul {
  background: #1E293B !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  padding: 8px 0;
  min-width: 200px;
}
.mcube-nav-links .navigation > li > ul li a {
  color: rgba(255,255,255,0.8) !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
}
.mcube-nav-links .navigation > li > ul li a:hover {
  background: rgba(0,201,167,0.1) !important;
  color: #00C9A7 !important;
}
[data-theme="light"] .mcube-nav-links .navigation > li > ul {
  background: #fff !important;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
[data-theme="light"] .mcube-nav-links .navigation > li > ul li a {
  color: #374151 !important;
}
[data-theme="light"] .mcube-nav-links .navigation > li > ul li a:hover {
  color: #00C9A7 !important;
}

/* ── NAV BUTTONS ────────────────────────────────────────────── */
.mcube-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mcube-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.mcube-nav-btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: #FFFFFF !important;
}
.mcube-nav-btn-outline:hover {
  border-color: #00C9A7;
  color: #00C9A7 !important;
  background: rgba(0,201,167,0.05);
}
[data-theme="light"] .mcube-nav-btn-outline {
  border-color: #D1D5DB;
  color: #374151 !important;
}
[data-theme="light"] .mcube-nav-btn-outline:hover {
  border-color: #00C9A7;
  color: #00C9A7 !important;
}
.mcube-nav-btn-primary {
  background: linear-gradient(135deg, #F5B800, #E0A800);
  color: #0A1628 !important;
  border-color: transparent;
  font-weight: 700;
}
.mcube-nav-btn-primary:hover {
  background: linear-gradient(135deg, #E0A800, #C89600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,184,0,0.3);
  color: #0A1628 !important;
}

/* ── PROFILE MENU ───────────────────────────────────────────── */
.mcube-profile-menu { position: relative; }
.mcube-profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.mcube-profile-trigger:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
[data-theme="light"] .mcube-profile-trigger {
  background: #F3F4F6;
  border-color: #E5E7EB;
  color: #374151;
}
[data-theme="light"] .mcube-profile-trigger:hover {
  background: #E5E7EB;
}
.mcube-profile-trigger i { font-size: 10px; opacity: 0.6; }
.mcube-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00C9A7;
}
.mcube-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1010;
}
.mcube-profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
[data-theme="light"] .mcube-profile-dropdown {
  background: #FFFFFF;
  border-color: #E5E7EB;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.mcube-profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.mcube-profile-dropdown-header strong {
  display: block;
  color: #FFFFFF;
  font-size: 14px;
}
.mcube-profile-dropdown-header small {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
[data-theme="light"] .mcube-profile-dropdown-header strong { color: #0A1628; }
[data-theme="light"] .mcube-profile-dropdown-header small { color: #6B7280; }
.mcube-profile-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
}
[data-theme="light"] .mcube-profile-dropdown-divider { background: #F3F4F6; }
.mcube-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.15s;
}
.mcube-profile-dropdown a:hover {
  background: rgba(0,201,167,0.08);
  color: #00C9A7 !important;
}
.mcube-profile-dropdown a i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.mcube-profile-dropdown a:hover i { color: #00C9A7; }
[data-theme="light"] .mcube-profile-dropdown a { color: #374151 !important; }
[data-theme="light"] .mcube-profile-dropdown a i { color: #9CA3AF; }
[data-theme="light"] .mcube-profile-dropdown a:hover { color: #00C9A7 !important; }
[data-theme="light"] .mcube-profile-dropdown a:hover i { color: #00C9A7; }
.mcube-logout-link:hover { color: #EF4444 !important; }
.mcube-logout-link:hover i { color: #EF4444 !important; }

/* ── HAMBURGER ──────────────────────────────────────────────── */
.mcube-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mcube-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s;
}
[data-theme="light"] .mcube-hamburger span { background: #0A1628; }

/* ── MOBILE OVERLAY & DRAWER ────────────────────────────────── */
.mcube-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.mcube-mobile-overlay.open { opacity: 1; visibility: visible; }
.mcube-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #0A1628;
  z-index: 1200;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mcube-mobile-drawer.open { right: 0; }
[data-theme="light"] .mcube-mobile-drawer { background: #FFFFFF; }
.mcube-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .mcube-drawer-header { border-color: #F3F4F6; }
.mcube-drawer-logo { height: 30px; width: auto; }
.mcube-drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
[data-theme="light"] .mcube-drawer-close { color: #6B7280; }
.mcube-drawer-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile nav links inside drawer */
.mcube-drawer-nav .menu-outer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mcube-drawer-nav .menu-outer ul li a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.85) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mcube-drawer-nav .menu-outer ul li a:hover { color: #00C9A7 !important; }
[data-theme="light"] .mcube-drawer-nav .menu-outer ul li a {
  color: #374151 !important;
  border-color: #F3F4F6;
}
[data-theme="light"] .mcube-drawer-nav .menu-outer ul li a:hover { color: #00C9A7 !important; }

/* Drawer utils */
.mcube-drawer-utils {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .mcube-drawer-utils { border-color: #F3F4F6; }

/* Drawer auth buttons */
.mcube-drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Drawer trust strip */
.mcube-drawer-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.mcube-drawer-trust span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mcube-drawer-trust i { color: #00C9A7; font-size: 12px; }
[data-theme="light"] .mcube-drawer-trust { border-color: #F3F4F6; }
[data-theme="light"] .mcube-drawer-trust span { color: #9CA3AF; }

/* ── HIDE OLD HEADER ELEMENTS ───────────────────────────────── */
.mcube-navbar .header-lower,
.mcube-navbar .sticky-header,
.mcube-navbar .mobile-menu,
.mcube-navbar .header-btn-area:not(.mcube-nav-actions),
.mcube-navbar .header-navigation {
  display: none !important;
}

/* Ensure main-header doesn't conflict */
.main-header.mcube-navbar {
  position: relative !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Fix body padding for sticky nav */
body { padding-top: 0 !important; }

/* ── HERO TEXT READABILITY (Critical override) ─────────────── */
.mcube-hero h1,
.mcube-hero .mcube-hero-content h1,
section.mcube-hero h1 {
  color: #FFFFFF !important;
  font-size: clamp(36px, 6vw, 64px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  opacity: 1 !important;
  margin-bottom: 16px !important;
}

.mcube-hero p,
.mcube-hero .mcube-hero-content p,
section.mcube-hero p {
  color: rgba(255,255,255,0.92) !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.mcube-trust-strip,
.mcube-trust-item,
.mcube-trust-item span {
  color: rgba(255,255,255,0.92) !important;
}

.mcube-trust-item i {
  color: #00C9A7 !important;
  font-size: 18px !important;
}

/* ── CALCULATOR & MODAL TEXT READABILITY ───────────────────── */
.mcube-calculator,
.mcube-calculator * {
  color: #1A1A2E;
}

.mcube-calculator {
  background: #fff !important;
  color: #1A1A2E !important;
}

.mcube-calculator h3,
.mcube-calculator-header h3 {
  color: #0A1628 !important;
}

.mcube-calculator label {
  color: #6B7280 !important;
}

.mcube-calculator input {
  color: #1A1A2E !important;
  background: #fff !important;
}

.mcube-currency-code {
  color: #1A1A2E !important;
}

.mcube-fee-label {
  color: #6B7280 !important;
}

.mcube-fee-value {
  color: #1A1A2E !important;
}

.mcube-fee-row.total .mcube-fee-value {
  color: #00C9A7 !important;
}

/* Currency Modal Fix */
.modal .modal-content,
.mcube-currency-modal,
.mcube-modal,
div[class*="modal"] .modal-content {
  background: #fff !important;
  color: #1A1A2E !important;
}

.modal .modal-content h5,
.modal .modal-content h4,
.modal .modal-content h3,
.modal .modal-content label,
.modal .modal-content p,
.modal .modal-content span,
.modal .modal-content li,
.modal .modal-content .modal-title {
  color: #1A1A2E !important;
}

.modal .modal-content input,
.modal .modal-content select,
.modal .modal-content textarea {
  color: #1A1A2E !important;
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
}

.modal .modal-content input::placeholder {
  color: #9CA3AF !important;
}

.modal .modal-content .btn-close,
.modal .modal-content .close {
  color: #1A1A2E !important;
  opacity: 0.7;
}

/* Dark mode modal override */
[data-theme="dark"] .modal .modal-content,
[data-theme="dark"] .mcube-currency-modal {
  background: #1E293B !important;
  color: #E6EDF3 !important;
}

[data-theme="dark"] .modal .modal-content h5,
[data-theme="dark"] .modal .modal-content h4,
[data-theme="dark"] .modal .modal-content h3,
[data-theme="dark"] .modal .modal-content label,
[data-theme="dark"] .modal .modal-content p,
[data-theme="dark"] .modal .modal-content span {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .modal .modal-content input {
  color: #E6EDF3 !important;
  background: #0F172A !important;
  border-color: #374151 !important;
}

/* ── DELIVERY METHOD CARDS ────────────────────────────────── */
.mcube-delivery-option {
  color: #1A1A2E !important;
}

.mcube-delivery-option i {
  color: #0A1628 !important;
}

.mcube-delivery-option.active {
  border-color: #00C9A7 !important;
  background: rgba(0,201,167,0.05) !important;
}

.mcube-delivery-option.active i {
  color: #00C9A7 !important;
}

.mcube-delivery-option span,
.mcube-delivery-option small {
  color: #1A1A2E !important;
}

/* ── BUTTON HOVER FIXES (Text readability on hover) ─────────── */
.btn-1,
.btn-2,
.mcube-btn,
.mcube-btn-primary,
button[type="submit"],
.sign-in-btn button,
.sign-in-btn .btn-1 {
  transition: all 0.3s ease !important;
}

.btn-1:hover,
.btn-1:focus {
  background: #0D8E6C !important;
  border-color: #0D8E6C !important;
  color: #FFFFFF !important;
}

.btn-2:hover,
.btn-2:focus {
  background: #F5B800 !important;
  border-color: #F5B800 !important;
  color: #0A1628 !important;
}

.mcube-btn-primary:hover,
.mcube-btn-primary:focus {
  background: #E0A800 !important;
  color: #0A1628 !important;
}

.mcube-card-expand:hover,
.mcube-card-expand:focus {
  background: var(--mcube-navy, #0A1628) !important;
  color: #FFFFFF !important;
}

.mcube-card-expand:hover span,
.mcube-card-expand:hover i {
  color: #FFFFFF !important;
}

/* Ensure all interactive elements have visible text on hover */
a.btn-1:hover,
a.btn-2:hover,
button.btn-1:hover,
button.btn-2:hover {
  opacity: 1 !important;
}

/* ── LANGUAGE DROPDOWN FIX ──────────────────────────────────── */
.language-container {
  position: relative;
  gap: 6px;
}

.language-container .language-icon i {
  color: rgba(255,255,255,0.8) !important;
  font-size: 16px;
}

.language-container select,
.language-container .select2-value,
select.language_select_field {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #FFFFFF !important;
  padding: 4px 24px 4px 8px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  min-width: 60px;
}

.language-container select option {
  background: #1E293B !important;
  color: #E6EDF3 !important;
  padding: 8px !important;
}

[data-theme="light"] .language-container select option {
  background: #FFFFFF !important;
  color: #1A1A2E !important;
}

[data-theme="light"] .language-container .language-icon i {
  color: #0A1628 !important;
}

[data-theme="light"] .language-container select {
  border-color: rgba(10,22,40,0.2) !important;
  color: #0A1628 !important;
}

/* Hide select2 custom dropdown that's broken, use native select */
.language-container .select2-container,
.language-container .select2 {
  display: none !important;
}

.language-container select.language_select_field {
  display: inline-block !important;
}

/* ── LOGIN & REGISTER PAGE REINVENTION ──────────────────────── */
.sign-in {
  min-height: 100vh;
  position: relative;
}

.sign-in .bg-layer {
  background: linear-gradient(135deg, #0A1628 0%, #0D2847 50%, #0A1628 100%) !important;
  background-size: cover !important;
  opacity: 1 !important;
}

.sign-in-container,
.sign-in .sign-in-container-inner {
  position: relative;
  z-index: 2;
}

.sign-in-form-container,
.sign-in-container-inner {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 40px 32px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

[data-theme="dark"] .sign-in-form-container,
[data-theme="dark"] .sign-in-container-inner {
  background: #1E293B !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
}

.sign-in-title h3 {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0A1628 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

[data-theme="dark"] .sign-in-title h3 {
  color: #FFFFFF !important;
}

.sign-in-title p {
  color: #6B7280 !important;
  font-size: 15px;
}

[data-theme="dark"] .sign-in-title p {
  color: rgba(255,255,255,0.7) !important;
}

.sign-in-form .form-group label {
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

[data-theme="dark"] .sign-in-form .form-group label {
  color: #D1D5DB !important;
}

.sign-in-form .form-control {
  border: 1.5px solid #E5E7EB !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  color: #1A1A2E !important;
  background: #FFFFFF !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.sign-in-form .form-control:focus {
  border-color: #00C9A7 !important;
  box-shadow: 0 0 0 3px rgba(0,201,167,0.15) !important;
  outline: none !important;
}

[data-theme="dark"] .sign-in-form .form-control {
  background: #0F172A !important;
  border-color: #374151 !important;
  color: #E6EDF3 !important;
}

[data-theme="dark"] .sign-in-form .form-control:focus {
  border-color: #00C9A7 !important;
}

.sign-in-form .form-control::placeholder {
  color: #9CA3AF !important;
}

/* Radio toggle Customer/Agent */
.radio-inputs {
  background: #F3F4F6 !important;
  border-radius: 10px !important;
  padding: 4px !important;
  margin-bottom: 20px !important;
}

[data-theme="dark"] .radio-inputs {
  background: #0F172A !important;
}

.radio-inputs .radio .name {
  color: #6B7280 !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  display: block;
  text-align: center;
  transition: all 0.2s ease;
}

.radio-inputs .radio input:checked + .name {
  background: #00C9A7 !important;
  color: #FFFFFF !important;
}

/* Sign in button */
.sign-in-btn .btn-1,
.sign-in-btn button[type="submit"] {
  background: linear-gradient(135deg, #F5B800, #E0A800) !important;
  color: #0A1628 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  width: 100%;
  transition: all 0.3s ease !important;
}

.sign-in-btn .btn-1:hover,
.sign-in-btn button[type="submit"]:hover {
  background: linear-gradient(135deg, #E0A800, #C89600) !important;
  color: #0A1628 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,184,0,0.3) !important;
}

/* Remember me & forget password */
.rember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 !important;
}

.rember label {
  color: #6B7280 !important;
  font-size: 14px;
}

.rember-password a {
  color: #00C9A7 !important;
  font-weight: 600;
  font-size: 14px;
}

.rember-password a:hover {
  color: #0D8E6C !important;
}

/* Social login */
.media-login-border h5 {
  color: #9CA3AF !important;
  font-size: 14px;
}

.media-login ul li a {
  border: 1.5px solid #E5E7EB !important;
  border-radius: 10px !important;
  color: #374151 !important;
  transition: all 0.2s ease !important;
}

.media-login ul li a:hover {
  border-color: #00C9A7 !important;
  background: rgba(0,201,167,0.05) !important;
}

[data-theme="dark"] .media-login ul li a {
  border-color: #374151 !important;
  color: #D1D5DB !important;
}

.signup-account p {
  color: #6B7280 !important;
}

.signup-account a {
  color: #00C9A7 !important;
  font-weight: 600;
}

/* Password toggle icon */
.password-box .password-icon,
.password-box-two .password-icon {
  color: #9CA3AF !important;
  cursor: pointer;
}

/* ── AUTH HERO SECTION (Login/Register left panel) ──────────── */
.mcube-auth-section {
  min-height: 100vh;
  padding-top: 80px !important;
}

.mcube-auth-hero {
  padding: 40px 0;
}

.mcube-auth-hero-content h1 {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1.2 !important;
  margin-bottom: 16px;
}

.mcube-auth-hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
}

.mcube-auth-trust {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mcube-auth-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}

.mcube-auth-trust-item i {
  color: #00C9A7;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

@media (max-width: 991px) {
  .mcube-auth-hero {
    padding: 20px 0;
    text-align: center;
  }

  .mcube-auth-hero-content h1 {
    font-size: 28px !important;
  }

  .mcube-auth-trust {
    align-items: center;
    margin-bottom: 24px;
  }

  .mcube-auth-hero-register {
    display: none;
  }
}

/* ── FLAG ICON IN CALCULATOR ────────────────────────────────── */
.flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.mcube-currency-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 4px 8px;
}

.mcube-currency-btn .mcube-currency-code {
  font-weight: 600;
  font-size: 14px;
}

/* ── PAGE HEADERS / BREADCRUMBS (About, Contact, etc.) ────── */
.inner-banner,
.breadcrumb-section,
.page-header,
section.inner-banner,
.breadcrumb-area {
  background: linear-gradient(135deg, #0A1628 0%, #0D1F35 100%) !important;
  padding: 100px 0 40px !important;
}

.inner-banner h2,
.inner-banner h1,
.breadcrumb-section h1,
.breadcrumb-section h2,
.page-header h1,
.page-header h2,
.breadcrumb-area h1 {
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 36px !important;
}

.inner-banner .breadcrumb a,
.inner-banner .breadcrumb li,
.inner-banner .breadcrumb span,
.inner-banner nav,
.breadcrumb-section .breadcrumb a,
.breadcrumb-section .breadcrumb li,
.breadcrumb-section nav a {
  color: rgba(255,255,255,0.8) !important;
}

.inner-banner .breadcrumb a:hover,
.breadcrumb-section .breadcrumb a:hover {
  color: #F5B800 !important;
}

/* ── ABOUT PAGE REINVENTION ───────────────────────────────── */
.mcube-about-section {
  padding: 80px 0;
}

.mcube-about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mcube-about-hero {
  text-align: center;
  margin-bottom: 60px;
}

.mcube-about-hero h1 {
  font-size: 42px !important;
  color: #FFFFFF !important;
  margin-bottom: 16px;
  font-weight: 800;
}

[data-theme="light"] .mcube-about-hero h1 {
  color: #0A1628 !important;
}

.mcube-about-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

[data-theme="light"] .mcube-about-hero p {
  color: #6B7280;
}

.mcube-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .mcube-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mcube-about-card {
  background: #1E293B;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 1px solid #374151;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .mcube-about-card {
  background: #fff;
  border-color: #E5E7EB;
  box-shadow: 0 4px 16px rgba(10,22,40,0.08);
}

.mcube-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.mcube-about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.mcube-about-card-icon.navy { background: rgba(255,255,255,0.08); color: #90CAF9; }
.mcube-about-card-icon.teal { background: rgba(0,201,167,0.15); color: #00C9A7; }
.mcube-about-card-icon.gold { background: rgba(245,184,0,0.15); color: #F5B800; }

[data-theme="light"] .mcube-about-card-icon.navy { background: rgba(10,22,40,0.08); color: #0A1628; }

.mcube-about-card h3 {
  font-size: 20px !important;
  color: #FFFFFF !important;
  margin-bottom: 12px;
  font-weight: 700;
}

[data-theme="light"] .mcube-about-card h3 {
  color: #0A1628 !important;
}

.mcube-about-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

[data-theme="light"] .mcube-about-card p {
  color: #6B7280;
}

.mcube-fca-banner {
  background: linear-gradient(135deg, #0A1628, #0D1F35);
  border-radius: 16px;
  padding: 48px;
  color: #fff;
  text-align: center;
  margin: 40px 0;
}

.mcube-fca-banner h3 {
  color: #F5B800 !important;
  font-size: 24px !important;
  margin-bottom: 12px;
}

.mcube-fca-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.mcube-fca-banner .mcube-fca-number {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: #00C9A7;
  margin-top: 16px;
  display: block;
}

.mcube-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mcube-value-item {
  text-align: center;
  padding: 24px;
}

.mcube-value-item .mcube-value-number {
  font-family: 'DM Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #F5B800;
  display: block;
  margin-bottom: 8px;
}

.mcube-value-item .mcube-value-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

[data-theme="light"] .mcube-value-item .mcube-value-label {
  color: #6B7280;
}

/* ── CONTACT PAGE REINVENTION ─────────────────────────────── */
.mcube-contact-section {
  padding: 80px 0;
}

.mcube-contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .mcube-contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

.mcube-contact-form-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(10,22,40,0.08);
  border: 1px solid #E5E7EB;
  color: #1A1A2E;
}

.mcube-contact-form-wrapper h2 {
  font-size: 28px !important;
  color: #0A1628 !important;
  margin-bottom: 8px;
}

.mcube-contact-form-wrapper p {
  color: #6B7280;
  margin-bottom: 24px;
}

.mcube-contact-form .form-group,
.mcube-contact-form .mcube-form-group {
  margin-bottom: 20px;
}

.mcube-contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E !important;
  margin-bottom: 6px;
}

.mcube-contact-form input,
.mcube-contact-form textarea,
.mcube-contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 15px;
  color: #1A1A2E !important;
  background: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.3s ease;
}

.mcube-contact-form input:focus,
.mcube-contact-form textarea:focus {
  border-color: #0A1628;
  outline: none;
}

.mcube-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.mcube-contact-form button[type="submit"] {
  background: #F5B800;
  color: #0A1628;
  padding: 14px 32px;
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245,184,0,0.35);
}

.mcube-contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,184,0,0.45);
}

.mcube-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mcube-contact-info-card {
  background: #1E293B;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 1px solid #374151;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

[data-theme="light"] .mcube-contact-info-card {
  background: #fff;
  border-color: #E5E7EB;
  box-shadow: 0 4px 16px rgba(10,22,40,0.08);
}

.mcube-contact-info-card .mcube-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mcube-contact-info-card .mcube-info-icon.teal { background: rgba(0,201,167,0.1); color: #00C9A7; }
.mcube-contact-info-card .mcube-info-icon.navy { background: rgba(10,22,40,0.08); color: #0A1628; }
.mcube-contact-info-card .mcube-info-icon.gold { background: rgba(245,184,0,0.1); color: #F5B800; }

.mcube-contact-info-card h4 {
  font-size: 16px !important;
  color: #FFFFFF !important;
  margin-bottom: 4px;
  font-weight: 700;
}

[data-theme="light"] .mcube-contact-info-card h4 {
  color: #0A1628 !important;
}

.mcube-contact-info-card p,
.mcube-contact-info-card a {
  font-size: 15px;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  line-height: 1.6;
}

[data-theme="light"] .mcube-contact-info-card p,
[data-theme="light"] .mcube-contact-info-card a {
  color: #6B7280 !important;
}

.mcube-contact-info-card a:hover {
  color: #00C9A7 !important;
}

.mcube-contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10,22,40,0.08);
}

/* ── EXISTING THEME PAGE OVERRIDES ────────────────────────── */
/* Override existing theme About/Contact/Blog pages */
.section-header h2,
.section-header .title {
  color: #0A1628 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.section-header p,
.section-header .subtitle {
  color: #6B7280 !important;
}

/* Existing contact form styling */
.contact-section label,
.contact-section .form-label,
.contact-area label {
  color: #1A1A2E !important;
  font-weight: 600;
}

.contact-section input,
.contact-section textarea,
.contact-section select,
.contact-area input,
.contact-area textarea {
  color: #1A1A2E !important;
  background: #fff !important;
  border: 2px solid #E5E7EB !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.contact-section input:focus,
.contact-section textarea:focus,
.contact-area input:focus,
.contact-area textarea:focus {
  border-color: #0A1628 !important;
  box-shadow: none !important;
}

/* Style existing about page content */
.about-section h2,
.about-area h2,
.about-section .title,
.products-section h2 {
  color: #0A1628 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
}

.about-section p,
.about-area p,
.products-section p {
  color: #4B5563 !important;
  line-height: 1.7 !important;
}

/* How it works / Process sections */
.process-section,
.customer-section,
.countries-section,
.products-section {
  padding: 60px 0;
}

.process-section h2,
.customer-section h2,
.countries-section h2 {
  color: #0A1628 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── DARK MODE — ALL PUBLIC PAGES ─────────────────────────── */
[data-theme="dark"] .mcube-about-card,
[data-theme="dark"] .mcube-contact-form-wrapper,
[data-theme="dark"] .mcube-contact-info-card {
  background: #1E293B !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .mcube-about-card h3,
[data-theme="dark"] .mcube-contact-form-wrapper h2,
[data-theme="dark"] .mcube-contact-info-card h4 {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .mcube-about-card p,
[data-theme="dark"] .mcube-contact-form-wrapper p,
[data-theme="dark"] .mcube-contact-info-card p {
  color: #9BAAB8 !important;
}

[data-theme="dark"] .mcube-about-hero h1 {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .mcube-contact-form input,
[data-theme="dark"] .mcube-contact-form textarea {
  background: #0F172A !important;
  color: #E6EDF3 !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .mcube-contact-form label {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .mcube-fca-banner {
  background: linear-gradient(135deg, #0F172A, #1E293B) !important;
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .about-section h2,
[data-theme="dark"] .products-section h2,
[data-theme="dark"] .contact-section label,
[data-theme="dark"] .contact-area label {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .contact-section input,
[data-theme="dark"] .contact-section textarea,
[data-theme="dark"] .contact-area input,
[data-theme="dark"] .contact-area textarea {
  background: #0F172A !important;
  color: #E6EDF3 !important;
  border-color: #374151 !important;
}

/* ── HOW IT WORKS SECTION TEXT ────────────────────────────── */
.mcube-how-it-works h2,
section.mcube-how-it-works h2 {
  color: #0A1628 !important;
}

.mcube-chapter-number {
  color: #F5B800 !important;
}

.mcube-chapter h3 {
  color: #0A1628 !important;
}

.mcube-chapter p {
  color: #4B5563 !important;
}

[data-theme="dark"] .mcube-how-it-works h2,
[data-theme="dark"] .mcube-chapter h3 {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .mcube-chapter p {
  color: #9BAAB8 !important;
}

/* ── WHY M'CUBE SECTION TEXT ─────────────────────────────── */
.mcube-why-section h2 {
  color: #0A1628 !important;
}

.mcube-editorial-card h3 {
  color: #0A1628 !important;
}

.mcube-editorial-card p {
  color: #4B5563 !important;
}

[data-theme="dark"] .mcube-why-section h2,
[data-theme="dark"] .mcube-editorial-card h3 {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .mcube-editorial-card p {
  color: #9BAAB8 !important;
}

[data-theme="dark"] .mcube-editorial-card {
  background: #1E293B !important;
  border-color: #374151 !important;
}

/* ── SOCIAL PROOF SECTION TEXT ────────────────────────────── */
.mcube-social-proof h2 {
  color: #0A1628 !important;
}

.mcube-testimonial-bubble p {
  color: #1A1A2E !important;
}

.mcube-testimonial-author strong {
  color: #0A1628 !important;
}

.mcube-testimonial-author span {
  color: #6B7280 !important;
}

[data-theme="dark"] .mcube-social-proof h2 {
  color: #E6EDF3 !important;
}

[data-theme="dark"] .mcube-testimonial-bubble {
  background: #1E293B !important;
}

[data-theme="dark"] .mcube-testimonial-bubble p {
  color: #E6EDF3 !important;
}

/* ── FOOTER REINVENTION ───────────────────────────────────── */
.mcube-footer {
  background: #0A1628 !important;
  color: rgba(255,255,255,0.8) !important;
}

.mcube-footer h4,
.mcube-footer-heading {
  color: #fff !important;
}

.mcube-footer a,
.mcube-footer-links a {
  color: rgba(255,255,255,0.7) !important;
}

.mcube-footer a:hover,
.mcube-footer-links a:hover {
  color: #F5B800 !important;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-count-up { animation: countUp 0.6s cubic-bezier(0.4,0,0.2,1); }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ── MOBILE RESPONSIVE FIXES ──────────────────────────────── */
.mcube-hero,
.mcube-about-section,
.mcube-contact-section {
  overflow-x: hidden !important;
  max-width: 100vw;
}

@media (max-width: 767px) {
  .mcube-hero {
    padding: 100px 20px 40px !important;
    overflow: hidden !important;
  }

  .mcube-hero h1,
  .mcube-hero .mcube-hero-content h1,
  section.mcube-hero h1 {
    font-size: 28px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .mcube-hero p,
  .mcube-hero .mcube-hero-content p {
    font-size: 15px !important;
    padding-right: 0;
    max-width: 100%;
  }

  .mcube-hero-container {
    padding: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .mcube-hero-content,
  .mcube-calculator {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    word-break: break-word;
  }

  .mcube-trust-strip {
    gap: 12px 20px !important;
    flex-wrap: wrap;
  }

  .mcube-trust-item {
    font-size: 12px !important;
  }

  .mcube-trust-item span {
    font-size: 12px !important;
  }

  .mcube-calculator {
    margin: 0 -4px;
    padding: 16px !important;
  }

  .mcube-about-hero h1 {
    font-size: 28px !important;
  }

  .mcube-about-hero p {
    font-size: 15px;
    padding: 0 8px;
  }

  .mcube-about-grid {
    gap: 20px;
  }

  .mcube-about-card {
    padding: 24px;
  }

  .mcube-fca-banner {
    padding: 28px 20px;
  }

  .mcube-fca-banner h3 {
    font-size: 20px !important;
  }

  .mcube-fca-banner p {
    font-size: 14px;
  }

  .mcube-values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .mcube-value-item .mcube-value-number {
    font-size: 28px;
  }

  .mcube-contact-container {
    padding: 0 16px;
  }

  .mcube-contact-form-wrapper {
    padding: 24px;
  }

  .mcube-contact-form-wrapper h2 {
    font-size: 22px !important;
  }

  .mcube-contact-info-card {
    padding: 20px;
  }

  .inner-banner h2,
  .inner-banner h1,
  .breadcrumb-section h1,
  .page-header h1 {
    font-size: 28px !important;
  }

  .mcube-how-it-works,
  .mcube-why-section,
  .mcube-social-proof {
    padding: 40px 16px !important;
  }
}

@media (max-width: 480px) {
  .mcube-hero h1,
  .mcube-hero .mcube-hero-content h1 {
    font-size: 28px !important;
  }

  .mcube-hero p,
  .mcube-hero .mcube-hero-content p {
    font-size: 15px !important;
  }

  .mcube-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mcube-value-item .mcube-value-number {
    font-size: 24px;
  }
}

/* ── SKELETON LOADING ─────────────────────────────────────── */
.mcube-skeleton {
  background: linear-gradient(90deg, #E5E7EB 0%, rgba(229,231,235,0.5) 50%, #E5E7EB 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
