.main-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 2rem;
}

.demo-notice {
  background: #fef3c7;
  border: 2px solid var(--accent-yellow);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.demo-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  flex: 1;
  padding: 0.875rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-main);
  color: var(--primary-green);
}

.tab-btn.active {
  background: var(--primary-green);
  color: white;
  transform: scale(1.02);
}

.tab-btn:focus {
  outline: 3px solid #86efac;
  outline-offset: 2px;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-gray);
  font-size: 0.9375rem;
}

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: var(--primary-green);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.2);
}

.step-dot.completed {
  background: var(--primary-green-light);
  color: white;
}

.step-line {
  width: 40px;
  height: 3px;
  background: #e5e7eb;
  transition: background 0.3s ease;
}

.step-line.completed {
  background: var(--primary-green-light);
}

.step-helper {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.onboarding-step {
  animation: slideIn 0.3s ease;
}

.onboarding-step.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

.onboarding-step h3 {
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

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

.option-btn {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  color: #374151;
}

.option-btn:hover {
  border-color: var(--primary-green-light);
  background: var(--bg-main);
  transform: translateY(-2px);
}

.option-btn.selected {
  border-color: #16a34a;
  background: #dcfce7;
  transform: scale(1.02);
}

.option-btn:focus {
  outline: 3px solid #86efac;
  outline-offset: 2px;
}

.option-icon {
  font-size: 2rem;
}

.option-btn small {
  font-size: 0.75rem;
  color: var(--text-gray);
  display: block;
  margin-top: 0.25rem;
}

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-green-light), #16a34a);
  width: 25%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.summary-card {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid #86efac;
  animation: celebrate 0.5s ease;
}

@keyframes celebrate {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  50% {
    transform: scale(1.02);
  }

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

.summary-card h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

#summary-content {
  text-align: left;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

#summary-content p {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}

#summary-content p:last-child {
  border-bottom: none;
}

.personalized-recommendation {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid var(--accent-yellow);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
}

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

.rec-body p {
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.suggested-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.suggested-amount strong {
  font-size: 1.25rem;
  color: var(--primary-green);
}

.primary-btn {
  background: linear-gradient(
    135deg,
    #16a34a 0%,
    var(--primary-green-dark) 100%
  );
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.primary-btn:focus {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

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

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
}

.amount-selector {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.amount-selector h3 {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
  text-align: center;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.amount-btn {
  background: var(--bg-main);
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 1rem 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-green);
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-btn:hover {
  background: #dcfce7;
  border-color: var(--primary-green-light);
  transform: translateY(-2px);
}

.amount-btn.selected {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  transform: scale(1.05);
}

.amount-btn:focus {
  outline: 3px solid #86efac;
  outline-offset: 2px;
}

.custom-amount-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.custom-amount-section label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  text-align: center;
}

.custom-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-gray);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.custom-input-wrapper:focus-within {
  border-color: var(--primary-green-light);
}

.currency-symbol {
  padding: 0.875rem 0.75rem;
  background: #e5e7eb;
  font-weight: 700;
  color: var(--primary-green);
  font-size: 1.125rem;
}

.custom-input-wrapper input {
  flex: 1;
  border: none;
  padding: 0.875rem;
  font-size: 1.125rem;
  background: transparent;
  outline: none;
}

.amount-range-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.allocation-section {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.allocation-section.hidden {
  display: none;
}

.allocation-section h3 {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 0.75rem;
  text-align: center;
}

.estimate-notice {
  background: #fef3c7;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #92400e;
  text-align: center;
  margin-bottom: 1rem;
}

.allocation-visual {
  margin-bottom: 1rem;
}

.allocation-bar {
  display: flex;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.bar-segment span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fd-bar {
  background: linear-gradient(135deg, var(--fd-color), #2563eb);
}

.bonds-bar {
  background: linear-gradient(135deg, var(--bonds-color), #d97706);
}

.mf-bar {
  background: linear-gradient(135deg, var(--mf-color), #7c3aed);
}

.allocation-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.allocation-card {
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  align-items: center;
  transition: transform 0.2s ease;
}

.allocation-card:hover {
  transform: translateX(4px);
}

.allocation-card.fd {
  background: linear-gradient(135deg, var(--fd-bg) 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
}

.allocation-card.bonds {
  background: linear-gradient(135deg, var(--bonds-bg) 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
}

.allocation-card.mf {
  background: linear-gradient(135deg, var(--mf-bg) 0%, #c7d2fe 100%);
  border: 1px solid #a5b4fc;
}

.alloc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.alloc-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

.alloc-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-align: right;
}

.alloc-percent {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.alloc-return {
  text-align: right;
  font-size: 0.75rem;
  color: #059669;
}

.alloc-return small {
  display: block;
  color: var(--text-gray);
}

.alloc-return span {
  font-weight: 600;
}

.alloc-rate {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-gray);
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.total-summary {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.total-row.highlight {
  font-weight: 700;
  color: var(--primary-green);
  font-size: 1.125rem;
  border-top: 2px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.total-row.profit {
  color: #059669;
  font-weight: 600;
}

.investment-plan {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 2px solid #a78bfa;
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
}

.investment-plan h4 {
  font-size: 0.9375rem;
  color: #5b21b6;
  margin-bottom: 0.5rem;
  text-align: center;
}

.plan-subtitle {
  font-size: 0.75rem;
  color: #7c3aed;
  text-align: center;
  margin-bottom: 1rem;
}

.plan-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item.featured {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid var(--accent-yellow);
  position: relative;
}

.timeline-item.mega {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid #86efac;
  position: relative;
}

.timeline-badge {
  position: absolute;
  top: -10px;
  left: 10px;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.timeline-period {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151;
}

.timeline-invested {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.timeline-value {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-green);
  text-align: right;
}

.habit-message {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--primary-green);
  font-weight: 500;
}

.habit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.portfolio-summary {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--primary-green-dark) 100%
  );
  border-radius: 20px;
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.portfolio-card.total {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.portfolio-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.portfolio-growth {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.stat-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.625rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.tracker-allocation {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.tracker-allocation h3 {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
  text-align: center;
}

.breakdown-chart {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.donut-chart {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--fd-color) 0deg 180deg,
    var(--bonds-color) 180deg 288deg,
    var(--mf-color) 288deg 360deg
  );
  position: relative;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-green);
}

.breakdown-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-item.fd .legend-color {
  background: var(--fd-color);
}

.legend-item.bonds .legend-color {
  background: var(--bonds-color);
}

.legend-item.mf .legend-color {
  background: var(--mf-color);
}

.legend-name {
  flex: 1;
  color: var(--text-gray);
}

.legend-value {
  font-weight: 600;
  color: #374151;
}

.history-section {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.history-section h3 {
  font-size: 1rem;
  color: #374151;
  margin: 0;
}

.clear-history-btn {
  background: transparent;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-history-btn:hover {
  background: #dc2626;
  color: white;
}

#investment-history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease;
}

.history-item:hover {
  transform: translateX(4px);
}

.history-item .amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-green);
}

.history-item .date {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.history-empty {
  text-align: center;
  color: var(--text-light);
  padding: 2rem 1rem;
  font-size: 0.9375rem;
}

.goal-section {
  background: linear-gradient(135deg, var(--bonds-bg) 0%, #fde68a 100%);
  border: 2px solid var(--accent-yellow);
  border-radius: 20px;
  padding: 1.5rem;
}

.goal-section h3 {
  font-size: 1rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.goal-progress {
  margin-bottom: 0.75rem;
}

.goal-bar {
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goal-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-green-light),
    var(--primary-green)
  );
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}

.goal-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.goal-info span:first-child {
  font-weight: 700;
  color: var(--primary-green);
}

.goal-info span:last-child {
  color: #78350f;
}

.goal-message {
  font-size: 0.8125rem;
  color: #78350f;
  font-style: italic;
}

.video-section {
  margin-bottom: 1.5rem;
}

.video-section h3 {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
}

.video-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-card {
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  position: relative;
  width: 100px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-info {
  flex: 1;
}

.video-info h4 {
  font-size: 0.875rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.video-info p {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.video-duration {
  font-size: 0.625rem;
  background: var(--bg-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--text-gray);
}

.reading-progress-section {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.progress-percent {
  font-weight: 700;
  color: var(--primary-green);
}

.reading-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.reading-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-green-light),
    var(--primary-green)
  );
  width: 0%;
  transition: width 0.5s ease;
}

.education-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.edu-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.edu-card:hover {
  transform: translateY(-2px);
}

.edu-card.safety-card {
  border: 2px solid #86efac;
  background: linear-gradient(135deg, var(--bg-main) 0%, white 100%);
}

.edu-card.highlight-card {
  border: 2px solid #a78bfa;
  background: linear-gradient(135deg, #ede9fe 0%, white 100%);
}

.edu-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.edu-card-header:hover {
  background: var(--bg-gray);
}

.edu-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-card-header h3 {
  flex: 1;
  font-size: 0.9375rem;
  color: #1f2937;
  margin: 0;
}

.expand-icon {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
  font-weight: 300;
}

.edu-card.expanded .expand-icon {
  transform: rotate(45deg);
}

.edu-card-content {
  display: none;
  padding: 0 1rem 1rem;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.7;
  border-top: 1px solid #e5e7eb;
}

.edu-card.expanded .edu-card-content {
  display: block;
  animation: expandContent 0.2s ease;
}

@keyframes expandContent {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.example-box {
  background: var(--bg-main);
  border-left: 4px solid var(--primary-green);
  padding: 0.75rem;
  margin-top: 0.75rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
}

.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.compare-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.compare-item.safe {
  background: #dcfce7;
  color: var(--primary-green);
}

.compare-item.risky {
  background: #fee2e2;
  color: #dc2626;
}

.breakdown-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.breakdown-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  align-items: center;
}

.breakdown-item.fd {
  background: var(--fd-bg);
}

.breakdown-item.bonds {
  background: var(--bonds-bg);
}

.breakdown-item.mf {
  background: var(--mf-bg);
}

.breakdown-item .amount {
  font-size: 1.25rem;
  font-weight: 700;
  grid-row: span 2;
}

.breakdown-item .label {
  font-weight: 600;
  font-size: 0.8125rem;
}

.breakdown-item .desc {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.info-highlight {
  background: var(--bonds-bg);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #92400e;
}

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.safety-badges .badge {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.compound-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.compound-item {
  background: white;
  padding: 0.75rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.compound-item .year {
  display: block;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.compound-item .result {
  display: block;
  font-weight: 700;
  color: var(--primary-green);
}

.compound-message {
  font-style: italic;
  color: #5b21b6;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.tips-section {
  background: linear-gradient(135deg, var(--fd-bg) 0%, var(--mf-bg) 100%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid #93c5fd;
}

.tips-section h3 {
  font-size: 1rem;
  color: #1e40af;
  margin-bottom: 1rem;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: #1e3a8a;
}

.tips-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .main-content {
    padding: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .tab-btn {
    font-size: 1rem;
    padding: 1rem;
  }

  .video-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .video-card {
    flex: 1;
    min-width: 280px;
    flex-direction: column;
  }

  .video-thumbnail {
    width: 100%;
    height: 120px;
  }
}
