/* ============================================================
   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 dropdown — see mcubepay-reinvention-fixes.css (.mcube-lang-dropdown) */

/* ── 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; }

/* Revamp CSS adds page-wrapper offset for fixed header; mcube navbar is in-flow */
body:has(.main-header.mcube-navbar) .page-wrapper {
  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 ────────────────────────────── */
/* How It Works — see mcubepay-how-it-works.css */

/* Why section — see mcubepay-why-section.css */

/* ── 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-strip--nowrap {
    flex-wrap: nowrap !important;
  }

  .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;
}

/* ============================================================
   VIEWPORT-ADAPTIVE RESPONSIVE LAYER
   Fixes: MacBook 14" and all mid-range desktop viewports
   Breakpoints:
     - 1024–1199px : compact laptops / small Mac
     - 1200–1440px : MacBook 14" (1512px Retina / 1280px classic)
     - Viewport height constraints for short screens
   ============================================================ */

/* ── 1. COMPACT LAPTOPS (1024–1199px) ────────────────────── */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* Stack hero columns — calculator below the copy text */
  .mcube-hero-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    max-width: 680px !important;
  }

  .mcube-hero {
    padding: 90px 32px 48px !important;
    min-height: unset !important;
  }

  .mcube-hero-content h1,
  .mcube-hero .mcube-hero-content h1,
  section.mcube-hero h1 {
    font-size: clamp(28px, 3.2vw, 38px) !important;
  }

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

  .mcube-trust-strip {
    gap: 16px 20px !important;
  }

  /* Compact calculator for narrow viewports */
  .mcube-calculator {
    padding: 16px !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .mcube-calculator-top h3 {
    font-size: 16px !important;
  }

  .mcube-calculator-rate-bar {
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
  }

  .mcube-input-wrapper input {
    font-size: 18px !important;
    padding: 10px 12px !important;
  }

  .mcube-input-group {
    margin-bottom: 12px !important;
  }

  .mcube-fee-row {
    padding: 7px 0 !important;
    font-size: 13px !important;
  }

  .mcube-delivery-tab {
    padding: 10px 8px !important;
  }

  .mcube-delivery-tab i  { font-size: 18px !important; }
  .mcube-delivery-tab span { font-size: 12px !important; }
  .mcube-delivery-tab small { font-size: 10px !important; }
}

/* ── 2. MACBOOK 14" RANGE (1200–1440px) ─────────────────── */
@media (min-width: 1200px) and (max-width: 1440px) {
  /* Tighten hero padding */
  .mcube-hero {
    padding: 100px 48px 60px !important;
    min-height: unset !important;
  }

  /* Reduce column gap */
  .mcube-hero-container {
    gap: 40px !important;
    max-width: 1200px !important;
  }

  /* Scale hero headline */
  .mcube-hero-content h1,
  .mcube-hero .mcube-hero-content h1,
  section.mcube-hero h1 {
    font-size: clamp(30px, 2.8vw, 44px) !important;
    margin-bottom: 12px !important;
  }

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

  /* Compact calculator */
  .mcube-calculator {
    padding: 18px !important;
  }

  .mcube-calculator-top {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  .mcube-calculator-top h3 {
    font-size: 17px !important;
  }

  .mcube-calculator-rate-bar {
    padding: 8px 14px !important;
    margin-bottom: 12px !important;
  }

  .mcube-calculator-rate,
  #rateValue {
    font-size: 20px !important;
  }

  /* Reduce input height */
  .mcube-input-wrapper input {
    font-size: 20px !important;
    padding: 11px 14px !important;
  }

  .mcube-input-group {
    margin-bottom: 14px !important;
  }

  .mcube-input-group label {
    margin-bottom: 5px !important;
    font-size: 11px !important;
  }

  /* Compact swap button */
  .mcube-calc-swap {
    margin: 4px 0 !important;
  }

  /* Compact fee rows */
  .mcube-fee-strip {
    margin-bottom: 14px !important;
    padding: 10px 14px !important;
  }

  .mcube-fee-row {
    padding: 7px 0 !important;
    font-size: 13px !important;
  }

  .mcube-fee-row.total {
    padding-top: 10px !important;
  }

  /* Compact delivery tabs */
  .mcube-delivery-tab {
    padding: 10px 8px !important;
    gap: 4px !important;
  }

  .mcube-delivery-tab i  { font-size: 18px !important; }
  .mcube-delivery-tab span { font-size: 12px !important; }
  .mcube-delivery-tab small { font-size: 10px !important; }

  /* Compact send button */
  .mcube-btn-full {
    padding: 14px 20px !important;
    font-size: 14px !important;
  }

  /* Hide partner pills at this size — saves vertical space */
  .mcube-calculator-partners {
    display: none !important;
  }

  /* Reduce trust note */
  .mcube-calculator-trust {
    font-size: 11px !important;
    margin-top: 8px !important;
  }
}

/* ── 3. VIEWPORT HEIGHT CONSTRAINTS ─────────────────────── */
/* Short screens (e.g. 13" MacBooks, 768–900px height) */
@media (min-width: 1024px) and (max-height: 860px) {
  .mcube-hero {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }

  .mcube-input-wrapper input {
    padding: 10px 12px !important;
    font-size: 18px !important;
  }

  .mcube-input-group {
    margin-bottom: 10px !important;
  }

  .mcube-fee-row { padding: 6px 0 !important; }

  .mcube-delivery-tab {
    padding: 8px 6px !important;
  }

  .mcube-calculator-partners { display: none !important; }
}

/* ── 4. USER APP LAYOUT — SIDEBAR + CONTENT ─────────────── */
/* Ensure the user dashboard sidebar and content don't overflow
   on mid-range viewports */
@media (min-width: 1024px) and (max-width: 1440px) {
  /* User sidebar — keep fixed but allow content to breathe */
  .user-sidebar {
    width: 220px !important;
  }

  .user-main-content {
    margin-left: 220px !important;
  }

  /* Card grids — go to 2 columns earlier */
  .balance-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── 5. FLUID SECTION PADDING ────────────────────────────── */
/* All major landing sections: use fluid padding between 1024–1440px */
@media (min-width: 1024px) and (max-width: 1440px) {
  .mcube-editorial-section,
  .mcube-about-section,
  .mcube-contact-section,
  .mcube-hiw-section,
  .mcube-features-section,
  .mcube-social-proof,
  .mcube-why-section {
    padding-left: clamp(24px, 4vw, 64px) !important;
    padding-right: clamp(24px, 4vw, 64px) !important;
  }

  /* Grids — allow more wrap earlier */
  .mcube-about-grid,
  .mcube-editorial-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }
}

/* ── 6. GLOBAL FLUID TYPE & SPACING ─────────────────────── */
/* Ensure font sizes never exceed container at mid-range */
@media (min-width: 1024px) and (max-width: 1440px) {
  :root {
    --mcube-space-page-desktop: clamp(32px, 4vw, 80px);
    --mcube-fs-display: clamp(40px, 4vw, 60px);
    --mcube-fs-h1: clamp(30px, 3.5vw, 48px);
    --mcube-fs-h2: clamp(22px, 2.5vw, 32px);
    --mcube-fs-h3: clamp(18px, 2vw, 24px);
  }
}

/* ============================================================
   LOGO — BIG, BOLD, OBVIOUS EVERYWHERE
   Applies sitewide: navbar, drawer, sidebar, auth, footer
   ============================================================ */

/* ── Public navbar ─────────────────────────────────────────── */
.mcube-nav-logo          { flex-shrink: 0; }
.mcube-nav-logo img      { height: 56px !important; width: auto !important; display: block; }

/* ── Mobile drawer ─────────────────────────────────────────── */
.mcube-drawer-logo       { height: 44px !important; width: auto !important; display: block; }

/* ── Auth pages (login / register / forgot / reset) ─────────── */
/* Brand mark container */
.fin-auth__brand-mark {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}

/* Logo image inside the brand mark */
.fin-auth__brand-mark img {
    max-width: 52px !important;
    max-height: 52px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Stand-alone logo on auth pages (forgot/reset pages use a bare img) */
.fin-auth__showcase img,
.fin-auth__card-top img {
    height: 52px !important;
    width: auto !important;
}

/* Slightly larger brand name text next to the logo */
.fin-auth__brand-name  { font-size: 1.2rem !important; }
.fin-auth__brand-label { font-size: 0.72rem !important; }

/* ── Footer (both footer_one and footer_two) ────────────────── */
.footer .logo a img,
.footer-widget .logo img,
.logo-widget .logo img,
.logo-widget-inner .logo img {
    height: 52px !important;
    width: auto !important;
    display: block;
}

/* ── Invoice / PDF ──────────────────────────────────────────── */
.logo-container img,
.logo-placeholder img {
    height: 56px !important;
    width: auto !important;
}

/* ── Password pages bare logo ───────────────────────────────── */
.auth-logo img,
.password-reset-logo img {
    height: 52px !important;
    width: auto !important;
}

/* ============================================================
   HERO TRUST STRIP — force all 3 on one row
   APP DOWNLOAD BUTTONS — row 2
   ============================================================ */

.mcube-trust-strip--nowrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: unset !important;
  gap: 10px !important;
  max-width: none !important;
}

/* ── App download buttons — hero CTA ─────────────────────── */
.mcube-app-buttons {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
  width: 100%;
  scroll-margin-top: 100px;
}

.mcube-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px 18px 22px;
  min-width: 0;
  flex: 1 1 240px;
  max-width: 320px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mcube-app-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mcube-app-btn--apple {
  background: #000 !important;
  border: 2px solid #F5B800;
  border-radius: 12px;
  box-shadow: none;
  padding: 14px 26px 14px 20px;
  gap: 14px;
}

.mcube-app-btn--apple::before {
  display: none;
}

.mcube-app-btn--apple:hover {
  transform: translateY(-2px);
  background: #0d0d0d !important;
  border-color: #FFD54F;
  box-shadow:
    0 0 0 1px rgba(245, 184, 0, 0.35),
    0 10px 28px rgba(245, 184, 0, 0.25);
  color: #fff;
}

.mcube-app-btn--apple .mcube-app-btn-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.mcube-app-btn--apple .mcube-app-btn-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Plus Jakarta Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mcube-app-btn--google {
  background: linear-gradient(145deg, rgba(0, 201, 167, 0.2) 0%, rgba(10, 22, 40, 0.92) 45%, #0A1628 100%);
  border: 2px solid rgba(0, 201, 167, 0.5);
  box-shadow:
    0 8px 28px rgba(0, 201, 167, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mcube-app-btn--google::before {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.12), transparent 60%);
}

.mcube-app-btn--google:hover {
  transform: translateY(-3px);
  border-color: #00C9A7;
  box-shadow:
    0 14px 36px rgba(0, 201, 167, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mcube-app-btn:hover::before {
  opacity: 1;
}

.mcube-app-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.mcube-app-btn--google .mcube-app-btn-icon {
  color: #00C9A7;
  background: rgba(0, 201, 167, 0.15);
}

.mcube-app-btn-icon i {
  font-size: 2rem;
  line-height: 1;
}

.mcube-app-btn--apple .mcube-app-btn-icon {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
}

.mcube-app-btn--apple .mcube-app-btn-icon i {
  font-size: 2.5rem;
}

.mcube-app-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.mcube-app-btn-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcube-app-btn-name {
  font-family: "Clash Display", "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .mcube-trust-strip--nowrap {
    flex-wrap: nowrap !important;
  }

  .mcube-app-buttons {
    flex-direction: column;
  }

  .mcube-app-btn {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}
