/* CRED-style card */
.cred-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(320px, 92vw, 440px);
  max-width: 100%;
  margin: 16px auto;
  border-radius: 16px;
  background: #1E1E1E;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EAEAEA;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
}

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

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

.wallet-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.month-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.month-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.header-right {
  text-align: right;
}

.spend-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.spend-amount {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.budget-amount {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.progress-container {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #045d56, #033c3a);
  border-radius: 9999px;
  width: 74%;
  animation: progressFill 0.8s ease-out;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 74%; }
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.remaining {
  font-variant-numeric: tabular-nums;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.action-buttons svg { 
  flex: 0 0 auto; 
}

.reminder-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  background: #045D56;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #EAEAEA;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: badgeAppear 0.4s ease-out 0.4s both;
}

@keyframes badgeAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reminder-popup {
  margin-top: 16px;
  border-radius: 16px;
  background: #f0f9f8;
  padding: 12px;
  color: #045D56;
  animation: popupAppear 0.4s ease-out 0.6s both;
}

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

.popup-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popup-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.popup-bold {
  font-weight: 600;
}

.dismiss-btn {
  margin-left: 8px;
  border-radius: 8px;
  background: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: #045D56;
  border: 1px solid #a8d5d0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dismiss-btn:hover {
  background: #f0f9f8;
}

.reminder-popup.hidden {
  display: none;
}

/* Treemap card styling */
.desktop-feature-image {
  display: block;
}

.mobile-feature-card {
  display: none;
}

.budget-cards-container.mobile-feature-card {
  display: none;
}

.unified-budget-card.mobile-feature-card {
  display: none;
}

.smart-reminders-card.mobile-feature-card {
  display: none;
}

.treemap-card {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #1E1E1E;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EAEAEA;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
  height: auto;
  align-self: flex-start;
}

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

.treemap-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.treemap-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.treemap-header-text {
  display: flex;
  flex-direction: column;
}

.treemap-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.2;
}

.treemap-month {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.treemap-header-right {
  text-align: right;
}

.treemap-total-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.treemap-total-amount {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--text);
}

.treemap-container {
  position: relative;
  width: 100%;
  height: clamp(200px, 45vw, 300px);
  aspect-ratio: auto;
  background: #0a0a0a;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 8px;
}

.treemap-rect {
  position: absolute;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
}

.treemap-label {
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  margin-bottom: 2px;
  text-align: center;
  width: 100%;
}

.treemap-rect.groceries .treemap-label,
.treemap-rect.dining .treemap-label {
  color: #000000;
  font-weight: 700;
}

.treemap-value {
  font-size: 10px;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.treemap-rect.groceries .treemap-value,
.treemap-rect.dining .treemap-value {
  color: #000000;
  font-weight: 600;
}

.treemap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  font-size: 11px;
  color: #000000;
  font-weight: 500;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Budget Cards Styling */
.budget-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

/* Unified Budget Card Styling */
.unified-budget-card {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #1E1E1E;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EAEAEA;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
}

.budget-main-section {
  margin-bottom: 20px;
}

.budget-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.budget-categories-section {
  margin-bottom: 20px;
}

.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  padding: 6px;
  border-radius: 8px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.category-header-text {
  display: flex;
  flex-direction: column;
}

.category-month-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.category-total-amount {
  font-size: 14px;
  font-weight: 600;
  color: #EAEAEA;
  margin: 0;
}

.budget-setup-card {
  width: 100%;
  border-radius: 16px;
  background: #1E1E1E;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EAEAEA;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
}

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

.budget-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.budget-header-text {
  display: flex;
  flex-direction: column;
}

.budget-month-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.budget-month-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.budget-header-right {
  text-align: right;
}

.budget-target-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.budget-target-amount {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.budget-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.budget-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-currency {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.budget-amount-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #EAEAEA;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.budget-amount-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.budget-steppers {
  display: flex;
  gap: 4px;
}

.budget-stepper-btn {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.budget-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.budget-stepper-btn:active {
  transform: scale(0.99);
}

.budget-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-soft);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}

.budget-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--progress);
  border-radius: 3px;
  width: calc(var(--slider-value, 5) * 1%);
  transition: width 0.3s ease;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.budget-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.budget-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.budget-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: #045D56;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #EAEAEA;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.budget-save-btn:hover {
  background: #045D56;
}

.budget-save-btn:active {
  transform: scale(0.99);
}

.budget-saved-toast {
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  padding: 8px 12px;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
  text-align: center;
}

/* Category Budget Card */
.category-budget-card {
  width: 100%;
  border-radius: 16px;
  background: #1E1E1E;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EAEAEA;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
}

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

.category-month-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.category-header-right {
  text-align: right;
}

.category-total-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.category-total-amount {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.category-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-select {
  min-width: 144px;
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.category-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 77, 64, 0.1);
}

.category-select option {
  background: var(--surface);
  color: var(--text);
}

.category-amount-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-currency {
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}

.category-amount-input {
  width: 112px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  outline: none;
}

.category-amount-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 77, 64, 0.1);
}

.category-steppers {
  display: flex;
}

.category-stepper-btn {
  margin-left: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.category-stepper-btn:active {
  transform: scale(0.99);
}

.category-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-soft);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}

.category-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--progress);
  border-radius: 3px;
  width: calc(var(--category-slider-value, 10) * 1%);
  transition: width 0.3s ease;
}

.category-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.category-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.category-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.category-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-reset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.category-reset-btn:active {
  transform: scale(0.99);
}

.category-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: #045D56;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #EAEAEA;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-save-btn:hover {
  background: #045D56;
}

.category-save-btn:active {
  transform: scale(0.99);
}

.category-saved-toast {
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  padding: 8px 12px;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
  text-align: center;
}

/* Smart Reminders Card Styles */
.smart-reminders-card {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #121212;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #EAEAEA;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
}

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

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

.reminders-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.reminders-header-text {
  display: flex;
  flex-direction: column;
}

.reminders-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.reminders-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.reminders-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.reminders-health-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.reminders-health-percentage {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.reminders-progress-container {
  margin-bottom: 20px;
}

.reminders-progress-bar {
  width: 100%;
  height: 8px;
  background: #262626;
  border-radius: 4px;
  overflow: hidden;
}

.reminders-progress-fill {
  height: 100%;
  background: #045D56;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1E1E1E;
  border-radius: 12px;
  border: 1px solid #262626;
}

.reminder-icon {
  padding: 6px;
  border-radius: 8px;
  background: #262626;
  color: #A6A6A6;
  flex-shrink: 0;
}

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

.reminder-badge {
  background: #262626;
  color: #A6A6A6;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.reminder-title {
  font-size: 14px;
  font-weight: 600;
  color: #EAEAEA;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.reminder-cta-btn {
  background: #045D56;
  color: #EAEAEA;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.reminder-cta-btn:hover {
  background: #033c3a;
}

.reminder-done-btn {
  background: transparent;
  color: #A6A6A6;
  border: 1px solid #262626;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reminder-done-btn:hover {
  background: #262626;
  color: #EAEAEA;
}

.add-reminder-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #045D56;
  color: #EAEAEA;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(4, 93, 86, 0.3);
}

.add-reminder-btn:hover {
  background: #033c3a;
}

.add-reminder-pulse {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Goal Card Styles */
.goal-card {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

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

.goal-title {
  color: var(--brand);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.goal-amounts {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
}

.goal-progress-container {
  width: 100%;
  height: 12px;
  border-radius: 9999px;
  background: #FDE68A;
  overflow: hidden;
}

.goal-progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.goal-progress-fill {
  height: 100%;
  background: var(--progress);
  border-radius: 9999px;
  transition: width 0.7s ease;
}

.goal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand-700);
}

.goal-controls {
  background: var(--surface);
  border: 1px solid #FDE68A;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 8px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  width: 112px;
  font-size: 14px;
  color: var(--muted);
}

.control-input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
  max-width: 120px;
}

.control-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 77, 64, 0.1);
}

.control-buttons {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.control-btn {
  flex: 1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn.primary {
  background: var(--brand);
  color: #fff;
}

.control-btn.primary:hover {
  background: var(--brand-700);
}

.control-btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.control-btn.secondary:hover {
  background: var(--surface-soft);
}

/* Mobile responsive adjustments for cards */
@media (max-width: 768px) {
  .desktop-image {
    display: none !important;
  }
  
  .mobile-card {
    display: block !important;
  }

  .desktop-feature-image {
    display: none !important;
  }
  
  .mobile-feature-card {
    display: block !important;
  }

  .hero-image-container {
    display: block;
    width: 100%;
    max-width: none;
  }

  .cred-card.mobile-card {
    width: min(92vw, 440px);
    max-width: 100%;
    margin: 16px auto;
    padding: 16px;
    border-radius: 12px;
  }
  
  .spend-amount {
    font-size: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .reminder-popup .popup-content {
    flex-wrap: wrap;
  }
  .dismiss-btn {
    margin-left: 0;
  }

  .feature-image {
    width: 100% !important;
    max-width: none !important;
  }

  .treemap-card {
    width: 100%;
    max-width: 100%;
  }

  .treemap-label {
    font-size: 10px;
  }

  .treemap-value {
    font-size: 9px;
  }

  .treemap-legend {
    gap: 6px;
  }

  .legend-item {
    font-size: 10px;
    padding: 3px 6px;
  }

  .legend-color {
    width: 10px;
    height: 10px;
  }

  .cred-card.mobile-card,
  .treemap-card.mobile-feature-card,
  .budget-cards-container.mobile-feature-card,
  .unified-budget-card.mobile-feature-card,
  .smart-reminders-card.mobile-feature-card {
    width: min(92vw, 440px);
    max-width: 100%;
    margin: 16px auto;
    min-height: 500px;
    height: 500px;
    display: flex;
    flex-direction: column;
  }

  .product-features { padding-left: 0; padding-right: 0; }
  .features-scroll-container { padding-left: 0; padding-right: 0; }
  .feature-card { padding-left: 0; padding-right: 0; }

  .feature-image {
    display: block;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none !important;
  }

  .treemap-legend { flex-wrap: wrap; }

  .budget-cards-container.mobile-feature-card {
    display: flex !important;
  }
  
  .unified-budget-card.mobile-feature-card {
    display: block !important;
  }
  
  .smart-reminders-card.mobile-feature-card {
    display: block !important;
  }
  
  .treemap-card.mobile-feature-card {
    text-align: center;
  }
  
  .treemap-card.mobile-feature-card .treemap-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .treemap-card.mobile-feature-card .treemap-header-left {
    justify-content: center;
  }
  
  .treemap-card.mobile-feature-card .treemap-header-right {
    text-align: center;
  }
  
  .treemap-card.mobile-feature-card .treemap-legend {
    justify-content: center;
  }
  
  .treemap-card.mobile-feature-card .treemap-container {
    border-radius: 0 !important;
  }
  
  .treemap-card.mobile-feature-card {
    justify-content: space-between;
  }

  .unified-budget-card.mobile-feature-card {
    justify-content: space-between;
  }

  .smart-reminders-card.mobile-feature-card {
    justify-content: space-between;
  }
}

/* Desktop: Ensure mobile feature cards are hidden */
@media (min-width: 769px) {
  .mobile-feature-card {
    display: none !important;
  }
  
  .desktop-feature-image {
    display: block !important;
  }
}

