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

/* ============================================
   ZINEX — Crypto Arbitrage Dark Theme
   Cyan / Purple Gradient · Professional Trading UI
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #00C4E8;
  --primary-light: #33D4F0;
  --primary-dark: #00A0C0;
  --primary-rgb: 0, 196, 232;
  --primary-gradient: linear-gradient(135deg, #00C4E8 0%, #8B3FFF 100%);
  --primary-gradient-reverse: linear-gradient(135deg, #8B3FFF 0%, #00C4E8 100%);

  /* Accent & Semantic */
  --accent: #8B3FFF;
  --accent-light: #A66FFF;
  --accent-dark: #6A2FCC;
  --accent-rgb: 139, 63, 255;
  --success: #22C55E;
  --success-light: rgba(34, 197, 94, 0.15);
  --success-dark: #16A34A;
  --danger: #EF4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --danger-dark: #DC2626;
  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.15);
  --warning-dark: #D97706;
  --info: #3B82F6;
  --info-light: rgba(59, 130, 246, 0.15);
  --info-dark: #2563EB;

  /* Neutrals (dark mode scale) */
  --white: #FFFFFF;
  --gray-50: #1a1f2e;
  --gray-100: #1F2937;
  --gray-200: #374151;
  --gray-300: #4B5563;
  --gray-400: #6B7280;
  --gray-500: #9CA3AF;
  --gray-600: #D1D5DB;
  --gray-700: #E5E7EB;
  --gray-800: #F3F4F6;
  --gray-900: #F9FAFB;

  /* Backgrounds */
  --bg-body: #070B14;
  --bg-card: #0F1629;
  --bg-card-hover: #182038;
  --bg-input: #151D33;
  --bg-header: #0B1022;
  --bg-tabbar: #0B1022;
  --bg-elevated: #182038;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #8B9DC3;
  --text-inverse: #FFFFFF;
  --text-link: #00B4D8;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-md: 17px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 2px 12px rgba(0, 180, 216, 0.15);
  --shadow-primary-lg: 0 4px 20px rgba(0, 180, 216, 0.25);
  --shadow-accent: 0 4px 20px rgba(123, 47, 255, 0.20);
  --shadow-glow: 0 0 30px rgba(0, 180, 216, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Safe area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ============================================
   Reset & Base
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-body);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0, 180, 216, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(123, 47, 255, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}


/* ============================================
   App Container
   ============================================ */

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-body);
}


/* ============================================
   Header (.mv-header)
   ============================================ */

.mv-header {
  background: linear-gradient(135deg, #0A0E1A 0%, #0D1B2A 50%, #1B0A2E 100%);
  padding: 16px 20px 28px;
  position: relative;
  overflow: hidden;
}

.mv-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.mv-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.mv-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.mv-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mv-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mv-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mv-logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.mv-notif {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mv-notif:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mv-notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00B4D8;
  border: 2px solid #0D1321;
  animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.mv-greeting {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.mv-greeting strong {
  color: #fff;
  font-weight: 700;
}


/* ============================================
   Header (generic .header)
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  padding: calc(var(--safe-top) + 12px) var(--space-md) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-default);
}

.header-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #FFFFFF;
}

.header-logo {
  height: 28px;
}

.header-action {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--border-default);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.header-action:active {
  background: var(--gray-200);
  transform: scale(0.95);
}

.header-back {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}


/* ============================================
   Wallet Card (.mv-wallet)
   ============================================ */

.mv-wallet {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin: -16px 16px 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-default);
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.mv-wallet::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.06);
  pointer-events: none;
}

.mv-wallet-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(123, 47, 255, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.mv-wallet-info {
  flex: 1;
}

.mv-wallet-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mv-wallet-amount {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 2px 0 14px;
}

.mv-wallet-actions {
  display: flex;
  gap: 10px;
}

.mv-wallet-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.mv-wallet-btn-dep {
  background: var(--primary-gradient);
  color: #fff;
}

.mv-wallet-btn-dep:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
}

.mv-wallet-btn-sac {
  background: rgba(0, 180, 216, 0.08);
  color: #fff;
  border: 1.5px solid rgba(0, 180, 216, 0.5);
}

.mv-wallet-btn-sac:hover {
  background: rgba(0, 180, 216, 0.1);
}


/* ============================================
   Balance Card (generic)
   ============================================ */

.balance-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin: var(--space-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-default);
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.balance-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.06);
  pointer-events: none;
}

.balance-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.balance-amount {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.balance-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-top: var(--space-sm);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.balance-change.positive {
  color: var(--success);
  background: var(--success-light);
}

.balance-change.negative {
  color: var(--danger);
  background: var(--danger-light);
}


/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-primary-lg);
  filter: brightness(1.1);
}

.btn-primary:active {
  filter: brightness(0.95);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-md);
  border-radius: var(--radius-xl);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 20px;
}


/* ============================================
   Quick Actions (.mv-actions, .mv-action)
   ============================================ */

.mv-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 20px;
}

.mv-action {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  display: block;
  width: 100%;
}

.mv-action:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 180, 216, 0.08);
  border-color: rgba(0, 180, 216, 0.2);
}

.mv-action.checkin-loading {
  opacity: 0.7;
  pointer-events: none;
}

.mv-action.checkin-done {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: checkinPop 0.45s ease;
}

.mv-action.checkin-done .mv-action-label {
  color: var(--success);
  font-weight: 700;
}

.mv-action.checkin-done .mv-action-icon {
  background: linear-gradient(135deg, #16A34A, #22C55E);
}

@keyframes checkinPop {
  0% { transform: scale(0.95); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.mv-action-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.mv-action-icon.cyan {
  background: linear-gradient(135deg, #00B4D8, #0090B0);
}

.mv-action-icon.green {
  background: linear-gradient(135deg, #10B981, #34D399);
}

.mv-action-icon.blue {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.mv-action-icon.purple {
  background: linear-gradient(135deg, #7B2FFF, #9B5FFF);
}

.mv-action-icon.muted {
  background: var(--gray-200);
  color: var(--gray-400);
}

.mv-action-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}


/* ============================================
   Coupon Redemption Section
   ============================================ */



/* ============================================
   Quick Actions (generic)
   ============================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding: 0 var(--space-md);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.quick-action:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background var(--transition-fast);
}

.quick-action:active .quick-action-icon {
  background: rgba(var(--primary-rgb), 0.2);
}

.quick-action-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}


/* ============================================
   Stats Row (.mv-stats, .mv-stat)
   ============================================ */

.mv-stats {
  display: flex;
  gap: 12px;
  padding: 0 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mv-stats::-webkit-scrollbar {
  display: none;
}

.mv-stat {
  flex: 1 1 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.mv-stat-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.mv-stat-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
}

.mv-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}


/* ============================================
   Plans Tabs
   ============================================ */

.plans-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  margin-left: 16px;
  margin-right: 16px;
  padding: 5px;
}

.plans-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.plans-tab i {
  font-size: 16px;
}

.plans-tab.active {
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(123,47,255,0.15));
  color: #00B4D8;
  box-shadow: 0 2px 12px rgba(0,180,216,0.15);
}

.plans-tab:not(.active):hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.plans-tab-content {
  display: none;
}

.plans-tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plans-tab-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0 16px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0,180,216,0.04);
  border: 1px solid rgba(0,180,216,0.1);
  border-radius: 10px;
}

.plans-tab-hint i {
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

.pro-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(0,180,216,0.08), rgba(123,47,255,0.08));
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 16px 14px;
}

.pro-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--info));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: #fff;
}

.pro-banner-info {
  flex: 1;
}

.pro-banner-title {
  font-weight: 600;
  color: var(--white);
  font-size: 14px;
}

.pro-banner-desc {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.pro-banner-btn {
  background: linear-gradient(135deg, var(--primary), #7B2FFF);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
}

.pro-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,180,216,0.3);
}

.pro-active-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 14px;
  padding: 14px 20px;
  margin: 0 16px 14px;
  font-weight: 600;
  color: var(--success);
  font-size: 13px;
}

.pro-active-banner i {
  font-size: 20px;
}


/* ============================================
   Stats Grid (generic)
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-item:active {
  transform: scale(0.97);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.primary {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.stat-icon.accent {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.stat-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon.info {
  background: var(--info-light);
  color: var(--info);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}


/* ============================================
   Notification Ticker (.mv-ticker)
   ============================================ */

.mv-ticker {
  margin: 0 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mv-ticker-inner {
  display: flex;
  animation: tickerScroll 25s linear infinite;
}

.mv-ticker-inner span {
  white-space: nowrap;
  padding-right: 40px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================
   Section Titles (.mv-section-title)
   ============================================ */

.mv-section {
  padding: 0 16px;
  margin-bottom: 16px;
}

.mv-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.mv-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}


/* ============================================
   Content Areas
   ============================================ */

.content {
  padding: var(--space-md);
  padding-bottom: calc(80px + var(--safe-bottom));
}

.content-flush {
  padding: 0;
  padding-bottom: calc(80px + var(--safe-bottom));
}


/* ============================================
   Sections (generic)
   ============================================ */

.section {
  margin-bottom: var(--space-lg);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.section-link:active {
  color: var(--primary-dark);
}


/* ============================================
   Cards (generic)
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: var(--space-md);
}

.card-header {
  padding: var(--space-md) var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--border-default);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-md);
  color: var(--text-primary);
}


/* ============================================
   Plan Cards (.mv-vehicle-* / .arb-card)
   ============================================ */

.mv-vehicles {
  padding: 0 16px 100px;
}

.mv-vehicle {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
}

.mv-vehicle:nth-child(1) { animation-delay: .05s; }
.mv-vehicle:nth-child(2) { animation-delay: .1s; }
.mv-vehicle:nth-child(3) { animation-delay: .15s; }
.mv-vehicle:nth-child(4) { animation-delay: .2s; }
.mv-vehicle:nth-child(5) { animation-delay: .25s; }
.mv-vehicle:nth-child(6) { animation-delay: .3s; }
.mv-vehicle:nth-child(7) { animation-delay: .35s; }
.mv-vehicle:nth-child(8) { animation-delay: .4s; }

.mv-vehicle:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 180, 216, 0.08);
  transform: translateY(-2px);
  border-color: rgba(0, 180, 216, 0.15);
}

.mv-vehicle-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(123, 47, 255, 0.1) 100%);
  display: block;
}

.mv-vehicle-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.08) 0%, rgba(123, 47, 255, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--primary);
  opacity: 0.4;
}

.mv-vehicle-body {
  padding: 18px 18px 16px;
}

.mv-vehicle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mv-vehicle-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.mv-vehicle-price-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-md);
}

.mv-vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mv-vehicle-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.mv-vehicle-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mv-vehicle-stat-value {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.mv-vehicle-stat-value.highlight {
  color: var(--primary);
}

.mv-vehicle-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mv-vehicle-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
  filter: brightness(1.1);
}

.mv-vehicle-btn:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
}

/* ============================================
   Arbitrage Product Cards (.arb-card)
   ============================================ */

.arb-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

.arb-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.arb-badge.bonus {
  background: var(--success);
  color: #fff;
}
.arb-badge.pro {
  background: linear-gradient(135deg, var(--primary), #7B2FFF);
  color: #fff;
}

.arb-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.arb-coin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.arb-coin-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(0,180,216,0.2);
  box-shadow: 0 0 18px rgba(0,180,216,0.15);
}

.arb-exchanges-stack {
  display: flex;
  align-items: center;
}

.arb-ex-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  object-fit: contain;
  background: #1a1a2e;
}

.arb-card-info {
  flex: 1;
  min-width: 0;
}

.arb-card-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arb-card-pair {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.arb-card-duration {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.arb-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.arb-card-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arb-stat-val {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}
.arb-stat-val.green {
  color: #34D399;
}
.arb-stat-val.cyan {
  color: var(--primary);
}

.arb-stat-lbl {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.arb-card-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.arb-card-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.arb-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
  filter: brightness(1.1);
}
.arb-card-btn.used {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}
.arb-card-btn.locked {
  background: rgba(123,47,255,0.15);
  color: rgba(123,47,255,0.5);
  cursor: not-allowed;
}

/* ============================================
   Product List & Cards (generic)
   ============================================ */

.product-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:active {
  transform: scale(0.98);
}

.product-header {
  background: var(--primary-gradient);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-inverse);
}

.product-price {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--text-inverse);
}

.product-body {
  padding: var(--space-md);
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.product-stat {
  text-align: center;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.product-stat-value {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
}

.product-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 2px;
}


/* ============================================
   Toast Notifications
   ============================================ */

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1a2236;
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-default);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
  border-color: var(--success);
}

.toast.error {
  background: var(--danger);
  border-color: var(--danger);
}


/* ============================================
   Purchase Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.modal-header {
  background: var(--primary-gradient);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.modal-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
  text-align: center;
}

.modal-plan {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-amount {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0;
}

.modal-body-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.modal-btn-cancel {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.modal-btn-cancel:hover {
  background: var(--gray-200);
}

.modal-btn-confirm {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.modal-btn-confirm:hover {
  box-shadow: var(--shadow-primary-lg);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ============================================
   Modal Assinatura PRO (automático)
   ============================================ */

.pro-sub-overlay {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pro-sub-overlay.show {
  display: flex;
}

.pro-sub-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(165deg, #151d2e 0%, #0f172a 50%, #0b1220 100%);
  border: 1px solid rgba(0, 196, 232, 0.2);
  border-radius: 20px;
  padding: 28px 24px 22px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 0 48px rgba(0, 196, 232, 0.06);
  animation: proSubIn 0.28s ease-out;
}

@keyframes proSubIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pro-sub-modal-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 196, 232, 0.12) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}

.pro-sub-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}

.pro-sub-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.pro-sub-modal-head {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  z-index: 1;
}

.pro-sub-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #00c4e8 0%, #8b5cf6 100%);
  box-shadow: 0 8px 28px rgba(0, 196, 232, 0.25);
}

.pro-sub-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.pro-sub-modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.pro-sub-modal-body {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.pro-sub-modal-question {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
  text-align: center;
}

.pro-sub-modal-question strong {
  color: var(--text-primary);
}

.pro-sub-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05em;
  color: var(--primary);
  white-space: nowrap;
}

.pro-sub-modal-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  padding: 12px 14px;
  background: rgba(0, 196, 232, 0.06);
  border: 1px solid rgba(0, 196, 232, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pro-sub-modal-hint i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pro-sub-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pro-sub-btn {
  flex: 1;
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.pro-sub-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.pro-sub-btn-cancel {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-sub-btn-cancel:hover:not(:disabled) {
  background: rgba(100, 116, 139, 0.28);
  color: var(--text-primary);
}

.pro-sub-btn-ok {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 55%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.35);
}

.pro-sub-btn-ok:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 380px) {
  .pro-sub-modal-actions {
    flex-direction: column-reverse;
  }

  .pro-sub-btn {
    width: 100%;
  }
}


/* ============================================
   Group Modal
   ============================================ */

.group-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.group-modal-overlay.show {
  display: flex;
}

.group-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.group-modal-header {
  background: var(--primary-gradient);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.group-modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.group-modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.group-modal-body {
  padding: 24px;
  text-align: center;
}

.group-modal-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.group-modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.group-modal-btn.telegram {
  background: #0088cc;
  color: #fff;
}

.group-modal-btn.telegram:hover {
  background: #0077b5;
}

.group-modal-btn.close {
  background: var(--gray-100);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.group-modal-btn.close:hover {
  background: var(--gray-200);
}

.group-modal-box.lancamento-mode {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 180, 216, 0.12);
}

.group-modal-btn.investir {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.group-modal-btn.investir:hover {
  box-shadow: var(--shadow-primary-lg);
  filter: brightness(1.1);
}


/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 14px var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition: all var(--transition-base);
  outline: none;
}

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

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.form-input-lg {
  padding: 18px var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: var(--radius-xl);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
  line-height: 1.4;
}


/* ============================================
   Value Grid (Option Selector)
   ============================================ */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.value-option {
  padding: 14px var(--space-sm);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.value-option:active {
  transform: scale(0.96);
}

.value-option.active,
.value-option.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}


/* ============================================
   Menu List
   ============================================ */

.menu-list {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0 var(--space-md);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
  border: none;
  width: 100%;
  background: none;
  text-align: left;
}

.menu-item + .menu-item {
  border-top: 1px solid var(--border-default);
}

.menu-item:active {
  background: rgba(255, 255, 255, 0.03);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.menu-icon.accent {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.menu-icon.success {
  background: var(--success-light);
  color: var(--success);
}

.menu-icon.danger {
  background: var(--danger-light);
  color: var(--danger);
}

.menu-icon.info {
  background: var(--info-light);
  color: var(--info);
}

.menu-content {
  flex: 1;
  min-width: 0;
}

.menu-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.menu-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.menu-arrow {
  color: var(--gray-400);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.menu-item:active .menu-arrow {
  transform: translateX(2px);
}

.menu-badge {
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: var(--text-inverse);
  flex-shrink: 0;
}


/* ============================================
   Badges
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--gray-100);
  color: var(--text-secondary);
}

.badge-primary {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-info {
  background: var(--info-light);
  color: var(--info);
}


/* ============================================
   Empty State
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.empty-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}


/* ============================================
   Tab Bar
   ============================================ */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 200;
  background: var(--bg-tabbar);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.4);
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--border-default);
}

.tabbar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 0 6px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--gray-400);
  font-size: 22px;
  transition: color var(--transition-fast);
  position: relative;
}

.tab-item span {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-gradient);
}

.tab-main {
  position: relative;
  margin-top: -20px;
}

.tab-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: var(--text-inverse);
  border: 4px solid var(--bg-tabbar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-base);
}

.tab-main-btn:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-primary-lg);
}


/* ============================================
   Profile Header
   ============================================ */

.profile-header {
  background: var(--primary-gradient);
  padding: calc(var(--safe-top) + 24px) var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  margin-bottom: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-inverse);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 4px;
}

.profile-info {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-inverse);
  font-size: var(--font-size-xs);
  font-weight: 700;
}


/* ============================================
   Plan Disabled State
   ============================================ */

.plan-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.3);
}

.plan-btn-disabled {
  background: var(--gray-200) !important;
  color: var(--gray-400) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}


/* ============================================
   Utility Classes — Text
   ============================================ */

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

.text-accent {
  color: var(--accent) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* Margins */
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.mx-md { margin-left: var(--space-md) !important; margin-right: var(--space-md) !important; }

.p-md { padding: var(--space-md) !important; }
.p-lg { padding: var(--space-lg) !important; }
.px-md { padding-left: var(--space-md) !important; padding-right: var(--space-md) !important; }

.gap-sm { gap: var(--space-sm) !important; }
.gap-md { gap: var(--space-md) !important; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.w-100 { width: 100% !important; }


/* ============================================
   Animations — Keyframes
   ============================================ */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
  70% {
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(var(--primary-rgb), 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.30);
  }
}


/* ============================================
   Animation Utility Classes
   ============================================ */

.animate-in {
  animation: scaleIn 0.4s ease-out both;
}

.animate-up {
  animation: slideUp 0.5s ease-out both;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounceIn 0.6s ease-out both;
}

.animate-shimmer {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--bg-elevated) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.animate-slide-right {
  animation: slideInRight 0.4s ease-out both;
}

/* Staggered delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.30s; }


/* ============================================
   Scrollbar Styling (dark theme)
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-300);
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 480px) {
  :root {
    --font-size-2xl: 28px;
    --font-size-xl: 22px;
    --font-size-lg: 18px;
  }

  .stats-grid {
    gap: var(--space-sm);
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-action-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .product-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .balance-amount {
    font-size: var(--font-size-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .tabbar {
    padding-bottom: 4px;
  }

  .tab-main {
    margin-top: -12px;
  }

  .tab-main-btn {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}
