/* Airbnb Calculator Specific Styles */

/* Header override - purple gradient like mortgage calculator */
header {
  background: linear-gradient(135deg, #b993d6, #8ca6db) !important;
  background-size: 200% 200% !important;
  animation: none !important;
}

/* Calculator page wrapper - light gray background like mortgage */
.calculator-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start !important;
  width: 100%;
  background: #f5f5f5 !important;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem 4rem !important;
}

/* Back link - positioned like mortgage calculator */
.back-link-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #6366f1;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #4f46e5;
  transform: translateX(-3px);
}

/* Wider card for 2-column layout */
.calculator-card {
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: white !important;
}

/* Override main style.css form layout */
#calcForm {
  display: block !important;
  flex-direction: initial !important;
}

/* Calculate ROI button styling */
#calcBtn {
  margin-top: 2rem !important;
  width: 100% !important;
  background: linear-gradient(135deg, #b993d6, #8ca6db) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#calcBtn:hover {
  transform: scale(1.02) !important;
  background: linear-gradient(135deg, #8ca6db, #b993d6) !important;
}

/* Section headings */
#calcForm h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
  grid-column: 1 / -1;
}

#calcForm h3:first-child {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Two-column form layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  margin-top: 0 !important;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  transition: all 0.2s ease;
  margin-top: 0 !important;
}

.form-group input:focus {
  border-color: #8ca6db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 147, 214, 0.2);
}

.form-group small {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3rem;
}

/* Visual Breakdown Styles */
.visual-breakdown {
  padding: 2rem;
  background: white;
  border-radius: 12px;
}

.money-flow-container {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.money-flow-item {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 8px;
  transition: all 0.2s;
}

.money-flow-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.money-flow-item.expense {
  border-left: 3px solid #fee2e2;
}

.money-flow-item.income {
  border-left: 3px solid #d1fae5;
}

.flow-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.flow-icon {
  font-size: 1.25rem;
}

.flow-name {
  font-size: 0.9rem;
}

.flow-bar-container {
  height: 24px;
  background: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.flow-bar {
  height: 100%;
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.flow-amount {
  font-weight: 700;
  font-size: 1.05rem;
  text-align: right;
}

.money-flow-total {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid #e5e7eb;
}

.wealth-building-section {
  margin-top: 3rem;
}

.simple-chart {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.year-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.year-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
  display: flex;
  align-items: center;
}

.year-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.bar-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
}

.bar-outer {
  height: 32px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  min-width: 80px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-value {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.summary-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-box {
  padding: 1.25rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-amount {
  font-size: 1.5rem;
  font-weight: 800;
}

.wealth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wealth-card {
  padding: 1.75rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.5);
}

.wealth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.wealth-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.wealth-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wealth-amount {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.wealth-detail {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.total-return-banner {
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.return-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.return-amount {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.return-detail {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
}

.reality-check {
  margin-top: 2rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.reality-check.success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-left-color: #10b981;
}

.reality-check h4 {
  margin: 0 0 1rem;
  color: #92400e;
  font-size: 1.25rem;
  font-weight: 700;
}

.reality-check.success h4 {
  color: #065f46;
}

.reality-check p {
  margin: 0.75rem 0;
  color: #78350f;
  line-height: 1.6;
  font-size: 0.95rem;
}

.reality-check.success p {
  color: #047857;
}

.reality-check strong {
  color: #92400e;
  font-weight: 700;
}

.reality-check.success strong {
  color: #065f46;
}

/* Result Summary Header - Styled Box matching mortgage */
.result-summary-header {
  background: linear-gradient(135deg, #b993d6, #8ca6db);
  border-radius: 16px;
  padding: 1.3rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 16px rgba(185, 147, 214, 0.25);
  position: relative;
}

.result-title-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.result-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.result-title-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

/* Share Button */
.share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Share Menu */
.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 1.8rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.share-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  color: #333;
}

.share-option:hover {
  background: #f5f6fb;
}

.share-option svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.25rem 0;
  padding: 0;
  cursor: default;
}

.share-divider:hover {
  background: #e5e7eb;
}

/* Embed Modal */
.embed-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.embed-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.embed-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.embed-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #111827;
  font-weight: 700;
}

.embed-close {
  background: #f3f4f6;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.embed-close:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

.embed-modal-body {
  padding: 1.75rem;
}

#embedCodeArea {
  width: 100%;
  height: 180px;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 1rem;
  background: #f9fafb;
  color: #1f2937;
  transition: all 0.2s;
}

#embedCodeArea:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.embed-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.embed-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

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

.embed-copy-btn svg {
  width: 18px;
  height: 18px;
}

.embed-options {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.embed-options h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #111827;
  font-weight: 600;
}

.embed-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.embed-option-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.embed-option-group label:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.embed-option-group input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6366f1;
}

.embed-option-group input[type="radio"]:checked + span {
  font-weight: 600;
  color: #6366f1;
}

.embed-option-group label:has(input:checked) {
  border-color: #6366f1;
  background: #eef2ff;
}

.embed-option-group span {
  font-size: 0.95rem;
  color: #374151;
  transition: all 0.2s;
}

.embed-tips {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
}

.embed-tips h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #92400e;
  font-weight: 600;
}

.embed-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #78350f;
}

.embed-tips li {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.embed-tips strong {
  color: #92400e;
  font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .embed-modal-content {
    max-height: 95vh;
  }
  
  .embed-modal-header {
    padding: 1.25rem;
  }
  
  .embed-modal-body {
    padding: 1.25rem;
  }
  
  #embedCodeArea {
    height: 150px;
    font-size: 0.75rem;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1a1a1a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2000;
  font-size: 0.95rem;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Result Cards - Colorful gradients */
.result-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.result-card {
  background: white;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border: none;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.result-card-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.3rem;
}

.result-card-sublabel {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Colorful card backgrounds */
.result-card.revenue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.result-card.net-revenue {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.result-card.expenses {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.result-card.cash-flow {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Result Explanation */
.result-explanation {
  background: #f7f8fb;
  border-radius: 10px;
  padding: 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}

.result-explanation strong {
  color: #1a1a1a;
}

/* ROI Highlight Box */
.roi-highlight {
  margin: 1.5rem 0;
  border-radius: 12px;
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Scroll Indicator - matching mortgage calculator exactly */
.scroll-indicator {
  text-align: center;
  margin: -1.8rem 0 1.8rem;
  padding: -1.8rem 0;
}

.scroll-arrow {
  font-size: 2.5rem;
  color: #6366f1;
  animation: bounce 2s infinite;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.scroll-text {
  font-size: 0.95rem;
  color: #6366f1;
  font-weight: 600;
  letter-spacing: 0.3px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

/* Calculation Methodology Section */
.methodology-section {
  margin-top: 0.1rem;
  border-top: 0.1px solid #f0f0f0;
  padding-top: 0.1rem;
}

.methodology-toggle {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
}

.methodology-toggle:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.toggle-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s ease;
  display: inline-block;
}

.methodology-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.methodology-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.methodology-content.show {
  max-height: 5000px;
  padding-top: 1.5rem;
}

.methodology-content h4 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.method-group {
  background: #f7f8fb;
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.method-group h5 {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.method-group p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin: 0.4rem 0;
}

.method-group p strong {
  color: #1a1a1a;
  font-weight: 600;
}

.method-group .note {
  font-style: italic;
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e0e0e0;
}

.method-group .tip {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #78350f;
}

.method-group .tip strong {
  color: #92400e;
}

.method-group.expert-tips {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border: 2px solid #8b5cf6;
}

.method-group.expert-tips h5 {
  color: #5b21b6;
}

.method-group em {
  display: block;
  margin: 0.5rem 0;
  font-style: italic;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .year-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bar-group {
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
  }
  
  .bar-label {
    font-size: 0.75rem;
  }
  
  .bar-outer {
    height: 28px;
  }
  
  .bar-value {
    font-size: 0.8rem;
    padding-right: 0.5rem;
  }

  .money-flow-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .money-flow-total {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: center;
  }
  
  .flow-amount {
    text-align: left;
  }
  
  .money-flow-total .flow-amount {
    text-align: center;
  }
  
  .wealth-amount {
    font-size: 1.75rem;
  }
  
  .return-amount {
    font-size: 2.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .result-summary-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.2rem;
  }
  
  .result-title-box {
    justify-content: center;
  }
  
  .result-title-text {
    font-size: 1.15rem;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .share-menu {
    right: 1rem;
    left: 1rem;
  }

  .result-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .result-card {
    padding: 1.5rem;
  }

  .result-card-value {
    font-size: 1.7rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  
  .back-link-container {
    padding: 0 0.5rem;
  }
  
  .scroll-arrow {
    font-size: 2rem;
  }
  
  .scroll-text {
    font-size: 0.9rem;
  }
}

/* Small input helper text */
small {
  font-size: 0.85rem;
  color: #666;
}
