/* Səndə Qazan - Premium Design System (Corporate & SaaS Inspired)
 * Colors: Primary Green (#20E51B), Dark Green (#063C2C), Main Dark (#101312), Text (#141817), BG (#F5F7F5), Border (#E2E8E3)
 * Typography: Manrope (700-800 Headings, 400-600 Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --font-main: 'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --bg-page: #1e1e1e;
  --bg-secondary: #181818;
  --surface-1: #1e1e1e;
  --surface: #252525;
  --surface-2: #2e2e2e;
  --surface-3: #383838;

  --text-primary: #FFFFFF;
  --text-secondary: #B0B8B3;
  --text-muted: #88928C;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --brand: #19D538;
  --brand-hover: #20E548;
  --brand-soft: rgba(25, 213, 56, 0.15);

  --danger: #FF5E68;
  --warning: #F2BD4B;
  --success: #20D65A;

  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.30);
  --shadow-card: 0 6px 25px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.45);
  --shadow-press: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-press-active: 0 1px 4px rgba(0, 0, 0, 0.25);

  /* Legacy Aliases Mapped to Semantic Tokens */
  --primary-green: var(--brand);
  --secondary-green: #12C91B;
  --dark-green: var(--brand);
  --black: var(--text-primary);
  --text-main: var(--text-primary);
  --white: var(--surface);
  --bg-main: var(--bg-page);

  --sq-green: var(--brand);
  --sq-green-2: #12C91B;
  --sq-dark-green: var(--brand);
  --sq-dark: var(--bg-page);
  --sq-text: var(--text-primary);
  --sq-muted: var(--text-muted);
  --sq-bg: var(--bg-page);
  --sq-bg-secondary: var(--bg-secondary);
  --sq-card: var(--surface);
  --sq-border: var(--border);
  --sq-border-strong: var(--border-strong);

  --pad-card-sm: 12px;
  --pad-card: 16px;
  --pad-card-lg: 20px;

  --radius-inner-sm: 6px;
  --radius-inner: 8px;
  --radius-inner-lg: 12px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 20px;
  --radius-card-lg: 28px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --space-icon-title: 8px;
  --space-title-body: 8px;
  --space-body-cta: 16px;
}

[data-theme="light"] {
  color-scheme: light;

  --bg-page: #F5F8F5;
  --bg-secondary: #EEF3EF;
  --surface: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #F8FAF8;
  --border-color: rgba(20, 50, 30, 0.1);

  --text-primary: #111713;
  --text-secondary: #657068;
  --text-muted: #87918A;

  --border: rgba(20, 50, 30, 0.09);
  --border-strong: rgba(20, 50, 30, 0.15);

  --brand: #14B82C;
  --brand-hover: #10A827;
  --brand-soft: rgba(20, 184, 44, 0.08);

  --danger: #D94652;
  --warning: #B97900;
  --success: #10A63A;

  --shadow: 0 14px 40px rgba(20, 50, 30, 0.07);
  --shadow-sm: 0 2px 8px rgba(10, 20, 15, 0.04);
  --shadow-card: 0 6px 25px rgba(10, 25, 15, 0.04);
  --shadow-lg: 0 12px 35px rgba(10, 25, 15, 0.07);
  --shadow-press: 0 2px 8px rgba(10, 20, 15, 0.04);
  --shadow-press-active: 0 1px 4px rgba(10, 20, 15, 0.03);

  /* Legacy Aliases Mapped to Light Tokens */
  --primary-green: var(--brand);
  --secondary-green: #12C91B;
  --dark-green: #063C2C;
  --black: var(--text-primary);
  --text-main: var(--text-primary);
  --white: #FFFFFF;
  --bg-main: var(--bg-page);

  --sq-green: var(--brand);
  --sq-green-2: #12C91B;
  --sq-dark-green: #063C2C;
  --sq-dark: #101312;
  --sq-text: var(--text-primary);
  --sq-muted: var(--text-muted);
  --sq-bg: var(--bg-page);
  --sq-bg-secondary: var(--bg-secondary);
  --sq-card: #FFFFFF;
  --sq-border: var(--border);
  --sq-border-strong: var(--border-strong);
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* PHOSPHOR ICONS */
i.ph-duotone,
i[class*="ph-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}

/* BUTTON SYSTEM - Restrained, modern SaaS styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #071008;
  border: none;
  box-shadow: 0 4px 14px rgba(32, 229, 27, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--secondary-green);
  box-shadow: 0 6px 18px rgba(32, 229, 27, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-dark {
  background-color: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background-color: var(--surface-3);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-dark:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--surface-2);
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-outline.active,
.btn-outline:active {
  background-color: var(--brand);
  color: #071008;
  border-color: var(--brand);
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 var(--border-strong);
}

.btn-sm:hover {
  box-shadow: 0 4px 0 var(--border-strong);
}

.btn-sm:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border-strong);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* SITE FOOTER - Dark Theme Matched Footer */
.site-footer {
  background-color: #1e1e1e;
  color: #FFFFFF;
  padding: 64px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--sq-green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--sq-green);
}

/* REWARD BADGE (Signature UI Element) */
.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--primary-green);
  color: var(--black);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-strong);
  box-shadow: 0 2px 0 var(--border-strong);
}

.reward-badge-lg {
  font-size: 1.125rem;
  padding: 8px 18px;
}

/* CARDS */
.card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-press {
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-press);
}

/* SIGNATURE BLACK WALLET CARD */
.wallet-card-black {
  background-color: var(--black);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.wallet-card-black::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(32, 229, 27, 0.25) 0%, rgba(32, 229, 27, 0) 70%);
  pointer-events: none;
}

.wallet-amount {
  color: var(--primary-green);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 8px 0 16px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wallet-amount .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

/* NAVBAR & FLOATING CAPSULE HEADER */
.navbar {
  position: relative;
  z-index: 1300;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}


.navbar--auth .nav-container {
  justify-content: flex-end;
}

.navbar--auth .logo-brand {
  margin-right: auto;
}

.navbar--auth .nav-actions {
  gap: 8px;
}

.navbar--auth .reward-badge {
  font-size: 0.8rem;
  padding: 5px 10px;
}

.nav-panel-btn {
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  font-weight: 800 !important;
}

.nav-icon-btn {
  padding: 6px 9px !important;
  min-width: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.notif-wrapper {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

#notif-dropdown {
  z-index: 10150 !important;
  width: 310px !important;
  min-width: 280px !important;
  max-width: min(310px, calc(100vw - 32px)) !important;
  box-sizing: border-box;
}

/* Desktop: notification panel must paint above /user dashboard (not clipped by navbar) */
@media (min-width: 768px) {
  .site-header-stack {
    z-index: 10200;
    position: relative;
  }

  .navbar,
  .nav-container,
  .nav-actions,
  .notif-wrapper {
    overflow: visible !important;
  }

  .navbar.notif-dropdown-open {
    z-index: 10250 !important;
    overflow: visible !important;
  }
}

@media (min-width: 768px) {
  body {
    padding-top: 96px;
  }

  .navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1440px;
    height: 58px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 30, 20, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 35, 22, 0.07);
    backdrop-filter: blur(16px);
  }

  .navbar.scrolled {
    height: 54px;
    top: 8px;
    box-shadow: 0 14px 40px rgba(15, 35, 22, 0.12);
  }

  .nav-container {
    height: 100%;
  }
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-main);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--dark-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* HERO SECTION - Centered Editorial Composition */
.hero-section {
  padding: 50px 0 70px 0;
  position: relative;
  overflow: hidden;
  background-color: #F7FAF7;
}

.hero-blob {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at 50% 55%, rgba(32, 229, 27, 0.10) 0%, rgba(247, 250, 247, 0) 65%);
  z-index: -1;
  pointer-events: none;
}

.hero-centered {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.90);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #E1E8E2;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  box-shadow: 0 5px 15px rgba(20, 40, 25, 0.05);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-green);
}

.hero-title {
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #0D1310;
}

.hero-title span {
  color: #14B82C;
}

.hero-desc {
  font-size: 1.15rem;
  color: #66726C;
  margin: 0 auto 32px auto;
  max-width: 680px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* HOMEPAGE PRODUCT COMPOSITION GRID (Authoritative Layout Specification) */
.product-composition-container {
  position: relative;
  max-width: 1250px;
  margin: 18px auto 0 auto;
}

/* Background Soft Atmosphere Glow */
.product-composition-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 850px;
  height: 500px;
  background: radial-gradient(circle at 50% 50%, rgba(32, 229, 27, 0.11) 0%, rgba(32, 229, 27, 0.035) 48%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

/* SVG Connector Lines */
.composition-connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Handwritten Annotations (Desktop Only) */
.handwritten-note {
  display: none;
}

@media (min-width: 1200px) {
  .handwritten-note {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    font-size: 0.84rem;
    font-weight: 600;
    font-style: italic;
    color: #596C65;
    opacity: 0.85;
    pointer-events: none;
    z-index: 5;
    line-height: 1.35;
  }

  .handwritten-note.note-left {
    top: -24px;
    left: 40px;
    text-align: left;
  }

  .handwritten-note.note-right {
    bottom: 24px;
    right: 40px;
    text-align: right;
  }
}

.product-composition-grid {
  display: grid;
  grid-template-columns: 260px minmax(580px, 640px) 260px;
  gap: 18px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.side-category-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 3;
}

.category-card-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(12, 60, 30, 0.09);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 40, 25, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
}

@media (min-width: 1025px) {
  .category-card-item.card-offset-top {
    transform: translateY(-20px);
  }

  .category-card-item.card-offset-bottom {
    transform: translateY(14px);
  }

  .category-card-item.card-offset-top:hover {
    transform: translateY(-26px);
    box-shadow: 0 16px 36px rgba(15, 40, 25, 0.10);
    border-color: rgba(32, 229, 27, 0.40);
  }

  .category-card-item.card-offset-bottom:hover {
    transform: translateY(8px);
    box-shadow: 0 16px 36px rgba(15, 40, 25, 0.10);
    border-color: rgba(32, 229, 27, 0.40);
  }
}

.category-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: #EEF8F0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #063C2C;
}

.category-arrow-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #EDF7EF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #063C2C;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-card-item:hover .category-arrow-btn {
  background: #20E51B;
  color: #071008;
}

/* Central Product Preview Mockup */
.central-dashboard-mockup {
  background: #FFFFFF;
  border: 1px solid #DDE5DF;
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(15, 45, 25, 0.12), 0 4px 16px rgba(15, 30, 20, 0.04);
  overflow: hidden;
  position: relative;
  text-align: left;
  z-index: 3;
  width: 100%;
}

/* Floating Reward Badges around central preview */
.floating-reward-badge {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid #E1E8E2;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #14B82C;
  box-shadow: 0 8px 24px rgba(15, 60, 25, 0.12);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatBounce 4.5s ease-in-out infinite alternate;
}

.floating-reward-badge.badge-top-left {
  top: -18px;
  left: 245px;
  transform: rotate(-5deg);
}

.floating-reward-badge.badge-top-right {
  top: -12px;
  right: 245px;
  transform: rotate(4deg);
}

.floating-reward-badge.badge-bottom-right {
  bottom: 12px;
  right: 255px;
  transform: rotate(-3deg);
}

@keyframes floatBounce {
  0% {
    transform: translateY(0) rotate(-3deg);
  }

  100% {
    transform: translateY(-7px) rotate(3deg);
  }
}

/* ==========================================================================
   COMPLETE MOBILE RESPONSIVE HOMEPAGE ENGINE (360px - 768px)
   ========================================================================== */

/* Universal Overflow Protection */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  display: block;
  position: fixed;
  top: calc(54px + env(safe-area-inset-top, 0px) + 8px);
  left: 12px;
  right: 12px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border-strong, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
  padding: 16px;
  z-index: 9999;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-drawer-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-drawer-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary, #111713);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.18s ease;
  text-decoration: none !important;
}

.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--brand, #14B82C);
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .product-composition-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .central-dashboard-mockup {
    order: 1;
    max-width: 520px;
    margin: 0 auto;
  }

  .side-category-col {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .side-category-col:last-child {
    order: 3;
  }

  .floating-reward-badge {
    display: none;
  }

  .composition-connector-svg,
  .handwritten-note,
  .product-composition-glow {
    display: none !important;
  }
}

@media (max-width: 767px) {

  /* Header Full-Width Bar for Mobile */
  .navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    padding: max(8px, env(safe-area-inset-top, 0px)) 16px 6px 16px !important;
    margin: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .nav-container {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #0D1310;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding-top: 96px !important;
    padding-bottom: 40px !important;
  }

  .hero-tag {
    font-size: 11px !important;
    padding: 6px 12px !important;
    margin-bottom: 16px !important;
  }

  .hero-title {
    font-size: clamp(34px, 8.5vw, 44px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 14px !important;
  }

  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    max-width: 350px !important;
    margin-bottom: 22px !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto 20px auto !important;
    gap: 10px !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    height: 52px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.95rem !important;
  }

  /* Product Composition Mobile Layout */
  .product-composition-container {
    margin-top: 12px !important;
  }

  .product-composition-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .central-dashboard-mockup {
    max-width: 100% !important;
    border-radius: 18px !important;
  }

  .side-category-col {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .category-card-item {
    padding: 14px !important;
    border-radius: 14px !important;
    gap: 10px !important;
  }

  .category-icon-box {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 1.25rem !important;
    border-radius: 12px !important;
  }

  .category-arrow-btn {
    display: none !important;
  }

  /* Contained Sections Mobile Padding */
  section[style*="padding:0 0 100px 0"],
  section[style*="padding:40px 0 80px 0"] {
    padding-bottom: 48px !important;
  }

  div[style*="border-radius:28px"] {
    border-radius: 20px !important;
    padding: 24px 18px !important;
  }

  /* Active Campaigns Single Column */
  .campaigns-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Sponsor Ad-tech Split Layout Stacked */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 390px) {
  .side-category-col {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: 32px !important;
  }

  .category-card-item {
    padding: 12px 14px !important;
  }
}

/* HERO DASHBOARD PREVIEW WIDGET */
.hero-preview {
  position: relative;
}

.preview-mockup {
  background-color: var(--white);
  border: 2px solid var(--border-strong);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.floating-pill {
  position: absolute;
  animation: floatAnim 3.5s ease-in-out infinite alternate;
  z-index: 2;
}

.pill-1 {
  top: -15px;
  left: -25px;
  animation-delay: 0s;
}

.pill-2 {
  bottom: 30px;
  right: -25px;
  animation-delay: 1.2s;
}

.pill-3 {
  top: 45%;
  left: -35px;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }

  100% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* LIVE STATS SECTION */
.stats-section {
  padding: 40px 0;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 16px;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* HOW IT WORKS */
.steps-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background-color: var(--white);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 30px 24px;
  box-shadow: var(--shadow-press);
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background-color: var(--primary-green);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 20px;
  box-shadow: 0 2px 0 var(--border-strong);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CAMPAIGN CARDS GRID */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.campaign-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  /* 24px outer radius (Image 3 rule) */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.campaign-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.campaign-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.sponsor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sponsor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  border: 2px solid var(--primary-green);
  flex-shrink: 0;
}

.campaign-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-main);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #ededed;
}

.campaign-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  gap: 10px;
}

/* Filter Chips (Qazan Page Fix) */
.earn-filter-chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 10px 2px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  max-width: 100% !important;
}

.earn-filter-chips::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.earn-filter-chips .btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border-radius: var(--radius-pill) !important;
  min-height: 40px !important;
  padding: 8px 18px !important;
  font-size: 0.88rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.earn-filter-chips .btn-primary {
  background: var(--primary-green) !important;
  color: var(--black) !important;
  border: 2px solid var(--border-strong) !important;
  box-shadow: 0 4px 12px rgba(32, 229, 27, 0.3) !important;
}

.earn-filter-chips .btn-outline {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: none !important;
}

.search-card-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-sort-select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.88rem;
  background: #fff;
  outline: none;
  cursor: pointer;
  min-height: 44px;
}

/* STATUS BADGES */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-active {
  background-color: #E6F9E8;
  color: var(--dark-green);
}

.status-pending {
  background-color: #FFF8E6;
  color: #B27B00;
}

.status-rejected {
  background-color: #FDE8E8;
  color: var(--danger);
}

.status-completed {
  background-color: #ECECEC;
  color: #555555;
}

/* FORMS & INPUT HEIGHTS (Image 3 Rule: 44px+ height, 16px vertical spacing) */
.form-group {
  margin-bottom: 16px;
  /* Image 3 Rule: 16px spacing between fields */
  position: relative;
}

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--black);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  /* Image 3 Rule: 44px+ input height for mobile & desktop */
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--black);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.08);
}

/* Image 2 Rule: Inline Validation & Friendly Error Feedback */
.form-input.is-invalid,
.form-select.is-invalid,
.form-group.has-error .form-input {
  border-color: var(--danger) !important;
  background-color: rgba(255, 94, 104, 0.12) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 94, 104, 0.2) !important;
}

.form-input.is-valid,
.form-select.is-valid,
.form-group.has-success .form-input {
  border-color: var(--success) !important;
  background-color: rgba(32, 214, 90, 0.12) !important;
  color: var(--text-primary) !important;
}

/* Chrome / Safari / Edge Autofill Dark Mode Override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-helper-error,
.invalid-feedback {
  font-size: 0.82rem;
  /* 13px (Image 2 Rule: 12-14px helper text) */
  color: var(--danger);
  font-weight: 700;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

.form-helper-text {
  font-size: 0.82rem;
  /* 13px */
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 5px;
}

/* Image 1 Rule: Visual Balance & Weight Utilities */
.grid-symmetrical {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.grid-asymmetrical {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 768px) {

  .grid-symmetrical,
  .grid-asymmetrical {
    grid-template-columns: 1fr !important;
  }
}

/* AUTH PAGES */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background-color: var(--white);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-press);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header img {
  height: 52px;
  margin: 0 auto 16px auto;
}

/* DASHBOARD CABIN LAYOUT FOR /user (3-Tier Responsive Architecture: Desktop >=1200px, Tablet 768-1199px, Mobile <=767px) */
.dashboard-layout {
  display: flex;
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
  min-height: calc(100vh - 140px);
  align-items: flex-start;
}

.sidebar {
  width: 250px;
  min-width: 250px;
  flex-shrink: 0;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 35, 22, 0.05);
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1200px) {
  .sidebar {
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 136px);
    overflow-y: auto;
    margin-top: 0;
    margin-bottom: 32px;
  }
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}

.sidebar-item a i {
  color: var(--brand);
  font-size: 1.2rem;
  transition: color 0.18s ease;
}

.sidebar-item a:hover {
  background-color: var(--surface-2);
  color: var(--brand);
}

.sidebar-item.active a {
  background-color: var(--brand) !important;
  color: #071008 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(25, 213, 56, 0.3) !important;
}

.sidebar-item.active a i,
.sidebar-item.active a span {
  color: #071008 !important;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 60px 0;
}

/* ==========================================================================
   AUTHENTICATED USER DASHBOARD COMPONENTS
   ========================================================================== */

/* Top Bar Greeting & Real Asset Chips */
.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-greeting {
  min-width: 0;
}

.dashboard-greeting-title {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  line-height: 1.2;
}

.greeting-emoji {
  font-size: 1.4rem;
  display: inline-block;
}

.dashboard-greeting-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

/* Asset Summary Chips (Desktop: flex inline / Mobile: 2x2 grid) */
.dashboard-asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.asset-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-press);
  box-sizing: border-box;
  min-width: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.asset-chip:hover {
  border-color: var(--border-strong);
}

.asset-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  flex-shrink: 0;
}

.chip-icon-azn {
  background: rgba(32, 229, 27, 0.12);
  color: var(--brand);
}

.chip-icon-coin {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.chip-icon-ruby {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.chip-icon-level {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.asset-chip-info {
  min-width: 0;
  overflow: hidden;
}

.asset-chip-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-chip-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.val-azn {
  color: var(--text-primary);
}

.val-coin {
  color: #facc15;
}

.val-ruby {
  color: #a855f7;
}

.val-level {
  color: var(--text-primary);
}

/* Dashboard Two-Column Grid */
.user-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-col-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-col-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Card General Standardized Styles */
.user-dashboard-grid .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: static;
  transform: none;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.card-sub-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.card-main-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 2px;
  margin-bottom: 0;
}

.card-section-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.card-section-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 2px;
  margin-bottom: 0;
}

.see-all-link {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.see-all-link:hover {
  text-decoration: underline;
}

/* Progress Bars */
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  box-sizing: border-box;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fill-brand {
  background: var(--brand);
}

.fill-gold {
  background: #eab308;
}

.fill-level {
  background: linear-gradient(90deg, #38bdf8, var(--brand));
}

/* Announcement Cards */
.announcement-card {
  background: linear-gradient(135deg, rgba(32, 229, 27, 0.08), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(32, 229, 27, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 220px;
}

.announcement-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(32, 229, 27, 0.15);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.announcement-text {
  min-width: 0;
}

.announcement-title {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.announcement-msg {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.announcement-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.announcement-card.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
}

.btn-brand-cta {
  background: var(--brand);
  color: #0b0f19 !important;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-dismiss-ann {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.btn-dismiss-ann:hover {
  color: var(--text-primary);
}

/* Returning User Banner */
.returning-banner {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.returning-content {
  min-width: 0;
}

.returning-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.returning-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.btn-returning-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Next Best Action Card */
.next-action-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative !important;
  overflow: hidden;
  box-sizing: border-box;
}

.next-action-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.next-action-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 220px;
}

.next-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.next-action-body {
  min-width: 0;
}

.next-action-top-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.next-action-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
}

.next-action-reward {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.next-action-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.next-action-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.btn-next-action-cta {
  background: var(--brand);
  color: #0b0f19 !important;
  font-weight: 900;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Onboarding Checklist */
.onboarding-progress-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.onboarding-step-item {
  text-decoration: none;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.onboarding-step-item.completed {
  border-color: rgba(32, 229, 27, 0.25);
}

.step-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.step-check-icon.checked {
  background: var(--brand);
  color: #0b0f19;
}

.step-item-body {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.step-item-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Weekly Challenge */
.weekly-challenge-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(245, 158, 11, 0.04));
  border-color: rgba(234, 179, 8, 0.25);
}

.weekly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.weekly-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.weekly-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.weekly-title {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
}

.weekly-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.weekly-reward-badge {
  font-size: 0.78rem;
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.weekly-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weekly-progress-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 800;
  white-space: nowrap;
}

/* Daily Missions */
.missions-counter-badge {
  font-size: 0.78rem;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-item-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.mission-item-card.done {
  border-color: rgba(32, 229, 27, 0.3);
}

.mission-item-info {
  flex: 1;
  min-width: 200px;
}

.mission-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mission-title {
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.mission-badge-done {
  font-size: 0.68rem;
  background: rgba(32, 229, 27, 0.15);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.mission-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.mission-progress-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-progress-count {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.mission-rewards-row {
  display: flex;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  flex-wrap: wrap;
}

.reward-chip-coin {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  padding: 4px 8px;
  border-radius: 6px;
}

.reward-chip-ruby {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  padding: 4px 8px;
  border-radius: 6px;
}

.reward-chip-xp {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Campaigns Grid */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.campaign-card-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.campaign-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.campaign-category-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.campaign-sponsor-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.campaign-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-bottom-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.campaign-reward-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.campaign-reward-azn {
  font-weight: 900;
  color: var(--brand);
  font-size: 1.02rem;
}

.campaign-reward-xp {
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.btn-campaign-cta {
  background: var(--brand);
  color: #0b0f19 !important;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.achievement-card-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
}

.achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.achievement-icon.unlocked {
  background: rgba(234, 179, 8, 0.18);
  color: #eab308;
}

.achievement-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.achievement-title {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--text-primary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.achievement-status {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-unlocked {
  color: var(--brand);
  font-weight: 700;
}

/* Level Progress Card */
.level-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.level-card-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 2px;
}

.level-name {
  font-size: 0.84rem;
  color: #38bdf8;
  font-weight: 700;
}

.level-pct-badge {
  font-size: 1.15rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 900;
}

.level-progress-track {
  height: 8px;
  margin: 10px 0;
}

.level-xp-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  gap: 8px;
  flex-wrap: wrap;
}

.val-primary {
  color: var(--text-primary);
}

.val-level-target {
  color: #38bdf8;
}

.val-max-level {
  color: var(--brand);
  font-weight: 700;
}

/* Streak Card */
.streak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.streak-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-fire-emoji {
  font-size: 1.8rem;
}

.streak-count-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-primary);
}

.streak-record-badge {
  font-size: 0.74rem;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.streak-dots-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-top: 8px;
  width: 100%;
}

.streak-dot-item {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.streak-dot-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.streak-dot-circle.filled {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.streak-dot-day {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Referral Card */
.referral-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.referral-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 2px;
}

.referral-history-link {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.referral-history-link:hover {
  text-decoration: underline;
}

.referral-milestone-box {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.referral-friends-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 8px;
}

.referral-label {
  color: var(--text-secondary);
}

.referral-friends-val {
  color: var(--brand);
  font-weight: 800;
}

.referral-next-info {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.referral-ruby-reward {
  color: #a855f7;
}

.referral-copy-row {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.referral-copy-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-copy-ref {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chests Card */
.chests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.chests-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.chests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chest-list-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  gap: 8px;
  box-sizing: border-box;
}

.chest-item-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.chest-item-cost {
  font-size: 0.74rem;
  font-weight: 700;
}

.val-coin {
  color: #facc15;
}

.val-ruby {
  color: #a855f7;
}

.chest-status-badge {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.chest-status-badge.can-open {
  background: rgba(32, 229, 27, 0.15);
  color: var(--brand);
}

.chest-status-badge.locked {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Activity Card */
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}

.activity-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.activity-history-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.activity-item-row:last-child {
  border-bottom: none;
}

.activity-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.activity-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.activity-item-text {
  min-width: 0;
  flex: 1;
}

.activity-desc {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-primary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.activity-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.activity-amount {
  font-weight: 900;
  font-size: 0.88rem;
  white-space: nowrap;
}

.activity-amount.credit {
  color: var(--brand);
}

.activity-amount.debit {
  color: #ef4444;
}

/* Empty States */
.empty-state-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px dashed var(--border);
  box-sizing: border-box;
}

.empty-state-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  display: inline-block;
}

.empty-state-title {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.empty-state-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   BREAKPOINTS: TABLET (768px - 1199px)
   ========================================================================== */
@media (max-width: 1199px) {
  .sidebar {
    display: none !important;
  }

  .dashboard-layout {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .dashboard-main {
    padding: 16px 0 96px 0 !important;
  }

  .mobile-app-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .user-dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .user-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ==========================================================================
   BREAKPOINTS: MOBILE (<= 767px) - CRITICAL 1-COLUMN ARCHITECTURE
   ========================================================================== */
@media (max-width: 767px) {
  .dashboard-layout {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }

  .dashboard-main {
    padding: 14px 0 calc(90px + env(safe-area-inset-bottom, 0px)) 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  /* Top Bar Greeting & 2x2 Asset Grid */
  .dashboard-top-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  .dashboard-greeting-title {
    font-size: 1.55rem !important;
  }

  .dashboard-asset-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .asset-chip {
    padding: 10px 12px !important;
    width: 100% !important;
    border-radius: 12px !important;
  }

  .asset-chip-val {
    font-size: 0.96rem !important;
  }

  /* Flatten Columns into a True Single-Column Flow */
  .dashboard-col-main,
  .dashboard-col-side {
    display: contents !important;
  }

  .user-dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* EXACT TARGET MOBILE UX ORDER */
  .dash-card-level {
    order: 1 !important;
  }

  .dash-card-next-action {
    order: 2 !important;
  }

  .dash-card-announcements {
    order: 3 !important;
  }

  .dash-card-returning {
    order: 4 !important;
  }

  .dash-card-streak {
    order: 5 !important;
  }

  .dash-card-onboarding {
    order: 6 !important;
  }

  .dash-card-weekly {
    order: 7 !important;
  }

  .dash-card-missions {
    order: 8 !important;
  }

  .dash-card-campaigns {
    order: 9 !important;
  }

  .dash-card-referral {
    order: 10 !important;
  }

  .dash-card-chests {
    order: 11 !important;
  }

  .dash-card-achievements {
    order: 12 !important;
  }

  .dash-card-activity {
    order: 13 !important;
  }

  /* Standardize Mobile Card Padding */
  .user-dashboard-grid .card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  /* Next Best Action Mobile CTA */
  .next-action-card {
    padding: 16px !important;
  }

  .next-action-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .next-action-cta-wrap {
    width: 100% !important;
  }

  .btn-next-action-cta {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 11px 16px !important;
  }

  /* Single Column Grids on Mobile */
  .onboarding-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .campaigns-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .achievements-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Announcements Mobile */
  .announcement-card {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .announcement-actions {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .btn-brand-cta {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Returning Banner Mobile */
  .returning-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .btn-returning-cta {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   BREAKPOINTS: SMALL MOBILE (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .dashboard-layout {
    padding: 0 10px !important;
  }

  .dashboard-greeting-title {
    font-size: 1.4rem !important;
  }

  .dashboard-greeting-sub {
    font-size: 0.82rem !important;
  }

  .dashboard-asset-grid {
    gap: 8px !important;
  }

  .asset-chip {
    padding: 8px 10px !important;
    gap: 8px !important;
  }

  .asset-chip-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
  }

  .asset-chip-label {
    font-size: 0.64rem !important;
  }

  .asset-chip-val {
    font-size: 0.88rem !important;
  }

  .user-dashboard-grid .card {
    padding: 14px !important;
    border-radius: 12px !important;
  }
}


/* TABLE RESPONSIVE WRAPPER */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
}

table {
  max-width: 100%;
}

/* NATIVE MOBILE APP NAVIGATION SYSTEM */
.mobile-app-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  z-index: 999999 !important;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px)) 6px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
  .mobile-app-nav {
    display: flex !important;
  }
}

.mobile-app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  padding: 6px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.mobile-app-nav-item i {
  font-size: 1.45rem !important;
  line-height: 1 !important;
  display: block !important;
  margin-bottom: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-app-nav-item span {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.1;
  white-space: nowrap;
}

.mobile-app-nav-item:hover {
  color: var(--black);
}

.mobile-app-nav-item:active {
  transform: scale(0.92);
}

/* Image 1: Active Bottom Nav Item Pill Styling */
.mobile-app-nav-item.active {
  color: #108e1a;
  background: rgba(32, 229, 27, 0.14);
  padding: 6px 8px;
  font-weight: 800;
}

.mobile-app-nav-item.active i {
  color: #108e1a !important;
  filter: drop-shadow(0 0 6px rgba(32, 229, 27, 0.45));
  transform: translateY(-1px);
}

.mobile-app-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-app-nav-center-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-green);
  color: var(--black);
  border: 2px solid var(--border-strong);
  box-shadow: 0 4px 0 var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-16px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-app-nav-center:active .mobile-app-nav-center-badge {
  transform: translateY(-12px);
  box-shadow: 0 1px 0 var(--border-strong);
}

.mobile-app-nav-center-badge.active {
  background: var(--secondary-green);
}

/* MOBILE APP DRAWER SHEET */
.mobile-app-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999998 !important;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-app-sheet-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-app-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 2px solid var(--border-strong);
  border-left: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  padding: 16px 20px calc(42px + env(safe-area-inset-bottom, 0px)) 20px !important;
  z-index: 9999999 !important;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-app-sheet.active {
  transform: translateY(0);
}

.mobile-app-sheet-handle-container {
  display: flex;
  justify-content: center;
  padding: 4px 0 16px 0;
  cursor: pointer;
}

.mobile-app-sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: #d0d0d0;
}

.mobile-app-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.mobile-app-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-green);
}

.mobile-app-user-name {
  font-weight: 900;
  font-size: 1rem;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-app-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-app-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mobile-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.mobile-app-tile:active {
  transform: scale(0.95);
  background: var(--bg-secondary);
}

.mobile-app-tile.active {
  border: 2px solid var(--border-strong);
  background: #fff;
  box-shadow: 0 3px 0 var(--border-strong);
}

.mobile-app-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.mobile-app-logout-btn {
  color: #dc2626;
  border: 1.5px solid #fca5a5;
  background: #fef2f2;
  font-weight: 800;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
}

.mobile-app-logout-btn:hover {
  background: #fde8e8;
  color: #b91c1c;
}

.tile-icon-withdraw {
  background: #e8eaf6;
  color: #283593;
}

.tile-icon-history {
  background: #efebe9;
  color: #4e342e;
}

.tile-icon-referral {
  background: #fbe9e7;
  color: #d84315;
}

.tile-icon-links {
  background: #e8f5e9;
  color: #2e7d32;
}

.tile-icon-notifications {
  background: #fff8e1;
  color: #f57f17;
}

.tile-icon-activity {
  background: #e1f5fe;
  color: #0277bd;
}

.tile-icon-support {
  background: #f1f8e9;
  color: #558b2f;
}

.tile-icon-profile {
  background: #ede7f6;
  color: #4527a0;
}

.tile-icon-security {
  background: #eceff1;
  color: #37474f;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 9999999 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 420px;
}

.toast {
  pointer-events: auto;
  background-color: #1c1c1e;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  background-color: #103B1D !important;
  border-color: #14B82C !important;
  color: #FFFFFF !important;
}

.toast-danger,
.toast-error {
  background-color: #450A0A !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
}

.toast-warning {
  background-color: #3F2C08 !important;
  border-color: #F59E0B !important;
  color: #FFFFFF !important;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 82px !important;
    left: 14px !important;
    right: 14px !important;
    max-width: none !important;
    align-items: center !important;
  }

  .toast {
    width: auto !important;
    max-width: 90vw !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
  }
}

/* FOOTER */
.site-footer {
  background-color: #1e1e1e;
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 32px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 42px;
  width: auto;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #20E51B;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}

.footer-bottom a:hover {
  color: #20E51B;
}

/* RESPONSIVE DESIGN FOR FOOTER */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-actions>a {
    display: none;
  }

  .notif-wrapper {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-bottom: 84px;
  }

  /* Collapse inline 2-column or multi-column grids into single column cards on mobile */
  .dashboard-main [style*="grid-template-columns:1.2fr 0.8fr"],
  .dashboard-main [style*="grid-template-columns:1.3fr 0.7fr"],
  .dashboard-main [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 20px !important;
  }

  /* Mobile User Dashboard Optimization */
  .user-quick-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .user-quick-stats .card {
    padding: 12px 6px !important;
    border-radius: 16px !important;
  }

  .user-quick-stats .stat-label {
    font-size: 0.68rem !important;
    letter-spacing: 0 !important;
  }

  .user-quick-stats .stat-value {
    font-size: 1.05rem !important;
  }

  .wallet-card-black {
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }

  .wallet-amount {
    font-size: 2.1rem !important;
  }

  /* Mobile Earn Page Optimization */
  .search-card-inner {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .search-sort-wrapper {
    width: 100% !important;
  }

  .search-sort-select {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .mobile-app-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ==========================================================================
   DESIGN SYSTEM RULES (Image 1 - Image 5)
   ========================================================================== */

/* Image 2: Profile & Grouped List Cards */
.profile-header-card {
  background: var(--white);
  border-radius: var(--radius-card);
  /* 24px */
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.profile-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-green);
  flex-shrink: 0;
}

.profile-user-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
}

.profile-user-email {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.group-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 20px 4px 8px 4px;
}

/* Rule 3 & Rule 2: Grouped Cards adhering to Outer radius = Inner radius + Padding */
.grouped-card {
  background: var(--white);
  border-radius: var(--radius-card);
  /* 24px outer radius */
  padding: 8px;
  /* 8px padding */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.grouped-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  /* 16px inner radius (24 = 16 + 8) */
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.15s ease;
  user-select: none;
}

.grouped-list-item:not(:last-child) {
  border-bottom: 1px solid #f2f2f2;
}

.grouped-list-item:hover {
  background: var(--bg-main);
}

.grouped-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-icon-title);
  /* Rule 5: 8px icon to title spacing */
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
}

.grouped-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--black);
}

.grouped-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.grouped-item-arrow {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Rule 4: Simple Search UI */
.search-card-simple {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.search-input-wrapper-simple {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input-simple {
  width: 100%;
  padding: 14px 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  background: var(--surface-2);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input-simple::placeholder {
  color: var(--text-muted);
}

.search-input-simple:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(25, 213, 56, 0.2);
}

.search-icon-left-simple {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1.25rem;
  pointer-events: none;
}

.search-icon-right-simple {
  position: absolute;
  right: 16px;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.search-sort-select {
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  background: var(--surface-2);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.search-sort-select:focus {
  border-color: var(--brand);
}

/* Rule 5: Vertical Hierarchy Spacing Rules */
.spacing-icon-title {
  margin-bottom: var(--space-icon-title);
}

.spacing-title-body {
  margin-bottom: var(--space-title-body);
}

.spacing-body-cta {
  margin-top: var(--space-body-cta);
}

/* ==========================================================================
   2x2 GRID KPI LAYOUT (Screenshot 2 Rule)
   ========================================================================== */
.wallet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.wallet-kpi-card {
  padding: 18px 16px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-card-black .kpi-label {
  color: #8e8e8e;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 900;
  margin-top: 6px;
  line-height: 1.2;
}

.kpi-value span {
  font-size: 0.85rem;
  font-weight: 700;
}

.kpi-value.warning {
  color: #e67e22;
}

.kpi-value.success {
  color: var(--dark-green);
}

.kpi-value.dark {
  color: var(--black);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-sub.green {
  color: var(--primary-green);
  font-weight: 700;
}

@media (max-width: 480px) {
  .wallet-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .wallet-kpi-card {
    padding: 14px 12px !important;
    border-radius: 18px !important;
  }

  .kpi-label {
    font-size: 0.65rem !important;
    letter-spacing: 0 !important;
  }

  .kpi-value {
    font-size: 1.2rem !important;
  }

  .kpi-value span {
    font-size: 0.75rem !important;
  }

  .kpi-sub {
    font-size: 0.68rem !important;
  }
}

/* ==================================================
   LEVEL 8 — PWA, Push Notifications & Mobile Polish
   ================================================== */

/* 1. Safe Area Inset Support */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

body.pwa-standalone {
  padding-top: var(--sat);
}

/* Page bottom padding for bottom nav */
.dashboard-main,
main.container,
.page-wrapper {
  padding-bottom: calc(85px + var(--sab)) !important;
}

/* 2. Mobile Native Page Entry Transition */
@keyframes pwaPageFadeIn {
  from {
    opacity: 0.85;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main,
.dashboard-layout,
.hero {
  animation: pwaPageFadeIn 180ms ease-out forwards;
}

/* 3. Skeleton Loading Placeholders */
.skeleton {
  background: linear-gradient(90deg, #edf2f7 25%, #e2e8f0 50%, #edf2f7 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite ease-in-out;
  border-radius: 8px;
  display: inline-block;
}

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

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  width: 80%;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 120px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
}

/* 4. PWA Custom Install Prompt Card */
.pwa-install-card {
  position: fixed;
  bottom: calc(75px + var(--sab));
  left: 16px;
  right: 16px;
  z-index: 9990;
  max-width: 440px;
  margin: 0 auto;
  animation: pwaSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pwa-install-card-inner {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(18, 171, 47, 0.2);
  position: relative;
}

.pwa-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
}

.pwa-install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pwa-install-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pwa-install-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a202c;
  line-height: 1.2;
}

.pwa-install-sub {
  font-size: 0.82rem;
  color: #718096;
  margin-top: 2px;
}

.pwa-install-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.85rem;
  color: #4a5568;
}

.pwa-install-features li {
  margin-bottom: 4px;
}

.pwa-install-actions {
  display: flex;
  gap: 10px;
}

.pwa-btn-primary {
  background: #12AB2F;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 171, 47, 0.25);
  transition: all 0.2s;
}

.pwa-btn-primary:active {
  transform: scale(0.97);
}

.pwa-btn-secondary {
  background: #edf2f7;
  color: #4a5568;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* 5. PWA Toast Notifications */
.pwa-toast {
  position: fixed;
  bottom: calc(85px + var(--sab));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #1a202c;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

.pwa-toast-success {
  background: #12AB2F;
}

.pwa-toast-warning {
  background: #dd6b20;
}

.pwa-toast-btn {
  background: #ffffff;
  color: #12AB2F;
  border: none;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

/* 6. PWA Modals (iOS & Pre-permission) */
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pwa-modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: pwaScaleUp 200ms ease-out;
}

@keyframes pwaScaleUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pwa-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #2d3748;
}

.pwa-step-num {
  background: rgba(18, 171, 47, 0.15);
  color: #12AB2F;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pwa-push-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(18, 171, 47, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* 7. Beta Feedback Floating Widget Responsive Positioning */
.beta-feedback-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9940;
}

.beta-feedback-btn {
  background: #103B1D;
  color: #20E51B;
  border: 1px solid #20E51B;
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.beta-feedback-btn:hover {
  transform: scale(1.05);
  background: #12AB2F;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .beta-feedback-widget {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    z-index: 9940 !important;
  }

  .beta-feedback-text {
    display: none !important;
  }

  .beta-feedback-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

/* 8. Site header stack — homepage float nav + global navbar wrapper */
.site-header-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  margin-bottom: 16px;
}

/* ==========================================================================
   ENHANCED MOBILE RESPONSIVE SUITE (iOS / Android / Tablets / Mobile)
   ========================================================================== */

/* Touch Scroll Utilities */
.settings-tabs-strip,
.tabs-header,
.scrollable-x {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.settings-tabs-strip::-webkit-scrollbar,
.tabs-header::-webkit-scrollbar,
.scrollable-x::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 768px) {
  body {
    padding-top: 76px !important;
  }

  .site-footer {
    padding-bottom: 96px !important;
  }

  /* Prevent iOS Safari 16px auto-zoom on input focus */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Responsive Cards */
  .card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }

  /* Forms & Settings Cards */
  .form-row,
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Full Width Action Buttons on Mobile */
  .btn-mobile-full,
  .form-actions .btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Modal Responsive Scaling */
  .modal-card,
  #onboarding-modal>div {
    max-width: 92vw !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
  }

  /* Tables */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 480px) {
  .dashboard-main {
    padding: 12px 10px 100px 10px !important;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  .header {
    padding: 10px 14px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   SETTINGS PAGES MOBILE RESPONSIVE SUITE
   ========================================================================== */

.settings-tabs-strip {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 12px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.settings-tabs-strip::-webkit-scrollbar {
  display: none !important;
}

.settings-tabs-strip .btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 8px 14px !important;
  font-size: 0.85rem !important;
  border-radius: 12px !important;
}

.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-2col-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .profile-header-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 18px 16px !important;
    gap: 12px !important;
  }

  .profile-header-card .profile-user-email {
    justify-content: center !important;
  }

  .profile-header-card .reward-badge-lg {
    width: 100% !important;
    justify-content: center !important;
  }

  .settings-checkbox-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .settings-checkbox-item input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px !important;
  }

  .push-device-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .push-device-row .btn {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .settings-tabs-strip {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .settings-tabs-strip .btn {
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
  }

  .otp-input-box {
    width: 46px !important;
    height: 52px !important;
    font-size: 1.4rem !important;
  }

  .grouped-list-item {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  .grouped-item-right {
    margin-left: auto !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   GLOBAL DARK THEME ADAPTABILITY RULES
   ========================================================================== */

[data-theme="dark"],
[data-theme="dark"] body,
[data-theme="dark"] .dashboard-layout,
[data-theme="dark"] .dashboard-main,
[data-theme="dark"] main,
[data-theme="dark"] .page-wrapper,
[data-theme="dark"] .container {
  background-color: #141416 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #FFFFFF !important;
}

[data-theme="dark"] p {
  color: #B0B8B3 !important;
}

[data-theme="dark"] .header,
[data-theme="dark"] .navbar {
  background: #141416 !important;
  background-color: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  overflow: visible !important;
}

[data-theme="dark"] .nav-link {
  color: #FFFFFF !important;
}

[data-theme="dark"] .nav-link:hover {
  color: var(--brand) !important;
}

[data-theme="dark"] .mobile-drawer-panel {
  background: #18181B !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .mobile-drawer-link {
  color: #FFFFFF !important;
}

[data-theme="dark"] .mobile-drawer-link:hover,
[data-theme="dark"] .mobile-drawer-link:active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--brand, #20E51B) !important;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] aside.sidebar {
  background: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
}

[data-theme="dark"] .sidebar-item a,
[data-theme="dark"] .sidebar-menu li a {
  color: var(--text-secondary, #A0A0A0);
}

[data-theme="dark"] .sidebar-item a i,
[data-theme="dark"] .sidebar-menu li a i {
  color: var(--brand);
}

[data-theme="dark"] .sidebar-item a:hover,
[data-theme="dark"] .sidebar-menu li a:hover {
  background-color: var(--surface-2);
  color: #FFFFFF;
}

[data-theme="dark"] .sidebar-item.active a,
[data-theme="dark"] .sidebar-menu li.active a {
  background-color: var(--brand) !important;
  color: #050505 !important;
  box-shadow: 0 4px 14px rgba(32, 229, 27, 0.32) !important;
}

[data-theme="dark"] .sidebar-item.active a i,
[data-theme="dark"] .sidebar-item.active a span,
[data-theme="dark"] .sidebar-menu li.active a i,
[data-theme="dark"] .sidebar-menu li.active a span {
  color: #050505 !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .grouped-card,
[data-theme="dark"] .modal-card,
[data-theme="dark"] #otp-modal,
[data-theme="dark"] .onboarding-card,
[data-theme="dark"] .search-card-simple,
[data-theme="dark"] .campaign-card {
  background: var(--surface) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .dashboard-balance-card,
[data-theme="dark"] .wallet-balance-card {
  background: linear-gradient(135deg, #063B2B 0%, #0A291D 100%) !important;
  border-color: rgba(25, 213, 56, 0.25) !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] select.form-input,
[data-theme="dark"] textarea.form-input,
[data-theme="dark"] .search-input-simple,
[data-theme="dark"] .search-sort-select {
  background: var(--surface-2) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .search-input-simple::placeholder {
  color: var(--text-muted) !important;
}

[data-theme="dark"] table {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] th {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-strong) !important;
}

[data-theme="dark"] td {
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-app-nav {
  background: rgba(18, 18, 20, 0.96) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .mobile-app-nav-item {
  color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .mobile-app-nav-item i {
  color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .mobile-app-nav-item:hover {
  color: #FFFFFF !important;
}

[data-theme="dark"] .mobile-app-nav-item:hover i {
  color: #FFFFFF !important;
}

[data-theme="dark"] .mobile-app-nav-item.active {
  color: #20E51B !important;
  background: rgba(32, 229, 27, 0.16) !important;
}

[data-theme="dark"] .mobile-app-nav-item.active i {
  color: #20E51B !important;
  filter: drop-shadow(0 0 6px rgba(32, 229, 27, 0.5)) !important;
}

[data-theme="dark"] .mobile-app-nav-item.active span {
  color: #20E51B !important;
}

[data-theme="dark"] .mobile-app-sheet-backdrop {
  background: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .mobile-app-sheet {
  background: #1C1C1E !important;
  border-top: 2px solid rgba(255, 255, 255, 0.15) !important;
  border-left: 2px solid rgba(255, 255, 255, 0.15) !important;
  border-right: 2px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .mobile-app-sheet-handle {
  background: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .mobile-app-user-header {
  background: #28282B !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .mobile-app-user-name {
  color: #FFFFFF !important;
}

[data-theme="dark"] .mobile-app-user-email {
  color: rgba(255, 255, 255, 0.65) !important;
}

[data-theme="dark"] .mobile-app-tile {
  background: #262629 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .mobile-app-tile:active {
  background: #323236 !important;
}

[data-theme="dark"] .mobile-app-tile.active {
  background: #2C2C30 !important;
  border: 2px solid #20E51B !important;
  box-shadow: 0 4px 14px rgba(32, 229, 27, 0.25) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .tile-icon-withdraw {
  background: rgba(40, 53, 147, 0.35) !important;
  color: #9fa8da !important;
}

[data-theme="dark"] .tile-icon-history {
  background: rgba(121, 85, 72, 0.35) !important;
  color: #bcaaa4 !important;
}

[data-theme="dark"] .tile-icon-referral {
  background: rgba(216, 67, 21, 0.35) !important;
  color: #ff8a65 !important;
}

[data-theme="dark"] .tile-icon-links {
  background: rgba(46, 125, 50, 0.35) !important;
  color: #81c784 !important;
}

[data-theme="dark"] .tile-icon-notifications {
  background: rgba(245, 127, 23, 0.35) !important;
  color: #ffd54f !important;
}

[data-theme="dark"] .tile-icon-activity {
  background: rgba(2, 119, 189, 0.35) !important;
  color: #64b5f6 !important;
}

[data-theme="dark"] .tile-icon-support {
  background: rgba(85, 139, 47, 0.35) !important;
  color: #aed581 !important;
}

[data-theme="dark"] .tile-icon-profile {
  background: rgba(69, 39, 160, 0.35) !important;
  color: #b388ff !important;
}

[data-theme="dark"] .tile-icon-security {
  background: rgba(55, 71, 79, 0.35) !important;
  color: #cfd8dc !important;
}

[data-theme="dark"] .mobile-app-tile.active .mobile-app-tile-icon {
  background: rgba(32, 229, 27, 0.2) !important;
  color: #20E51B !important;
}

[data-theme="dark"] .mobile-app-logout-btn {
  background: rgba(220, 38, 38, 0.15) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
  color: #FF6B6B !important;
}

[data-theme="dark"] .mobile-app-logout-btn:hover {
  background: rgba(220, 38, 38, 0.25) !important;
  color: #FF8787 !important;
}

[data-theme="dark"] .dropdown-menu {
  background: var(--surface) !important;
  border-color: var(--border-strong) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--surface-2) !important;
}

[data-theme="dark"] .status-badge.status-active {
  background: rgba(32, 229, 27, 0.15) !important;
  color: #20E51B !important;
}

[data-theme="dark"] .status-badge.status-pending {
  background: rgba(242, 189, 75, 0.15) !important;
  color: #F2BD4B !important;
}

[data-theme="dark"] .status-badge.status-rejected {
  background: rgba(255, 94, 104, 0.15) !important;
  color: #FF5E68 !important;
}

.theme-segmented-control .btn {
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.theme-segmented-control .btn.active {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   DASHBOARD SCROLLBAR HIDING & RESPONSIVE FIXES
   ========================================================================== */

/* 1. Hide visual scrollbars globally & in dashboard (keeping smooth scroll functional) */
html,
body,
.dashboard-layout,
.dashboard-main,
.sidebar,
.user-sidebar,
.table-responsive,
.recent-tx-list,
.campaigns-grid,
.nav-list,
.mobile-drawer-content,
.faq-list,
div,
main,
aside,
section,
* {
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* IE 10+ / Edge */
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

*::-webkit-scrollbar-track {
  background: transparent !important;
}

*::-webkit-scrollbar-thumb {
  background: transparent !important;
}

/* 2. Responsive Grid for Activation Steps */
.activation-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .activation-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 420px) {
  .activation-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

.card-press:not(#notif-dropdown) {
  max-width: 100% !important;
}

@media (max-width: 480px) {
  .wallet-card-black {
    padding: 16px 12px !important;
  }

  .wallet-amount {
    font-size: 1.8rem !important;
  }
}

/* ==========================================================================
   MOBILE HEADER CONTROLS & 3-LINES HAMBURGER ICON COLOR
   ========================================================================== */

.mobile-header-controls {
  display: none;
  align-items: center;
  gap: 6px;
}

.mobile-header-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  transform: none !important;
  flex-shrink: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-primary, #111713) !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-header-btn:hover,
.mobile-header-btn:active {
  box-shadow: none !important;
  transform: scale(0.95) !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

[data-theme="dark"] .mobile-header-btn {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

[data-theme="dark"] .mobile-header-btn:hover,
[data-theme="dark"] .mobile-header-btn:active {
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.nav-toggle {
  color: var(--text-primary, #FFFFFF) !important;
  stroke: var(--text-primary, #FFFFFF) !important;
}

.nav-toggle svg,
.nav-toggle line {
  stroke: currentColor !important;
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .nav-toggle svg,
[data-theme="dark"] .nav-toggle line {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

[data-theme="light"] .nav-toggle,
[data-theme="light"] .nav-toggle svg,
[data-theme="light"] .nav-toggle line {
  color: #111713 !important;
  stroke: #111713 !important;
}

/* ==========================================================================
   NAVBAR RESPONSIVE SEPARATION SYSTEM (Desktop >= 1024px, Tablet 768-1023px, Mobile <= 767px)
   ========================================================================== */

.mobile-header-controls {
  display: none !important;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex !important;
  }

  .nav-actions {
    display: flex !important;
  }

  .desktop-account-btns {
    display: inline-flex !important;
  }

  .mobile-header-controls {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    display: none !important;
  }

  .mobile-header-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav-actions {
    display: flex !important;
  }

  .desktop-account-btns,
  .nav-actions .notif-wrapper,
  .nav-actions .theme-toggle-btn {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .nav-actions {
    display: none !important;
  }
}

/* ==========================================================================
   FOR SPONSORS PAGE DESIGN SYSTEM & DARK THEME OPTIMIZATION
   ========================================================================== */
.sponsor-page-wrapper {
  padding: 60px 20px 80px 20px;
}

.sponsor-hero-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(32, 229, 27, 0.12);
  border: 1px solid rgba(32, 229, 27, 0.3);
  font-size: 0.82rem;
  font-weight: 800;
  color: #0d8311;
  margin-bottom: 20px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #20E51B);
  box-shadow: 0 0 10px var(--brand, #20E51B);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-highlight {
  color: #10AB2F;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto 32px auto;
  font-weight: 600;
}

.sponsor-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sponsor-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

.sponsor-feature-card {
  padding: 30px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sponsor-icon-wrapper {
  margin-bottom: 16px;
  font-size: 2.5rem;
  color: #10AB2F;
}

.sponsor-lead-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--brand, #20E51B);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.sponsor-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Dark Theme Overrides for Sponsor Page */
[data-theme="dark"] .hero-tag {
  background: rgba(32, 229, 27, 0.15) !important;
  border-color: rgba(32, 229, 27, 0.4) !important;
  color: #20E51B !important;
}

[data-theme="dark"] .hero-highlight {
  color: #20E51B !important;
}

[data-theme="dark"] .sponsor-feature-card {
  background: #1C1C1E !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .sponsor-feature-card:hover {
  border-color: #20E51B !important;
  box-shadow: 0 10px 30px rgba(32, 229, 27, 0.15) !important;
}

[data-theme="dark"] .sponsor-icon-wrapper {
  color: #20E51B !important;
}

[data-theme="dark"] .sponsor-lead-card {
  background: #1C1C1E !important;
  border-color: #20E51B !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .sponsor-lead-card select.form-input option {
  background: #1C1C1E !important;
  color: #FFFFFF !important;
}

/* Mobile Responsiveness for Sponsor Page */
@media (max-width: 768px) {
  .sponsor-page-wrapper {
    padding: 24px 14px 96px 14px !important;
  }

  .sponsor-hero-header {
    margin-bottom: 32px !important;
  }

  .hero-tag {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    margin-bottom: 14px !important;
  }

  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .hero-desc {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
    line-height: 1.5 !important;
  }

  .sponsor-cta-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .sponsor-cta-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .sponsor-features-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 36px !important;
  }

  .sponsor-feature-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  .sponsor-feature-card h3 {
    font-size: 1.15rem !important;
  }

  .sponsor-feature-card p {
    font-size: 0.88rem !important;
  }

  .sponsor-lead-card {
    padding: 22px 14px !important;
    border-radius: 16px !important;
  }

  .sponsor-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   REFERRAL 2.0 PAGE MOBILE RESPONSIVE STYLES
   ========================================================================== */
.referral-hero-card {
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 16px;
}

.referral-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.referral-code-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
}

.referral-code-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  font-family: monospace;
  margin-top: 2px;
}

.referral-share-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.referral-link-input {
  flex: 1;
  min-width: 240px;
  font-weight: 700;
  background: var(--bg-main);
}

.referral-buttons-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.referral-rules-info {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.referral-stat-card {
  padding: 16px;
  text-align: center;
}

.referral-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
}

.referral-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-top: 4px;
}

.referral-stat-value.text-success {
  color: #10b981;
}

.referral-stat-value.text-brand {
  color: var(--dark-green);
}

.referral-stat-value.text-warning {
  color: #f59e0b;
}

.referral-list-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.referral-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.referral-list-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.referral-total-earned {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark-green);
}

.referral-empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-muted);
}

.referral-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.referral-empty-title {
  font-weight: 800;
  color: var(--text-primary);
}

.referral-empty-desc {
  font-size: 0.88rem;
  margin-top: 4px;
}

.referral-desktop-table-wrapper {
  overflow-x: auto;
}

.referral-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.referral-table th {
  padding: 12px 18px;
  background: var(--bg-main);
  border-bottom: 2px solid var(--border);
  font-weight: 800;
}

.referral-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.ref-user-name {
  font-weight: 800;
  color: var(--text-primary);
}

.ref-progress-tasks {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ref-progress-money {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ref-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.referral-mobile-cards-list {
  display: none;
  flex-direction: column;
}

/* Mobile Responsive Breakpoints for Referral Page */
@media (max-width: 768px) {
  .referral-hero-card {
    padding: 18px 14px !important;
  }

  .referral-code-value {
    font-size: 1.3rem !important;
  }

  .referral-share-container {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .referral-link-input {
    min-width: 100% !important;
    width: 100% !important;
  }

  .referral-buttons-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .btn-copy-link {
    grid-column: span 2 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .btn-share-wa,
  .btn-share-tg {
    width: 100% !important;
    justify-content: center !important;
  }

  .referral-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .referral-stat-card {
    padding: 14px 10px !important;
  }

  .referral-stat-label {
    font-size: 0.68rem !important;
  }

  .referral-stat-value {
    font-size: 1.3rem !important;
  }

  .referral-desktop-table-wrapper {
    display: none !important;
  }

  .referral-mobile-cards-list {
    display: flex !important;
  }

  .referral-mobile-item {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .referral-mobile-item:last-child {
    border-bottom: none;
  }

  .referral-mobile-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .referral-mobile-item-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.8rem;
  }

  .referral-mobile-item-body .ref-progress-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 400px) {
  .referral-buttons-group {
    grid-template-columns: 1fr !important;
  }

  .btn-copy-link,
  .btn-share-wa,
  .btn-share-tg {
    grid-column: span 1 !important;
  }
}

/* Flash Alert Messaging */
.flash-alert-wrap {
  transition: opacity 0.45s ease, transform 0.45s ease, margin-top 0.45s ease, max-height 0.45s ease;
  max-height: 120px;
  overflow: hidden;
}

.flash-alert-wrap.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  margin-top: 0 !important;
  max-height: 0;
  pointer-events: none;
}

.flash-alert {
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.flash-alert-success {
  background: rgba(32, 214, 90, 0.15) !important;
  border: 1.5px solid rgba(32, 214, 90, 0.4) !important;
  color: #20D65A !important;
}

.flash-alert-danger {
  background: rgba(255, 94, 104, 0.15) !important;
  border: 1.5px solid rgba(255, 94, 104, 0.4) !important;
  color: #FF5E68 !important;
}

.flash-alert-warning {
  background: rgba(242, 189, 75, 0.15) !important;
  border: 1.5px solid rgba(242, 189, 75, 0.4) !important;
  color: #F2BD4B !important;
}

.flash-alert-info {
  background: rgba(66, 153, 225, 0.15) !important;
  border: 1.5px solid rgba(66, 153, 225, 0.4) !important;
  color: #63B3ED !important;
}

html[data-theme="light"] .flash-alert-success {
  background: #E6F9E8 !important;
  border: 1.5px solid #18C93A !important;
  color: #0E481A !important;
}

html[data-theme="light"] .flash-alert-danger {
  background: #FDE8E8 !important;
  border: 1.5px solid #E53935 !important;
  color: #7F1D1D !important;
}

html[data-theme="light"] .flash-alert-warning {
  background: #FFF8E6 !important;
  border: 1.5px solid #FFB020 !important;
  color: #78350F !important;
}

html[data-theme="light"] .flash-alert-info {
  background: #EBF8FF !important;
  border: 1.5px solid #3182CE !important;
  color: #1A365D !important;
}

/* Universal Dark Theme Attribute Overrides for Hardcoded Inline Styles */
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#FFFFFF"],
[data-theme="dark"] [style*="background: #FFFFFF"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background: white"] {
  background: #252525 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:#111"],
[data-theme="dark"] [style*="color: #111"],
[data-theme="dark"] [style*="color:#050505"],
[data-theme="dark"] [style*="color: #050505"] {
  color: #FFFFFF !important;
}

[data-theme="dark"] [style*="border:2px solid #050505"],
[data-theme="dark"] [style*="border: 2px solid #050505"],
[data-theme="dark"] [style*="border-color:#050505"] {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] [style*="background:#fff8e1"],
[data-theme="dark"] [style*="background: #fff8e1"],
[data-theme="dark"] [style*="background:#fff3cd"],
[data-theme="dark"] [style*="background: #fff3cd"] {
  background: rgba(242, 189, 75, 0.15) !important;
  color: #F2BD4B !important;
  border-color: rgba(242, 189, 75, 0.35) !important;
}

@media (min-width: 768px) {
  body {
    padding-top: 104px !important;
  }

}

@media (max-width: 767px) {
  body {
    padding-top: 0 !important;
  }

  .navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 0 16px 16px !important;
    margin: 0 !important;
    z-index: 90 !important;
  }

  [data-theme="dark"] .navbar {
    background: #141416 !important;
    background-color: #141416 !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  }
}

/* ==========================================================================
   TELEGRAM ANIMATED EMOJIS (Tarikul-Islam-Anik/Telegram-Animated-Emojis)
   ========================================================================== */
.tg-emoji {
  display: inline-block !important;
  vertical-align: -0.18em !important;
  width: 1.25em !important;
  height: 1.25em !important;
  max-width: none !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  pointer-events: none !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tg-emoji-inline {
  width: 1.15em !important;
  height: 1.15em !important;
  vertical-align: -0.16em !important;
  margin: 0 0.12em !important;
}

.tg-emoji-sm {
  width: 16px !important;
  height: 16px !important;
}

.tg-emoji-md {
  width: 20px !important;
  height: 20px !important;
}

.tg-emoji-lg {
  width: 28px !important;
  height: 28px !important;
  vertical-align: -0.22em !important;
}

.tg-emoji-xl {
  width: 42px !important;
  height: 42px !important;
  vertical-align: -0.25em !important;
}

.tg-emoji-hero {
  width: 56px !important;
  height: 56px !important;
  vertical-align: middle !important;
}

/* Subtle Interactive Micro-Hover Effect */
*:hover > .tg-emoji,
.btn:hover .tg-emoji,
.card:hover .tg-emoji,
.badge:hover .tg-emoji {
  transform: scale(1.15);
}