/* =====================================================================
   HOÀN TIỀN OULI - MODERN SAAS & FINTECH UI
   Color Palette: Deep Slate (#0f172a), Primary Blue (#2563eb), Sky (#60a5fa),
   Mint (#10b981), Amber Gold (#f59e0b), Pure White (#ffffff)
===================================================================== */

:root {
  --brand: #fe6333;
  --brand-dark: #d8542b;
  --brand-light: #fe7a52;
  --brand-bg: #fff7f5;
  --color-sand: #fff7ed;
  --color-mint: #059669;

  --primary: #fe6333;
  --primary-hover: #d8542b;
  --primary-light: #fff7f5;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px -4px rgba(254, 99, 51, 0.15);
  --font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img,
svg {
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------
   APP-FIRST LAYOUT WITH PERSISTENT SIDEBAR (HOANTIENAZ STYLE)
------------------------------------------------------------- */
.app-layout-body {
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Fixed Left Sidebar */
.app-sidebar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 275px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mascot-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.brand-subtitle-tag {
  font-size: 0.65rem;
  font-weight: 750;
  color: #94a3b8;
  letter-spacing: 0.6px;
}

.sidebar-mobile-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-mobile-close-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* User Quick Status Card */
.sidebar-user-quick-card {
  padding: 12px 14px 6px;
}

.sidebar-user-logged {
  background: linear-gradient(135deg, #fff7f5 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 12px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.user-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(254, 99, 51, 0.25);
  flex-shrink: 0;
}

.user-meta {
  min-width: 0;
  flex: 1;
}

.user-name-text {
  font-weight: 750;
  font-size: 0.88rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-ref-text {
  font-size: 0.72rem;
  color: #64748b;
}

.badge-vip {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.user-balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.user-balance-bar strong {
  color: #059669;
  font-weight: 800;
  font-size: 0.92rem;
}

.sidebar-guest-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(254, 99, 51, 0.08);
}

.guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ea580c;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.guest-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #9a3412;
  margin-bottom: 4px;
}

.guest-desc {
  font-size: 0.74rem;
  color: #7c2d12;
  line-height: 1.4;
  margin-bottom: 12px;
}

.guest-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-guest-login {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 0;
  font-size: 0.78rem;
  font-weight: 750;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-guest-login:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-guest-register {
  flex: 1;
  background: linear-gradient(135deg, #fe6333 0%, #d8542b 100%);
  border: none;
  color: #ffffff !important;
  padding: 7px 0;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(254, 99, 51, 0.35);
  transition: all 0.2s;
}

.btn-guest-register:hover {
  background: linear-gradient(135deg, #d8542b 0%, #c2410c 100%);
  box-shadow: 0 4px 14px rgba(254, 99, 51, 0.45);
}

.btn-xs {
  padding: 5px 8px;
  font-size: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  justify-content: center;
}

/* Primary Action CTA in Sidebar */
.sidebar-cta-container {
  padding: 6px 14px 10px;
}

.btn-sidebar-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 850;
  border-radius: 12px;
  background: linear-gradient(135deg, #fe6333 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: none;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(254, 99, 51, 0.35);
  transition: all 0.2s ease;
}

.btn-sidebar-cta:hover {
  background: linear-gradient(135deg, #d8542b 0%, #c2410c 100%) !important;
  box-shadow: 0 8px 24px rgba(254, 99, 51, 0.45);
  transform: translateY(-1px);
}

.btn-sidebar-cta i {
  color: #fde047;
  font-size: 0.95rem;
}

/* Scrollable Nav Menu */
.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.sidebar-menu-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  padding: 12px 10px 4px;
  text-transform: uppercase;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 0.98rem;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.sidebar-nav-item span:first-of-type {
  flex: 1;
  white-space: nowrap;
}

.sidebar-tag-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  line-height: 1.2;
  flex-shrink: 0;
}

.sidebar-nav-item:hover {
  color: var(--primary);
  background: #fff7f5;
}

.sidebar-nav-item:hover i {
  color: var(--primary);
}

.sidebar-nav-item.active {
  color: var(--primary);
  background: #fff7f5;
  font-weight: 800;
  border-left-color: var(--primary);
}

.sidebar-nav-item.active i {
  color: var(--primary);
}

.sidebar-tag-hot {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-tag-gold {
  margin-left: auto;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-tag-green {
  margin-left: auto;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Sidebar Bottom Meta */
.sidebar-bottom-meta {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  font-size: 0.78rem;
  color: #64748b;
}

.sidebar-support-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.sidebar-social-icons {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.sidebar-social-icons a {
  color: #64748b;
  transition: color 0.2s ease;
}

.sidebar-social-icons a:hover {
  color: var(--primary);
}

.sidebar-logout-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* App Main Wrapper */
.app-main-wrapper {
  margin-left: 275px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* ============================================================================
   STICKY TOPBAR - REDESIGNED FINTECH LUXURY & SLEEK
   ============================================================================ */
.app-topbar-sticky {
  position: sticky;
  top: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.03);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.topbar-left-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-sidebar-toggle-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.topbar-sidebar-toggle-btn:hover {
  background: #f8fafc;
  color: #2563eb;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Logo Brand in Topbar */
.topbar-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.topbar-mascot-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.topbar-brand-link:hover .topbar-mascot-img {
  transform: scale(1.08) rotate(-4deg);
}

.topbar-brand-name {
  font-family: 'Plus Jakarta Sans', var(--font-base), sans-serif;
  font-size: 1.35rem;
  font-weight: 850;
  color: #2563eb;
  letter-spacing: -0.5px;
}

.topbar-brand-badge {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid #dbeafe;
}

/* Modern Horizontal Navigation Bar */
.topbar-horizontal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
}

.topbar-horizontal-nav::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.topbar-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #475569;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.topbar-nav-icon {
  font-size: 0.85rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.topbar-nav-link:hover .topbar-nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

.topbar-nav-link.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.topbar-nav-link.active .topbar-nav-icon {
  opacity: 1;
  color: #2563eb;
}

/* Mini Badges inside nav */
.topbar-nav-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1.3;
  margin-left: 2px;
}

.badge-top {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-bonus {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Right Zone Container */
.topbar-right-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Primary Action CTA Button: Lấy Link Ngay */
.topbar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fe6333 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(254, 99, 51, 0.26);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.topbar-cta-btn:hover {
  background: linear-gradient(135deg, #ff7447 0%, #f97316 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(254, 99, 51, 0.36);
  color: #ffffff !important;
}

.topbar-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(254, 99, 51, 0.22);
}

/* Fintech Wallet Balance Pill */
.topbar-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  text-decoration: none;
  color: #047857;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-wallet-pill:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.16);
  color: #047857;
}

.wallet-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: #10b981;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wallet-info-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.wallet-label {
  font-size: 0.74rem;
  color: #059669;
  font-weight: 600;
}

.wallet-amount {
  font-size: 0.88rem;
  font-weight: 850;
  color: #047857;
  letter-spacing: -0.2px;
}

/* User Profile Pill & Dropdown */
.topbar-user-dropdown {
  position: relative;
}

.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.topbar-user-btn:hover,
.topbar-user-dropdown.open .topbar-user-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.topbar-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.topbar-username {
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.86rem;
  color: #1e293b;
}

.topbar-caret {
  font-size: 0.68rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.topbar-user-dropdown.open .topbar-caret {
  transform: rotate(180deg);
}

/* User Dropdown Menu */
.topbar-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 8px;
  display: none;
  z-index: 100;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-user-dropdown.open .topbar-dropdown-menu {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-user-header {
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 6px;
}

.dropdown-user-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-user-ref {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.dropdown-user-balance {
  margin-top: 6px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  transition: color 0.15s ease;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: #2563eb;
  transform: translateX(2px);
}

.dropdown-item:hover i {
  color: #2563eb;
}

.dropdown-item.dropdown-highlight {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
}

.dropdown-item.dropdown-highlight i {
  color: #16a34a;
}

.dropdown-item.dropdown-logout {
  color: #ef4444;
}

.dropdown-item.dropdown-logout i {
  color: #ef4444;
}

.dropdown-item.dropdown-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Guest Auth Buttons */
.topbar-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.topbar-btn-login:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.topbar-btn-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

.topbar-btn-register:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.32);
  color: #ffffff;
}

/* Sidebar Collapsed State */
body.sidebar-collapsed .app-sidebar-fixed {
  transform: translateX(-100%);
}

body.sidebar-collapsed .app-main-wrapper {
  margin-left: 0;
}

/* App Page Content Container */
.app-page-content {
  flex: 1;
  padding-bottom: 40px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

/* Responsive Breakpoints for App Layout */
@media (max-width: 1023px) {
  .app-sidebar-fixed {
    width: 280px;
    max-width: 86vw;
    z-index: 1060;
    z-index: 1060 !important;
    transform: translateX(-100%);
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.2);
  }

  .app-sidebar-fixed.open {
    transform: translateX(0);
  }

  .sidebar-mobile-close-btn {
    display: flex;
  }

  .app-main-wrapper {
    margin-left: 0;
    padding-bottom: 64px;
  }

  .app-topbar-sticky {
    padding: 0 16px;
  }

  .topbar-horizontal-nav {
    display: none;
  }

  .topbar-mobile-toggle-btn {
    display: flex;
  }

  .topbar-mobile-logo {
    display: flex;
  }

  .topbar-slogan-hint {
    display: none;
  }

  .topbar-cta-btn {
    display: none;
  }

  /* Bottom Navigation Bar on Mobile */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -3px 14px rgba(15, 23, 42, 0.08);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 650;
    color: #64748b;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
  }

  .bottom-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item.active {
    color: var(--primary);
    font-weight: 750;
  }

  .bottom-nav-btn-highlight {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -18px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    border: 3px solid #ffffff;
  }

  .bottom-nav-btn-highlight i {
    font-size: 1.15rem;
    margin-bottom: 0;
  }
}

/* -------------------------------------------------------------
   BUTTONS
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* -------------------------------------------------------------
   HERO SECTION & LINK CHECKER
------------------------------------------------------------- */
.hero-section {
  padding: 60px 0 80px;
  background: radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.6) 0%, rgba(248, 250, 252, 0) 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(147, 197, 253, 0.5);
}

.hero-title {
  font-size: 3rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-main);
  max-width: 860px;
  margin: 0 auto 18px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* Link Checker Box */
.link-checker-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px -6px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border);
  position: relative;
}

.link-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link-input-wrapper {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.link-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
}

.link-input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 48px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.link-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.link-btn {
  height: 56px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.supported-platforms-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-body);
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid var(--border);
}

.platform-pill img {
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------
   STATISTICS BAR
------------------------------------------------------------- */
.stats-section {
  padding: 20px 0 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon.gold {
  background: var(--accent-light);
  color: var(--accent);
}

.stat-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* -------------------------------------------------------------
   PLATFORMS SECTION
------------------------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 255, 0.3);
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.platform-card-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.platform-card-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.platform-rate-badge {
  display: inline-block;
  background: var(--success-light);
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.platform-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* -------------------------------------------------------------
   3 STEPS GUIDE
------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 750;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  margin-top: 80px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-desc {
  max-width: 320px;
  line-height: 1.7;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

/* -------------------------------------------------------------
   TOAST NOTIFICATION & MODALS
------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease;
}

.toast.toast-success {
  border-left-color: var(--success);
}

.toast.toast-error {
  border-left-color: var(--danger);
}

.toast.toast-warning {
  border-left-color: var(--accent);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN
------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* =================================================================
   OULI FINTECH UI — UPGRADE ADDITIONS
   All sections below are additive (original CSS preserved above)
================================================================= */

/* -----------------------------------------------------------------
   PAGE LOAD PROGRESS BAR
----------------------------------------------------------------- */
#page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #10b981);
  z-index: 10000;
  transition: width 0.2s ease;
  border-radius: 0 3px 3px 0;
}

/* -----------------------------------------------------------------
   SCROLL-TO-TOP BUTTON
----------------------------------------------------------------- */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

/* -----------------------------------------------------------------
   MOBILE HAMBURGER MENU
----------------------------------------------------------------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: var(--primary-light);
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #ffffff;
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 36px rgba(15, 23, 42, 0.2);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.mobile-sidebar-user {
  padding: 16px 18px 10px;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.92rem;
  color: #334155;
  transition: var(--transition);
  text-decoration: none;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 750;
}

.mobile-nav-links li a i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Breakpoint for Desktop Navbar -> Mobile Hamburger Drawer */
@media (max-width: 1080px) {
  .site-header nav {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .header-actions .btn-outline {
    display: none !important;
  }
}

/* -----------------------------------------------------------------
   HERO SECTION — UPGRADED (2-column layout)
----------------------------------------------------------------- */
.hero-section-v2 {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: #0f172a;
  color: #fff;
}

.hero-mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(37, 99, 235, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 20%, rgba(14, 165, 233, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 60% 90%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
    #0f172a;
  animation: meshShift 10s ease-in-out infinite alternate;
}

@keyframes meshShift {
  from {
    background-position: 0% 0%, 100% 0%, 50% 100%;
  }

  to {
    background-position: 5% 10%, 95% 10%, 55% 90%;
  }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatParticle linear infinite;
}

.hero-particle:nth-child(1) {
  width: 120px;
  height: 120px;
  background: #2563eb;
  top: 10%;
  left: 5%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.hero-particle:nth-child(2) {
  width: 60px;
  height: 60px;
  background: #0ea5e9;
  top: 60%;
  left: 15%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.hero-particle:nth-child(3) {
  width: 90px;
  height: 90px;
  background: #10b981;
  top: 30%;
  left: 75%;
  animation-duration: 20s;
  animation-delay: -7s;
}

.hero-particle:nth-child(4) {
  width: 40px;
  height: 40px;
  background: #f59e0b;
  top: 75%;
  left: 80%;
  animation-duration: 9s;
  animation-delay: -2s;
}

.hero-particle:nth-child(5) {
  width: 70px;
  height: 70px;
  background: #9333ea;
  top: 5%;
  left: 55%;
  animation-duration: 15s;
  animation-delay: -5s;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.hero-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-v2-left .hero-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #bfdbfe;
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-v2-left .hero-title {
  color: #fff;
  font-size: 3.2rem;
  max-width: none;
  margin: 0 0 20px;
}

.hero-v2-left .hero-desc {
  color: #cbd5e1;
  max-width: none;
  margin: 0 0 36px;
}

.hero-v2-right {
  display: flex;
  justify-content: center;
}

.hero-widget-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  color: #fff;
}

.hero-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-widget-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-widget-stat:last-of-type {
  border-bottom: none;
}

.hero-widget-stat-label {
  font-size: 0.88rem;
  color: #94a3b8;
}

.hero-widget-stat-val {
  font-weight: 800;
  color: #60a5fa;
  font-size: 1.1rem;
}

/* -----------------------------------------------------------------
   STATS BAR — Counter animation
----------------------------------------------------------------- */
.stats-bar-section {
  padding: 50px 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-bar-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
}

.stats-bar-item:last-child {
  border-right: none;
}

.stats-bar-value {
  font-size: 2.4rem;
  font-weight: 850;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stats-bar-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stats-bar-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* Counter animation */
.counter-value {
  display: inline-block;
}

/* -----------------------------------------------------------------
   PLATFORM CARDS — Upgraded with shimmer + HOT badge + ribbon
----------------------------------------------------------------- */
.platform-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent 40%, rgba(37, 99, 235, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.platform-card:hover::before {
  opacity: 1;
}

/* Shimmer sweep on hover */
.platform-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.platform-card:hover::after {
  left: 130%;
}

.platform-hot-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

/* Ribbon */
.platform-ribbon {
  position: absolute;
  top: 12px;
  left: -6px;
  background: var(--success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  border-width: 6px 6px 0 0;
  border-style: solid;
  border-color: #047857 transparent transparent transparent;
}

/* -----------------------------------------------------------------
   TESTIMONIALS SECTION
----------------------------------------------------------------- */
.testimonials-section {
  padding: 70px 0;
  background: var(--bg-body);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary-light);
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  right: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  font-size: 0.95rem;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------
   NEWS CARD GRID
----------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
}

.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.4;
  flex: 1;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.news-read-more:hover {
  gap: 10px;
}

/* -----------------------------------------------------------------
   LEADERBOARD — Podium style top 3
----------------------------------------------------------------- */
.leaderboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 220px;
}

.podium-crown {
  font-size: 2rem;
  margin-bottom: 6px;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}

.podium-item.rank-1 .podium-avatar {
  width: 88px;
  height: 88px;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.podium-item.rank-2 .podium-avatar {
  border-color: #94a3b8;
}

.podium-item.rank-3 .podium-avatar {
  border-color: #cd7c2f;
}

.podium-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.podium-amount {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.podium-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  padding: 16px 0;
}

.podium-item.rank-1 .podium-block {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  height: 110px;
}

.podium-item.rank-2 .podium-block {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  height: 80px;
}

.podium-item.rank-3 .podium-block {
  background: linear-gradient(135deg, #cd7c2f, #a16207);
  height: 60px;
}

.leaderboard-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row:hover {
  background: var(--primary-light);
}

.leaderboard-rank {
  width: 32px;
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leaderboard-user {
  flex: 1;
  font-weight: 600;
}

.leaderboard-cashback {
  font-weight: 800;
  color: var(--success);
}

/* -----------------------------------------------------------------
   REFERRAL PAGE
----------------------------------------------------------------- */
.referral-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.referral-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.referral-hero-title {
  font-size: 2.4rem;
  font-weight: 850;
  margin-bottom: 12px;
}

.referral-hero-desc {
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.referral-copy-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}

.referral-copy-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.referral-copy-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.referral-copy-btn {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.referral-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.referral-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.referral-step {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
}

.referral-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.referral-step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.referral-step-num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-step-title {
  font-weight: 750;
  margin-bottom: 8px;
}

.referral-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------
   STORES PAGE — Filter tabs + 4-col grid
----------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 32px;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-tab:hover {
  color: var(--primary);
}

.filter-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.store-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.store-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.store-card-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.store-card-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.store-card-rate {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* -----------------------------------------------------------------
   CASHBACK TOOL PAGE — Glassmorphism result
----------------------------------------------------------------- */
.tool-center-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.tool-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tool-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Loading spinner */
.tool-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.spinner-ring {
  width: 56px;
  height: 56px;
  border: 5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinRing 0.9s linear infinite;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.tool-loading-text {
  color: var(--text-muted);
  font-weight: 600;
}

/* Result card glassmorphism */
.result-card-glass {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
  margin-top: 24px;
}

.result-card-glass .result-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.result-card-glass .result-value {
  font-size: 2rem;
  font-weight: 850;
  color: var(--primary);
  line-height: 1;
}

.result-card-glass .result-platform {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.result-row:last-child {
  border-bottom: none;
}

/* -----------------------------------------------------------------
   HOW IT WORKS — Timeline layout alternating
----------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  padding: 20px 0;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--primary), 0 0 20px rgba(37, 99, 235, 0.3);
  z-index: 1;
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px var(--primary), 0 0 10px rgba(37, 99, 235, 0.2);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2), 0 0 25px rgba(37, 99, 235, 0.35);
  }
}

.timeline-content {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 10px;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.timeline-spacer {
  flex: 1;
}

/* -----------------------------------------------------------------
   FAQ ACCORDION
----------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--text-main);
  gap: 16px;
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* -----------------------------------------------------------------
   SKELETON LOADERS — shimmer animation
----------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text.w-full {
  width: 100%;
}

.skeleton-text.w-3-4 {
  width: 75%;
}

.skeleton-text.w-1-2 {
  width: 50%;
}

.skeleton-title {
  height: 1.6em;
  width: 60%;
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
}

.skeleton-btn {
  height: 44px;
  width: 120px;
  border-radius: var(--radius-md);
}

.skeleton-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -----------------------------------------------------------------
   BADGE VARIANTS
----------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge-chip {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
}

.badge-pill {
  background: var(--bg-body);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.badge-pending {
  background: #fef3c7;
  color: #d97706;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-rejected {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-new {
  background: #f3e8ff;
  color: #9333ea;
}

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  animation: hotPulse 2s ease-in-out infinite;
}

/* -----------------------------------------------------------------
   CARD VARIANTS
----------------------------------------------------------------- */
.card-hover-lift {
  transition: var(--transition);
  cursor: pointer;
}

.card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

/* -----------------------------------------------------------------
   SECTION BACKGROUNDS
----------------------------------------------------------------- */
.section-dark {
  background: #0f172a;
  color: #e2e8f0;
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-desc,
.section-dark .section-tag {
  color: #94a3b8;
}

.section-light {
  background: #fff;
}

.section-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
}

.section-gradient-dark {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #e2e8f0;
}

/* -----------------------------------------------------------------
   TRUST BADGES ROW
----------------------------------------------------------------- */
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-badge-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-badge-icon {
  font-size: 1.1rem;
}

/* Dark variant trust badges (for footer) */
.trust-badges-row.dark .trust-badge-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.trust-badges-row.dark .trust-badge-item:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* -----------------------------------------------------------------
   CTA SECTIONS
----------------------------------------------------------------- */
/* Variant 1: Banner strip */
.cta-banner-strip {
  background: linear-gradient(90deg, #1e3a8a, #2563eb 40%, #0ea5e9);
  padding: 24px 0;
  text-align: center;
  color: #fff;
}

.cta-banner-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner-text {
  font-weight: 700;
  font-size: 1.05rem;
}

.cta-banner-subtext {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Variant 2: Full-width gradient */
.cta-fullwidth {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-fullwidth::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.cta-fullwidth .cta-title {
  font-size: 2.4rem;
  font-weight: 850;
  margin-bottom: 14px;
}

.cta-fullwidth .cta-desc {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-fullwidth .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-fullwidth .btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border: none;
}

.cta-fullwidth .btn-white:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

.cta-fullwidth .btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-fullwidth .btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------
   FOOTER IMPROVEMENTS
----------------------------------------------------------------- */
.footer-social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter .btn-sm {
  padding: 10px 16px;
  white-space: nowrap;
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-mini-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1e293b;
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

.footer-mini-badge i {
  color: #10b981;
}

/* -----------------------------------------------------------------
   TOAST IMPROVEMENTS
----------------------------------------------------------------- */
.toast-icon {
  margin-right: 8px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-main);
}

/* -----------------------------------------------------------------
   RESPONSIVE MOBILE OVERRIDES
----------------------------------------------------------------- */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .header-actions .btn:last-child {
    display: inline-flex;
  }

  .hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-v2-left .hero-title {
    font-size: 2.2rem;
  }

  .hero-v2-right {
    justify-content: center;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar-item:nth-child(2) {
    border-right: none;
  }

  .store-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-wrapper::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    padding-left: 56px;
  }

  .timeline-dot {
    left: 24px;
  }

  .timeline-spacer {
    display: none;
  }

  .leaderboard-podium {
    flex-direction: column;
    align-items: center;
  }

  .podium-item {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .podium-block {
    display: none;
  }

  .referral-hero {
    padding: 36px 24px;
  }

  .referral-hero-title {
    font-size: 1.8rem;
  }

  .referral-steps {
    grid-template-columns: 1fr 1fr;
  }

  .cta-fullwidth .cta-title {
    font-size: 1.8rem;
  }

  .cta-banner-strip-inner {
    flex-direction: column;
    gap: 12px;
  }

  .trust-badges-row {
    gap: 10px;
  }

  .trust-badge-item {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #scroll-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-v2-left .hero-title {
    font-size: 1.8rem;
  }

  .hero-widget-card {
    padding: 20px 16px;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar-value {
    font-size: 1.8rem;
  }

  .store-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
  }

  .referral-steps {
    grid-template-columns: 1fr;
  }

  .referral-copy-box {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .referral-copy-box input {
    text-align: center;
  }

  .referral-copy-btn {
    justify-content: center;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
  }

  .filter-tabs {
    gap: 2px;
  }

  .filter-tab {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .cta-fullwidth {
    padding: 50px 0;
  }

  .cta-fullwidth .cta-title {
    font-size: 1.5rem;
  }

  .tool-card {
    padding: 24px 16px;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .footer-social-links {
    gap: 8px;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter .btn-sm {
    width: 100%;
  }

  .leaderboard-row {
    padding: 12px 14px;
    gap: 10px;
  }

  .modal-card {
    padding: 20px;
  }
}

/* -----------------------------------------------------------------
   GLOBAL RESPONSIVE GRID HELPERS (PREVENTS ANY LAYOUT BREAK)
----------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .cashback-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 860px) {

  .ref-hero-grid,
  .featured-grid {
    grid-template-columns: 1fr !important;
  }

  .featured-grid>div:first-child {
    height: 240px !important;
  }
}

@media (max-width: 768px) {
  .podium-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .podium-grid>div:nth-child(2) {
    order: -1;
    transform: none !important;
  }

  .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .link-form .link-input-wrapper {
    flex-direction: column;
  }

  .link-form .link-btn {
    width: 100%;
    margin-top: 8px;
  }
}

/* =====================================================================
   CATEGORY BANNERS (HOÀN TIỀN OULI)
===================================================================== */
.category-banners-container {
  margin: 10px 0 32px;
}

.cat-banner-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 34px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  min-height: 220px;
  transition: all 0.3s ease;
}

.cat-banner-left {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.cat-banner-logo-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.cat-banner-logo-img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cat-banner-logo-text {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.cat-banner-badge {
  background: #ffffff;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 4px;
}

.cat-banner-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.cat-banner-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cat-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-banner-btn-main {
  background: #ffffff;
  color: #0f172a !important;
  font-weight: 850;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-banner-btn-main:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.cat-banner-btn-sub {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-weight: 750;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-banner-btn-sub:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cat-banner-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
}

.cat-banner-mascot {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  animation: floatMascot 3s ease-in-out infinite alternate;
}

@keyframes floatMascot {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .cat-banner-card {
    padding: 24px 20px;
    flex-direction: column;
    text-align: center;
  }

  .cat-banner-left {
    max-width: 100%;
  }

  .cat-banner-title {
    font-size: 1.45rem;
  }

  .cat-banner-actions {
    justify-content: center;
  }

  .cat-banner-right {
    display: none;
  }
}

/* =====================================================================
   UNIVERSAL RESPONSIVE ENHANCEMENTS ACROSS ALL DEVICES (320px - 2560px)
===================================================================== */

/* Global image & media boundary protection */
img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Touch scrolling and safe areas */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.table-responsive,
.data-table-wrapper,
.admin-table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet & Mobile Screens <= 1024px */
@media (max-width: 1023px) {
  .mobile-bottom-nav {
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    z-index: 1000 !important;
  }

  .app-main-wrapper {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Screens <= 991px */
@media (max-width: 991px) {
  div[style*="grid-template-columns"]:not(.keep-grid),
  form[style*="grid-template-columns"]:not(.keep-grid) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .store-grid-4,
  .vouchers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile Screens <= 768px */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Modal responsiveness */
  .modal-card {
    max-width: min(520px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 22px 18px !important;
  }
}

/* Small Mobile Screens <= 576px */
@media (max-width: 600px) {
  .live-hunter-hero-box {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .topbar-brand-badge {
    display: none !important;
  }

  .topbar-username {
    display: none !important;
  }

  .wallet-label {
    display: none !important;
  }

  .topbar-wallet-pill {
    padding: 5px 10px !important;
    font-size: 0.8rem !important;
    gap: 5px !important;
  }

  .topbar-left-zone {
    gap: 8px !important;
  }

  .topbar-right-zone {
    gap: 6px !important;
  }

  .store-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }

  .data-table {
    min-width: 580px !important;
  }
}

/* Extra-small Mobile Screens <= 380px (iPhone SE, Galaxy Z Flip outer, small Androids) */
@media (max-width: 380px) {
  .topbar-brand-name {
    font-size: 1.05rem !important;
  }

  .topbar-btn-login,
  .topbar-btn-register {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .topbar-btn-register i {
    display: none !important;
  }

  .bottom-nav-item span {
    font-size: 0.65rem !important;
  }

  .modal-card {
    padding: 16px 12px !important;
  }
}