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

/* ============================================
   MOVIDA — Orange Light Theme
   Car Rental & Investment Platform
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #E86A10;
  --primary-light: #FF8C38;
  --primary-dark: #C45500;
  --primary-rgb: 232, 106, 16;
  --primary-gradient: linear-gradient(135deg, #E86A10 0%, #FF8C38 100%);
  --primary-gradient-reverse: linear-gradient(135deg, #FF8C38 0%, #E86A10 100%);

  /* Accent & Semantic */
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --accent-dark: #D97706;
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-dark: #059669;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --danger-dark: #DC2626;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --warning-dark: #D97706;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --info-dark: #2563EB;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Backgrounds */
  --bg-body: #F5F3F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFBF7;
  --bg-input: #FFFFFF;
  --bg-header: #FFFFFF;
  --bg-tabbar: #FFFFFF;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #525252;
  --text-muted: #A3A3A3;
  --text-inverse: #FFFFFF;
  --text-link: #E86A10;

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

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

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -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.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.08);
  --shadow-orange: 0 2px 8px rgba(232, 106, 16, 0.10);
  --shadow-orange-lg: 0 4px 14px rgba(232, 106, 16, 0.14);

  /* 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 0% 0%, rgba(var(--primary-rgb), 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(var(--primary-rgb), 0.015) 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;
}


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

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


/* ============================================
   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.05);
}

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

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


/* ============================================
   Balance Card
   ============================================ */

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

.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-muted);
  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: var(--text-primary);
  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-dark);
  background: var(--success-light);
}

.balance-change.negative {
  color: var(--danger-dark);
  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-orange);
}

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

.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-primary);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.20);
}

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

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

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


/* ============================================
   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
   ============================================ */

.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
   ============================================ */

.card {
  background: var(--bg-card);
  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(--gray-100);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-md);
  color: var(--text-primary);
}


/* ============================================
   Stats Grid
   ============================================ */

.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-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.10);
  color: var(--primary);
}

.stat-icon.accent {
  background: rgba(245, 158, 11, 0.10);
  color: var(--accent-dark);
}

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

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

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


/* ============================================
   Quick Actions
   ============================================ */

.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);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 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.08);
  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.15);
}

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


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

.menu-list {
  background: var(--bg-card);
  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(--gray-100);
}

.menu-item:active {
  background: var(--gray-50);
}

.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.08);
  color: var(--primary);
}

.menu-icon.accent {
  background: rgba(245, 158, 11, 0.10);
  color: var(--accent-dark);
}

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

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

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

.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);
  color: var(--text-inverse);
  flex-shrink: 0;
}


/* ============================================
   Product List & Cards
   ============================================ */

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

.product-card {
  background: var(--bg-card);
  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) 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: var(--gray-50);
  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;
}


/* ============================================
   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.12);
}

.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.06);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.10);
}


/* ============================================
   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.10);
  color: var(--primary-dark);
}

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

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

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

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


/* ============================================
   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.06);
  padding-bottom: var(--safe-bottom);
}

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

.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-orange);
  transition: all var(--transition-base);
}

.tab-main-btn:active {
  transform: scale(0.92);
  box-shadow: var(--shadow-orange-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.08);
  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.06);
  pointer-events: none;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  margin-bottom: var(--space-md);
  background: rgba(255, 255, 255, 0.15);
  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.8);
}

.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.2);
  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-500) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}


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

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

.text-accent {
  color: var(--accent-dark) !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 10px rgba(var(--primary-rgb), 0.25);
  }
}


/* ============================================
   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(--gray-50) 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; }


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

/* Landscape safety */
@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;
  }
}
