/* ===================================================================
   BUYSELLING - WORK & EARN PLATFORM
   Clean, Solid, Non-Scrollable Mobile-First Architecture
   Theme Color: #02590F (Corporate Deep Green) & International Branded Violet (#6320ee)
   Zero Shadows, Zero Glow, Pure Solid Components
   =================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;

  --primary: #02590F;
  --primary-hover: #01400a;
  --primary-green: #15803d;
  --accent-purple: #6320ee;
  --accent-purple-hover: #5419cb;
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;

  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  text-shadow: none !important;
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body:not(.history-page-body):not(.sell-page-body) {
  height: 100%;
  height: 100dvh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  touch-action: none;
}

/* ===================================================================
   GLOBAL HEADER (Left: Logo, Right: 3-Line Menu, No Flag, No BDT)
   =================================================================== */
.site-header {
  flex-shrink: 0;
  height: 54px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.header-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-img-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

/* Header Login / Sign Up CTA button */
.btn-header-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #02590F;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 89, 15, 0.22);
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-header-auth:hover {
  background: #0d652d;
  transform: translateY(-1px);
}

.btn-header-auth.logged-in {
  background: #f0fdf4;
  color: #02590F;
  border: 1px solid #bbf7d0;
  box-shadow: none;
}

/* 3-Line Hamburger Menu Button */
.hamburger-btn {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hamburger-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.hamburger-btn .bar {
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  display: block;
  transition: all 0.2s ease;
}

/* ===================================================================
   SINGLE-PAGE APPLICATION VIEWPORT
   Positioned from top, with safe clearance from mobile bottom navigation
   =================================================================== */
.single-page-app {
  flex: 1;
  min-height: calc(100dvh - 54px);
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 16px) + 12px);
  box-sizing: border-box;
}

.app-viewport-container {
  width: 100%;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  padding-bottom: 4px;
}

/* ===================================================================
   1. TOP: BANKING/CRYPTO BALANCE CARD (White Theme, Vertical Stack)
   Horizontal 1-Row with 3 SOLID CIRCULAR Buttons: Withdraw, History, Sell
   =================================================================== */
.balance-card-section {
  flex-shrink: 0;
  width: 100%;
}

.banking-balance-card {
  background: linear-gradient(135deg, #02590F 0%, #037014 45%, #01440b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -6px rgba(2, 89, 15, 0.3), 0 3px 8px rgba(2, 89, 15, 0.15);
}

/* Ambient Radial Fogs */
.banking-balance-card::before {
  content: '';
  position: absolute;
  top: -45px;
  right: -45px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.22) 0%, rgba(2, 89, 15, 0.08) 60%, transparent 100%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.banking-balance-card::after {
  content: '';
  position: absolute;
  bottom: -35px;
  left: -35px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(74, 222, 128, 0.04) 70%, transparent 100%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.banking-balance-card>* {
  position: relative;
  z-index: 1;
}

.bbc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bbc-label-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bbc-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.btn-eye-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.btn-eye-toggle:hover {
  color: #ffffff;
}

/* Small Circular Avatar Balance % */
.bbc-balance-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

.bbc-balance-avatar-badge:hover {
  transform: scale(1.05);
}

.circular-chart {
  display: block;
}

.bbc-amount-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bbc-currency {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
}

.bbc-val {
  font-size: 1.62rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.bbc-currency-tag {
  font-size: 0.70rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 1px 6px;
  border-radius: 5px;
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bbc-pnl-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: -3px;
}

.bbc-pnl-label {
  font-size: 0.70rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.bbc-pnl-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
  /* Brilliant Emerald Green */
}

/* 3 Action Buttons on Deep Green Background */
.bbc-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bbc-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: var(--font-main);
  transition: transform 0.12s ease;
}

.bbc-action-btn:active {
  transform: scale(0.95);
}

/* True Solid Circular Buttons (White Circles with #02590F Icons) */
.bbc-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #02590F !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bbc-btn-circle:hover {
  background: #f0fdf4 !important;
  color: #02590F !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bbc-btn-circle:active {
  transform: scale(0.96);
}

.circle-withdraw,
.circle-history,
.circle-sell {
  background: #ffffff !important;
  color: #02590F !important;
}

.bbc-btn-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* ===================================================================
   2. MIDDLE: INTERNATIONAL BRANDED ACCOUNT ACTIVATION CARD
   Matching Screenshot 1: Violet/Purple Theme with "Best Value" Badge
   =================================================================== */
.activation-card-section {
  flex-shrink: 0;
  width: 100%;
}

.branded-activation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 11px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bac-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bac-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.bac-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 3px;
  line-height: 1.35;
}

.bac-best-value-badge {
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bac-price-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bac-price-main {
  font-size: 1.80rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bac-price-unit {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.bac-price-sub {
  font-size: 0.73rem;
  color: #6b7280;
  font-weight: 500;
}

/* Electric Violet Continue Button with Right Pill (Exact match to screenshot 1) */
.btn-branded-continue {
  background: var(--accent-purple);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-branded-continue:hover {
  background: var(--accent-purple-hover);
}

.btn-branded-continue:active {
  transform: scale(0.99);
}

.btn-continue-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-save-pill {
  background: #ffffff;
  color: var(--accent-purple);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.bac-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 1px 0;
}

.bac-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bac-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bac-check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bac-feature-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bac-feature-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.bac-feature-desc {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.35;
  margin: 0;
}

/* ===================================================================
   3. BOTTOM: GO TO WORK BUTTON (RE-DESIGNED & NO ICONS)
   With Safe Clearance / Respect Distance from Mobile Bottom Navigation
   =================================================================== */
.work-action-section {
  flex-shrink: 0;
  width: 100%;
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.btn-solid-go-work {
  width: 100%;
  height: 42px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(2, 89, 15, 0.22);
}

box-sizing: border-box;
font-family: var(--font-main);
text-align: center;
}

.btn-solid-go-work:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-solid-go-work:active {
  transform: scale(0.99);
}

.btn-solid-go-work.locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.btn-solid-go-work.locked svg {
  stroke: #ffffff;
}

/* ===================================================================
   SIDE NAVIGATION DRAWER (Clean White Canvas with Themed Gradient & Fogs Card)
   =================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Slide Drawer Container: Crisp Clean White Background */
.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 295px;
  max-width: 86vw;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  z-index: 310;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.side-drawer.open {
  transform: translateX(0);
}

/* Drawer Top Header (Clean White Header matching Reference UI) */
.drawer-header {
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-img-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.drawer-brand h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.drawer-brand p {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.drawer-close-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.drawer-body {
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* User Profile Card: Features Our Deep Theme Color Gradient (#02590F) & Ambient Radial Fogs */
.drawer-user-info {
  background: linear-gradient(135deg, #02590F 0%, #037014 45%, #01440b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px -2px rgba(2, 89, 15, 0.35);
}

/* Ambient Radial Fogs inside User Profile Card */
.drawer-user-info::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.32) 0%, rgba(2, 89, 15, 0.1) 60%, transparent 100%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.drawer-user-info::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(74, 222, 128, 0.05) 70%, transparent 100%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.drawer-user-info>* {
  position: relative;
  z-index: 1;
}

.dui-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #02590F;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
}

.dui-avatar .dui-online-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #02590F;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.dui-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dui-name {
  font-size: 0.90rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dui-badge {
  display: none !important;
}

.dui-email {
  font-size: 0.72rem;
  color: #e2e8f0;
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Logged-Out Action CTA */
.drawer-auth-cta-wrap {
  padding: 2px 0 4px;
}

.btn-drawer-auth-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #02590F;
  color: #ffffff;
  border: 1px solid #02590F;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 89, 15, 0.25);
  transition: all 0.2s ease;
}

.btn-drawer-auth-cta:hover {
  background: #037014;
  border-color: #037014;
}

/* Drawer Navigation Items on Crisp White Canvas */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

/* Menu Options Icons: Clean, Pure Icon with NO Square Shape, NO Background, NO Border */
.drawer-nav-icon {
  width: 22px;
  height: 22px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #02590F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.drawer-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.drawer-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.drawer-nav-item:hover .drawer-nav-icon {
  background: transparent !important;
  border: none !important;
  color: #02590F !important;
}

/* Active Nav Item: Solid Like Go To Work Button */
.drawer-nav-item.active {
  background: #02590F;
  color: #ffffff;
  border-color: #02590F;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 89, 15, 0.25);
}

.drawer-nav-item.active .drawer-nav-icon {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
}

/* Micro-Work Action Card (With Right Arrow) */
.drawer-work-widget {
  margin-top: 6px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dww-content {
  display: flex;
  flex-direction: column;
}

.dww-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.dww-desc {
  font-size: 0.70rem;
  color: #64748b;
  margin-top: 1px;
}

.dww-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #02590F;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(2, 89, 15, 0.25);
  transition: all 0.2s ease;
}

.dww-btn:hover {
  background: #037014;
  transform: scale(1.05);
}

/* Drawer Logout Action */
.drawer-logout-item {
  margin-top: 6px;
  border-top: 1px solid #f1f5f9;
  padding-top: 11px;
  color: #dc2626;
}

.drawer-logout-item .drawer-nav-icon {
  background: transparent !important;
  border: none !important;
  color: #ef4444 !important;
}

.drawer-logout-item:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.drawer-logout-item:hover .drawer-nav-icon {
  background: transparent !important;
  border: none !important;
  color: #b91c1c !important;
}

.drawer-logout-item:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.drawer-logout-item:hover .drawer-nav-icon {
  background: #ef4444;
  border-color: transparent;
  color: #ffffff;
}

/* ===================================================================
   MODALS (Clean Solid Dialogs)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  width: 100%;
  max-width: 390px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-dialog-lg {
  max-width: 440px;
}

.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.modal-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-balance-display {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mbd-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mbd-amount {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.80rem;
  font-weight: 700;
  color: #334155;
}

.form-input-solid {
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0 11px;
  font-family: var(--font-main);
  font-size: 0.90rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input-solid:focus {
  border-color: var(--primary);
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.withdraw-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-method-pill {
  height: 52px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  outline: none;
}

.btn-method-pill:hover {
  border-color: #cbd5e1;
}

.btn-method-pill.active {
  background: #ffffff !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 2px 6px rgba(6, 64, 43, 0.08);
}

.method-svg-logo {
  height: 26px;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.withdraw-method-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.btn-add-wallet-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.btn-add-wallet-inline:hover {
  background: var(--primary-hover);
}

.no-wallet-empty-box {
  background: #f8fafc;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.no-wallet-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.btn-solid-add-wallet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.btn-solid-add-wallet-cta:hover {
  background: var(--primary-hover);
}

.btn-wallet-method {
  height: auto !important;
  min-height: 64px;
  padding: 9px 10px !important;
  flex-direction: column;
  gap: 5px;
}

.btn-wallet-method .method-svg-logo {
  height: 22px;
}

.wallet-pill-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.wallet-pill-number.unlinked {
  color: var(--text-muted);
  font-weight: 600;
}

.btn-solid-modal-action {
  width: 100%;
  height: 42px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.btn-solid-modal-action:hover {
  background: var(--primary-hover);
}

.btn-purple-action {
  background: var(--accent-purple) !important;
  border-color: var(--accent-purple) !important;
}

.btn-purple-action:hover {
  background: var(--accent-purple-hover) !important;
}

/* Sell Modal Rate Banner */
.sell-modal-rate-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.smr-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #3b82f6;
  display: block;
}

.smr-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e40af;
}

.smr-tag {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ===================================================================
   ACCOUNT ACTIVATION MODAL (Matching Account Activation Card)
   =================================================================== */
.act-modal-dialog {
  max-width: 440px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(124, 58, 237, 0.22), 0 0 35px rgba(168, 85, 247, 0.12) !important;
}

.act-modal-dialog::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.22) 0%, rgba(124, 58, 237, 0.08) 60%, transparent 100%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.act-modal-dialog::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.act-modal-dialog>* {
  position: relative;
  z-index: 1;
}

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

.act-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.act-top-badge {
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.act-modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.act-modal-price-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.09) 0%, rgba(2, 89, 15, 0.05) 50%, rgba(147, 51, 234, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 4px 14px rgba(124, 58, 237, 0.06);
}

.ampb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ampb-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ampb-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
}

.ampb-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ampb-original {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.ampb-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ampb-unit {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ampb-discount-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.ampb-badge {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.act-modal-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.amf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.amf-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.amf-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.amf-content strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.amf-content span {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.3;
}

.act-pay-group {
  margin-bottom: 4px;
}

.act-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-act-method-pill {
  height: 52px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  outline: none;
}

.btn-act-method-pill:hover {
  border-color: #cbd5e1;
}

.btn-act-method-pill.active {
  background: #ffffff !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 2px 6px rgba(6, 64, 43, 0.08);
}

.btn-wpay-proceed {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px rgba(6, 64, 43, 0.18);
}

.btn-wpay-proceed:hover {
  background: #053322;
  transform: translateY(-1px);
}

.btn-wpay-proceed:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.act-modal-footer-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}

/* ===================================================================
   WITHDRAW FEE MODAL (Clean Solid Flat Theme)
   =================================================================== */
.wf-modal-dialog {
  max-width: 440px;
  position: relative;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.wf-modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.wf-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.wf-modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.wf-modal-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Solid Flat Price Box in Theme Color */
.wf-price-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: none;
}

.wf-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wf-price-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: none;
  letter-spacing: normal;
}

.wf-price-badge {
  background: #dcfce7;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #86efac;
  text-transform: none;
}

.wf-price-val-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wf-price-old {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.wf-price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 3px;
  letter-spacing: -0.01em;
}

.wf-price-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Feature Items with Solid Flat Styling */
.wf-features-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.wf-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.wf-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.wf-feature-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wf-feature-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.wf-feature-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Method Selector */
.wf-methods-group {
  margin: 0;
}

.wf-method-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.wf-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.wf-modal-dialog .wf-method-pill {
  height: 48px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  outline: none;
}

.wf-modal-dialog .wf-method-pill:hover {
  border-color: var(--border-strong);
}

.wf-modal-dialog .wf-method-pill.active,
#feeMethodsGrid .btn-act-method-pill.active {
  background: #ffffff !important;
  border: 2px solid var(--primary) !important;
  box-shadow: none !important;
}

/* Proceed Button in Solid Theme Color */
.wf-btn-proceed {
  width: 100%;
  height: 46px;
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary) !important;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.15s ease;
}

.wf-btn-proceed:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  transform: none;
  box-shadow: none !important;
}

.wf-btn-proceed:active {
  transform: none;
}

.wf-btn-proceed:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.wf-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

.wf-footer-note svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

/* Work / Tasks Dashboard Modal Specifics */
.work-stats-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.wsb-label {
  display: block;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
}

.work-stats-banner strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.wsb-earned {
  color: #15803d !important;
}

.work-activation-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 9px 11px;
  color: #92400e;
  font-size: 0.78rem;
  line-height: 1.35;
}

.work-activation-notice.hidden {
  display: none;
}

.available-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-card-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.tci-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tci-icon {
  width: 30px;
  height: 30px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.90rem;
  color: var(--primary);
  flex-shrink: 0;
}

.tci-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
}

.tci-sub {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.btn-task-action {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 11px;
  font-family: var(--font-main);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-task-action:hover {
  background: var(--primary-hover);
}

.btn-task-done {
  background: #64748b !important;
  cursor: default;
}

/* History Items */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 270px;
  overflow-y: auto;
}

.history-item-solid {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.his-left {
  display: flex;
  flex-direction: column;
}

.his-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.his-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.his-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.his-amount {
  font-size: 0.88rem;
  font-weight: 800;
}

.his-amount.positive {
  color: #15803d;
}

.his-amount.negative {
  color: #dc2626;
}

.his-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #475569;
}

.history-empty {
  text-align: center;
  padding: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===================================================================
   TOAST FEEDBACK ALERTS
   =================================================================== */
.toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

.toast,
.solid-toast {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  animation: toastFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-dismiss {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0 4px;
}

.toast-success {
  background: #15803d;
  border: 1px solid #166534;
}

.toast-error {
  background: #b91c1c;
  border: 1px solid #991b1b;
}

.toast-info {
  background: #1e293b;
  border: 1px solid #0f172a;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

/* ===================================================================
   DEDICATED WITHDRAW HISTORY PAGE (Standalone Full Page)
   =================================================================== */
body.history-page-body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  height: auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block;
  background-color: var(--bg-page);
  touch-action: auto;
}

.history-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-back-btn,
.history-home-btn {
  width: auto;
  height: auto;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 4px;
  box-shadow: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.history-back-btn:hover,
.history-home-btn:hover {
  background: transparent !important;
  border: none !important;
  opacity: 0.7;
  transform: translateX(-2px);
}

.history-page-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.history-main-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 14px 14px 48px;
  box-sizing: border-box;
}

.history-content-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1. Summary Stats Card */
.history-stats-section {
  width: 100%;
}

.history-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hsc-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
  flex: 1;
}

.hsc-divider {
  width: 1px;
  height: 30px;
  background: var(--border-light);
}

.hsc-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hsc-value {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hsc-withdrawn {
  color: var(--primary);
}

.hsc-pending {
  color: #d97706;
}

.hsc-completed {
  color: #15803d;
}

/* 2. Method Tabs (All, Nagad, bKash) matching screenshot */
.history-filter-section {
  width: 100%;
  margin-bottom: 8px;
}

.history-method-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.hm-tab {
  flex: 1;
  height: 52px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none !important;
  font-family: var(--font-main);
  box-sizing: border-box;
  outline: none;
  padding: 0 10px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hm-tab:hover {
  border-color: #cbd5e1;
  transform: none;
  box-shadow: none !important;
}

.hm-all-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  color: #334155;
  fill: currentColor;
}

.hm-all-text {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.hm-tab.active {
  background: #ffffff !important;
  border: 2px solid #02590F !important;
  box-shadow: none !important;
  transform: none;
}

.hm-tab.active[data-filter="all"] {
  background: #02590F !important;
  border: 2px solid #02590F !important;
  color: #ffffff !important;
}

.hm-tab.active[data-filter="all"] .hm-all-icon {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.hm-tab.active[data-filter="all"] .hm-all-text {
  color: #ffffff !important;
}

.tab-svg-logo {
  height: 26px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.tab-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3. Detailed Transaction Records */
.history-records-section {
  width: 100%;
}

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

.history-record-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.history-record-card:hover {
  background: #fafafa;
}

.hrc-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.hrc-photo-img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.hrc-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hrc-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrc-date {
  font-size: 0.74rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

.hrc-pin {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

.hrc-pin strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #0f172a;
}

.hrc-right,
.hrc-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.hrc-right-amount {
  font-size: 0.98rem;
  font-weight: 800;
  color: #02590F;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hrc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.hrc-status-processing {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  animation: hrcProcPulse 1.8s ease-in-out infinite;
}

.hrc-spin-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(180, 83, 9, 0.25);
  border-top-color: #b45309;
  display: inline-block;
  animation: hrcSpin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes hrcSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hrcProcPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.hrc-status-paid {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-active {
  background: #ede9fe;
  color: #6d28d9;
}

/* Empty State */
.history-empty-state {
  text-align: center;
  padding: 36px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hes-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.history-empty-state h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.history-empty-state p {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 250px;
  line-height: 1.4;
}

.btn-history-empty-action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

/* ===================================================================
   DEDICATED P2P SELLING MARKETPLACE PAGE (Standalone Full Page)
   Matches Binance/Bybit P2P Layout: Filters, Verified Merchant Info,
   Rate/Limit/Available, Settlement & Solid Red/Coral Sell Button
   =================================================================== */
body.sell-page-body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  height: auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block;
  background-color: var(--bg-page);
  touch-action: auto;
}

.sell-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sell-back-btn,
.sell-header-action-btn {
  width: auto;
  height: auto;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  padding: 4px;
  box-shadow: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sell-back-btn:hover,
.sell-header-action-btn:hover {
  background: transparent !important;
  border: none !important;
  opacity: 0.7;
  transform: translateX(-2px);
}

.sell-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sell-page-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}

.sell-live-indicator {
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

.sell-main-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 14px 48px;
  box-sizing: border-box;
}

.sell-content-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* User Live Balance & Available Gmails Strip (Clean Balanced 2-Col Display) */
.sell-user-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}

.sus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.sus-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sus-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sus-gmails-val {
  color: #0f172a;
}

.sus-divider {
  width: 1px;
  height: 30px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* P2P Filter Bar (Clean Inline Dropdowns with Real Small Gmail Logo + Flush Filter Funnel) */
.p2p-filter-bar {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 14px;
  box-sizing: border-box;
}

.p2p-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.p2p-filters-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.p2p-filter-dropdown-wrapper {
  position: relative;
}

.p2p-inline-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px 0;
  user-select: none;
  transition: opacity 0.15s ease;
}

.p2p-inline-select:hover {
  opacity: 0.75;
}

.p2p-gmail-icon {
  width: 16px;
  height: 13px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pill-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.pill-arrow {
  font-size: 0.62rem;
  color: #64748b;
  margin-left: 1px;
}

.p2p-funnel-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.p2p-funnel-btn {
  position: relative;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.p2p-funnel-btn:hover {
  color: #0f172a;
}

.funnel-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  /* Amber dot */
}

.p2p-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
}

.p2p-dropdown-menu.show {
  display: flex;
}

.p2p-dropdown-menu.dropdown-right {
  left: auto;
  right: 0;
  min-width: 200px;
}

.p2p-dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.p2p-dropdown-item:hover,
.p2p-dropdown-item.active {
  background: var(--bg-subtle);
  color: var(--primary);
}

/* P2P Order Cards (Matches Screenshot Exactly) */
.p2p-orders-section {
  width: 100%;
}

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

.p2p-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.p2p-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p2p-merchant-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.p2p-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
}

.modal-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.p2p-online-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9.5px;
  height: 9.5px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
  pointer-events: none;
}

.p2p-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.p2p-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p2p-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.p2p-merchant-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.p2p-verified-badge {
  color: #d97706;
  display: flex;
  align-items: center;
}

.p2p-stats-row {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p2p-divider-dot {
  color: var(--border-strong);
}

.p2p-rating {
  color: #15803d;
  font-weight: 700;
}

/* Card Body: Left Column Price & Limits, Right Column Tag, Timer, Sell Button */
.p2p-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.p2p-price-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.p2p-rate-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.p2p-currency-prefix {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.p2p-rate-val {
  font-size: 1.40rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1;
}

.p2p-unit-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.p2p-limits-row {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.p2p-avail-row {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.p2p-limit-label,
.p2p-avail-label {
  color: var(--text-dim);
  margin-right: 4px;
}

.p2p-limit-val,
.p2p-avail-val {
  font-weight: 700;
  color: var(--text-main);
}

.p2p-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.p2p-method-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
}

.p2p-method-tag::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 11px;
  background: #16a34a;
  border-radius: 1px;
  margin-left: 2px;
}

.p2p-timer-row {
  font-size: 0.69rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}

.twitter-gold-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 3px;
}

.twitter-gold-badge svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Crisp Solid Red/Coral Sell Button (Matches Screenshot Exactly) */
.btn-p2p-sell {
  background: #f43f5e;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 22px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-p2p-sell:hover {
  background: #e11d48;
}

.btn-p2p-sell:active {
  transform: scale(0.96);
}

/* P2P Sell Order Modal */
.sell-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.sell-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sell-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }

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

.sell-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.smh-merchant {
  display: flex;
  align-items: center;
  gap: 10px;
}

.smh-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.smh-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.smh-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.smh-rate {
  font-size: 0.73rem;
  font-weight: 700;
  color: #16a34a;
}

.sell-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

.sell-modal-close:hover {
  color: var(--text-main);
}

.sell-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Solid Available Gmails to Sell Bar (Simple, Solid Shape Like Sell Button) */
.solid-avail-gmails-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 9px 12px;
  box-sizing: border-box;
  width: 100%;
}

.sag-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.sag-badge {
  background: #f43f5e;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Solid & Clean Horizontal Inactive Alert Strip (No Soft/Pastel Styling) */
.activation-required-strip {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

.activation-required-strip.hidden {
  display: none !important;
}

.ars-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ars-tag {
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.ars-text {
  font-size: 0.8rem;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.3;
}

.btn-activate-short {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-activate-short:hover {
  background: #1d4ed8;
}

.sell-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fg-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fg-label-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.fg-limit-hint {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Stepper Quantity Selector (Adjustable + - Buttons & Direct Input & Max) */
.input-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.btn-stepper-adj {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-stepper-adj:hover {
  background: #e2e8f0;
}

.btn-stepper-adj:active {
  transform: scale(0.96);
}

.form-input-stepper {
  flex: 1;
  height: 42px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  min-width: 0;
  font-family: var(--font-main);
  box-sizing: border-box;
}

.form-input-stepper:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-input-max {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.btn-input-max:hover {
  background: #1e293b;
}

.quick-qty-pills {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.qq-pill {
  flex: 1;
  padding: 6px 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}

.qq-pill:hover {
  background: var(--border-light);
  color: var(--text-main);
}

/* Payout Summary Card */
.payout-summary-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.psc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.psc-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 600;
}

.psc-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.psc-total {
  padding-top: 6px;
  border-top: 1px dashed var(--border-light);
}

.psc-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.psc-dest {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.psc-dest strong {
  color: var(--text-muted);
}

.form-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-main);
  background: var(--bg-card);
  font-family: var(--font-main);
  resize: vertical;
  box-sizing: border-box;
}

.form-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.btn-confirm-sell {
  width: 100%;
  height: 44px;
  background: #f43f5e;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 4px;
}

.btn-confirm-sell:hover {
  background: #e11d48;
}

.btn-confirm-sell:active {
  transform: scale(0.98);
}

.btn-confirm-sell.locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-confirm-sell.locked svg {
  stroke: #ffffff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.8s linear infinite;
}


/* ===================================================================
   WORK PAGE - ANDROID MATERIAL 3 GOOGLE ACCOUNT SETUP (LIGHT MODE)
   =================================================================== */

.work-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fdfcff;
  color: #1f1f1f;
  font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Minimal Top Navigation Bar */
.work-top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e0e2ec;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wtb-inner {
  max-width: 460px;
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.wtb-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444746;
  transition: background 0.2s ease, color 0.2s ease;
}

.wtb-back-btn:hover {
  background: #f0f4f9;
  color: #1f1f1f;
}

.wtb-service-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f1f1f;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.wtb-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.wtb-close-btn:hover {
  background: #f0f4f9;
  color: #1f1f1f;
}

.work-progress-line-container {
  height: 3px;
  background: #e0e2ec;
  width: 100%;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.work-progress-line {
  height: 100%;
  background: #0b57d0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Content & Setup Card */
.work-page-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 48px;
}

.work-card-container {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf0f7;
  position: relative;
  min-height: 530px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .work-page-main {
    padding: 0;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .work-card-container {
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 16px 16px 24px;
    min-height: calc(100dvh - 58px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .work-step[data-step="8"],
  .work-step[data-step="9"] {
    padding-bottom: 30px;
  }

  .g-action-bar {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 14px 16px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -16px;
    border-top: 1px solid #edf0f7;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
    z-index: 99;
  }
}

/* Multi-Step Visibility & Animation */
.work-step {
  display: none;
  flex-direction: column;
  flex: 1;
}

.work-step.active {
  display: flex;
  animation: gStepFadeIn 0.25s ease-out;
}

@keyframes gStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* Google Screen Header */
.g-header {
  margin-bottom: 28px;
}

.g-logo-wrap {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.g-logo-svg {
  display: block;
}

.g-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #1f1f1f;
  margin: 0 0 8px;
  line-height: 1.25;
  font-family: 'Google Sans', Roboto, sans-serif;
  letter-spacing: -0.01em;
}

.g-subtitle {
  font-size: 0.95rem;
  color: #444746;
  margin: 0;
  line-height: 1.45;
  font-weight: 400;
  font-family: Roboto, sans-serif;
}

.g-form-content {
  flex: 1;
}

/* Material 3 Outlined Input Fields */
.m3-field {
  position: relative;
  margin-bottom: 22px;
}

.m3-input {
  width: 100%;
  height: 56px;
  border: 1px solid #747775;
  border-radius: 4px;
  padding: 16px 14px 12px;
  font-size: 1rem;
  color: #1f1f1f;
  outline: none;
  background: #ffffff;
  font-family: Roboto, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.15s ease, border-width 0.1s ease;
}

.m3-input:focus {
  border: 2px solid #0b57d0;
  padding: 15px 13px 11px;
}

.m3-input.m3-input-error {
  border-color: #b3261e !important;
}

.m3-label {
  position: absolute;
  left: 12px;
  top: 17px;
  font-size: 1rem;
  color: #444746;
  pointer-events: none;
  transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1) all;
  background: #ffffff;
  padding: 0 4px;
  border-radius: 2px;
  font-family: Roboto, sans-serif;
}

.m3-input:focus~.m3-label,
.m3-input:not(:placeholder-shown)~.m3-label {
  top: -9px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0b57d0;
}

.m3-input:not(:focus):not(:placeholder-shown)~.m3-label {
  color: #444746;
}

.m3-input.m3-input-error~.m3-label {
  color: #b3261e !important;
}

.m3-error-msg {
  display: none;
  color: #b3261e;
  font-size: 0.75rem;
  margin-top: 4px;
  padding-left: 12px;
  font-family: Roboto, sans-serif;
}

.m3-error-msg.show {
  display: block;
}

/* Birthday 3-Column Layout */
.m3-bday-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.m3-select-field {
  position: relative;
}

.m3-select {
  width: 100%;
  height: 56px;
  border: 1px solid #747775;
  border-radius: 4px;
  padding: 16px 28px 12px 12px;
  font-size: 0.95rem;
  color: #1f1f1f;
  outline: none;
  background: #ffffff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: Roboto, sans-serif;
  transition: border-color 0.15s ease;
}

.m3-select:focus {
  border: 2px solid #0b57d0;
  padding: 15px 27px 11px 11px;
}

.m3-select~.m3-label {
  top: -9px;
  font-size: 0.75rem;
  color: #444746;
}

.m3-select:focus~.m3-label {
  color: #0b57d0;
}

.m3-select-chevron {
  position: absolute;
  right: 10px;
  top: 22px;
  pointer-events: none;
  color: #444746;
  display: flex;
  align-items: center;
}

/* Birthday Info Link & Expandable */
.g-info-link-row {
  margin: 10px 0 18px;
}

.g-text-link {
  background: none;
  border: none;
  padding: 0;
  color: #0b57d0;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.g-text-link:hover {
  text-decoration: underline;
}

.g-info-expandable {
  background: #f0f4f9;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #444746;
  margin-bottom: 20px;
  line-height: 1.45;
}

.g-info-expandable.hidden {
  display: none;
}

/* Step 3: Radio Options List */
.g-radio-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border-top: 1px solid #e0e2ec;
}

.g-radio-item {
  display: flex;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid #e0e2ec;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.g-radio-item input[type="radio"] {
  display: none;
}

.g-radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #747775;
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease;
}

.g-radio-item input[type="radio"]:checked+.g-radio-circle {
  border-color: #0b57d0;
}

.g-radio-item input[type="radio"]:checked+.g-radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #0b57d0;
  border-radius: 50%;
}

.g-radio-text {
  font-size: 0.98rem;
  color: #1f1f1f;
  font-family: Roboto, sans-serif;
}

.custom-gmail-box {
  margin-top: 14px;
}

.custom-gmail-box.hidden {
  display: none;
}

.m3-field-addon {
  position: relative;
}

.m3-domain-suffix {
  position: absolute;
  right: 14px;
  top: 18px;
  color: #444746;
  font-size: 0.95rem;
  pointer-events: none;
  font-family: Roboto, sans-serif;
}

.m3-helper-text {
  font-size: 0.78rem;
  color: #747775;
  margin: -16px 0 18px 12px;
  font-family: Roboto, sans-serif;
}

/* Step 4: Show Password Checkbox */
.m3-checkbox-row {
  margin-bottom: 24px;
}

.m3-checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.m3-checkbox {
  display: none;
}

.m3-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #747775;
  border-radius: 2px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.m3-checkbox:checked+.m3-checkbox-custom {
  background: #0b57d0;
  border-color: #0b57d0;
}

.m3-checkbox:checked+.m3-checkbox-custom::after {
  content: '';
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.m3-checkbox-text {
  font-size: 0.92rem;
  color: #1f1f1f;
  font-family: Roboto, sans-serif;
}

/* Step 6: Review Account Snippet */
.g-profile-card {
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.g-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f06000;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.g-profile-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 2px;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.g-profile-email {
  font-size: 0.9rem;
  color: #444746;
  font-family: Roboto, sans-serif;
}

/* Step 7: Terms & Privacy Content */
.g-terms-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #444746;
}

.g-terms-p {
  margin: 0 0 12px;
}

.g-terms-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f1f1f;
  margin: 18px 0 8px;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.g-terms-list {
  padding-left: 20px;
  margin: 0 0 16px;
}

.g-terms-list li {
  margin-bottom: 8px;
}

.g-more-options-wrap {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e0e2ec;
}

.btn-g-more-options {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #0b57d0;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.g-more-options-box {
  background: #f8fafd;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
  border: 1px solid #e0e2ec;
}

.g-more-options-box.hidden {
  display: none;
}

.g-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #1f1f1f;
  margin-bottom: 8px;
  cursor: pointer;
}

.g-opt-row:last-child {
  margin-bottom: 0;
}

/* Action Bar & Buttons */
.g-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 32px;
  position: relative;
}

.g-create-account-wrap {
  position: relative;
  display: inline-block;
}

.btn-g-create-account {
  background: transparent;
  border: none;
  color: #0b57d0;
  font-size: 0.90rem;
  font-weight: 500;
  padding: 10px 4px;
  cursor: pointer;
  font-family: 'Google Sans', Roboto, sans-serif;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-g-create-account:hover {
  text-decoration: underline;
}

.g-create-menu {
  position: absolute;
  bottom: 120%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e2ec;
  padding: 6px 0;
  min-width: 220px;
  z-index: 100;
  animation: gStepFadeIn 0.15s ease-out;
}

.g-create-menu.hidden {
  display: none !important;
}

.g-create-menu-item {
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.88rem;
  color: #1f1f1f;
  cursor: pointer;
  display: block;
  font-family: Roboto, sans-serif;
  transition: background 0.15s ease;
}

.g-create-menu-item:hover {
  background: #f0f4f9;
}

.g-forgot-row {
  margin-top: -10px;
  margin-bottom: 24px;
}

.btn-g-pill {
  background-color: #0b57d0;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 26px;
  font-size: 0.90rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans', Roboto, sans-serif;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(11, 87, 208, 0.25);
}

.btn-g-pill:hover {
  background-color: #0842a0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-g-pill:active {
  transform: scale(0.98);
}

.btn-g-agree {
  padding: 10px 28px;
}

.btn-g-text {
  background: transparent;
  border: none;
  color: #0b57d0;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Google Sans', Roboto, sans-serif;
  transition: background-color 0.2s ease;
}

.btn-g-text:hover {
  background-color: rgba(11, 87, 208, 0.08);
}

/* Step 8: Success Screen Styles */
.g-success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.g-success-badge-wrap {
  margin-bottom: 8px;
}

.g-success-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0d652d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13, 101, 45, 0.3);
  animation: gSuccessPulse 0.4s ease-out;
}

@keyframes gSuccessPulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.g-title-success {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 3px;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.g-subtitle-success {
  font-size: 0.82rem;
  color: #444746;
  margin: 0 0 14px;
}

.work-inventory-card {
  width: 100%;
  background: linear-gradient(135deg, #02590F 0%, #0d652d 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px -3px rgba(2, 89, 15, 0.22);
  box-sizing: border-box;
}

.wic-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
}

.wic-body {
  flex: 1;
  text-align: left;
}

.wic-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.wic-title {
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: none;
}

.wic-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: none;
}

.wic-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.90);
  margin: 0;
  line-height: 1.35;
  text-transform: none;
}

.work-reward-card {
  display: none;
}

.work-credentials-box {
  width: 100%;
  border: 1px solid #e0e2ec;
  border-radius: 14px;
  background: #fdfcff;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
  box-sizing: border-box;
}

.wcb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf0f7;
  text-transform: none;
}

.wcb-tag-active {
  background: #e6f4ea;
  color: #137333;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: none;
}

.wcb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f4f9;
}

.wcb-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wcb-info {
  display: flex;
  flex-direction: column;
}

.wcb-field-label {
  font-size: 0.72rem;
  color: #747775;
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
}

.wcb-field-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: #1f1f1f;
  margin-top: 2px;
}

.email-highlight {
  color: #0b57d0;
}

.btn-copy-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f4f9;
  border: 1px solid #e0e2ec;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1f1f1f;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-field:hover {
  background: #e0e2ec;
}

.btn-copy-field.copied {
  background: #e6f4ea;
  color: #137333;
  border-color: #ceead6;
}

.work-success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-work-primary {
  width: 100%;
  height: 42px;
  background: #0b57d0;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: 'Google Sans', Roboto, sans-serif;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-work-primary:hover {
  background: #0842a0;
}

.btn-work-primary:active {
  transform: scale(0.98);
}

.btn-work-secondary {
  width: 100%;
  height: 38px;
  background: #ffffff;
  color: #0b57d0;
  border: 1px solid #0b57d0;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-family: 'Google Sans', Roboto, sans-serif;
  transition: background-color 0.15s ease;
  box-sizing: border-box;
}

.btn-work-secondary:hover {
  background: rgba(11, 87, 208, 0.05);
}

.btn-work-link {
  color: #747775;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
  transition: color 0.15s ease;
}

.btn-work-link:hover {
  color: #1f1f1f;
  text-decoration: underline;
}

/* Global Loading Overlay */
.g-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.g-loading-overlay.hidden {
  display: none;
}

.g-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e0e2ec;
  border-top-color: #0b57d0;
  border-radius: 50%;
  animation: gSpin 0.75s linear infinite;
}

@keyframes gSpin {
  to {
    transform: rotate(360deg);
  }
}

.g-loading-text {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #444746;
  font-family: 'Google Sans', Roboto, sans-serif;
}

/* ===================================================================
   AUTH MODAL (LOGIN & SIGNUP TABBED DIALOG)
   =================================================================== */
.auth-dialog {
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.auth-dialog-header {
  padding: 12px 14px 0 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-tabs {
  display: flex;
  gap: 6px;
}

.auth-tab {
  background: none;
  border: none;
  padding: 8px 16px 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.auth-tab.active {
  color: #02590F;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #02590F;
  border-radius: 3px 3px 0 0;
}

.auth-modal-body {
  padding: 18px 16px 20px;
}

.auth-alert {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
  text-align: left;
}

.auth-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-alert.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form.hidden {
  display: none !important;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 11px;
  color: #64748b;
  pointer-events: none;
}

.form-input-solid.with-icon {
  width: 100%;
  padding-left: 36px;
  padding-right: 38px;
  box-sizing: border-box;
}

.btn-pwd-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-pwd-toggle:hover {
  color: #1e293b;
}

.btn-auth-submit {
  width: 100%;
  height: 42px;
  background: #02590F;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 89, 15, 0.25);
  transition: all 0.2s ease;
}

.btn-auth-submit:hover {
  background: #0d652d;
}

.btn-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-switch-row {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  color: #02590F;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.82rem;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================================================
   HOME PAGE: GMAIL SELL MARKET TOP 2 BUYERS (When Account is Activated)
   =================================================================== */
.home-market-section {
  width: 100%;
  margin-top: 2px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
  margin-bottom: 14px;
}

.hmh-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hmh-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.hmh-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.1;
}

.hmh-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
  line-height: 1.2;
}

.hmh-view-all svg {
  stroke: #ffffff !important;
}

.hmh-view-all:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

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

/* Home Buyer Card (Matches Sell Market Page .p2p-order-card full size) */
.home-buyer-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.home-buyer-card:hover {
  border-color: #cbd5e1;
}

.home-buyer-card .btn-p2p-sell {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Solid Color Top Buyer Badge - Attached Top-Right Corner Small Size */
.home-top-buyer-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 0 13px 0 8px;
  white-space: nowrap;
  line-height: 1.1;
  z-index: 2;
  pointer-events: none;
}

/* ===================================================================
   IN-SITE PAYMENT CHECKOUT OVERLAY + TOP STICKY NOTICE
   =================================================================== */
.gateway-checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gateway-checkout-overlay.hidden {
  display: none !important;
}

.gateway-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.gsh-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
}

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

.gsh-lock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.gsh-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.gsh-btn-verify {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.gsh-btn-verify:hover {
  background: var(--primary-hover);
}

.gsh-btn-verify:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.gsh-btn-close {
  width: 30px;
  height: 30px;
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gateway-sticky-notice {
  background: #fefce8;
  border-bottom: 1px solid #fde047;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gateway-load-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.gls-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  flex-shrink: 0;
}

.gls-dot.loaded {
  background: var(--primary);
}

.gsn-icon {
  color: #b45309;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
}

.gsn-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gsn-headline {
  font-size: 0.80rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1.25;
}

.gsn-body {
  font-size: 0.72rem;
  color: #78350f;
  margin: 0;
  line-height: 1.38;
  font-weight: 500;
}

.gateway-status-banner {
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.gateway-status-banner.error {
  background: #dc2626;
  color: #ffffff;
}

.gateway-status-banner.success {
  background: var(--primary);
  color: #ffffff;
}

.gateway-iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.gateway-checkout-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===================================================================
   ZERO-FLICKER HYDRATION GUARDS & SMOOTH PAGE TRANSITIONS
   =================================================================== */

@view-transition {
  navigation: auto;
}

html.hg-auth-in #btnHeaderAuth {
  display: none !important;
}

html.hg-auth-in #hamburgerBtn {
  display: flex !important;
}

html.hg-auth-out #hamburgerBtn {
  display: none !important;
}

html.hg-auth-out #btnHeaderAuth {
  display: inline-flex !important;
}

html.hg-activated #homeActivationSection {
  display: none !important;
}

html.hg-activated #homeBuyersSection {
  display: flex !important;
}

html.hg-unactivated #homeBuyersSection {
  display: none !important;
}

html.hg-unactivated #homeActivationSection {
  display: block !important;
}

html.hg-hydrating #userLiveBalance,
html.hg-hydrating #todayEarningsDisplay,
html.hg-hydrating #btnGoToWork,
html.hg-hydrating #homeBuyersList,
html.hg-hydrating #sellUserBalance,
html.hg-hydrating #sellTopAvailableGmails,
html.hg-hydrating #p2pOrdersList,
html.hg-hydrating #historyRecordsList {
  visibility: hidden !important;
}