/* Amortization Schedule Calculator Styles */

/* Hero */
.ams-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #0d9488 60%, #059669 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.ams-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ams-hero .lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ams-hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.ams-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Calculator Section */
.ams-calculator-section {
  padding: 48px 0;
  background: #f8faff;
}

/* Calculator Card */
.ams-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ams-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ams-card-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.ams-card-header p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Form */
.ams-form-group {
  margin-bottom: 1.5rem;
}

.ams-form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.92rem;
}

.ams-form-input {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  transition: all 0.3s ease;
  background: white;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.ams-form-input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
}

.ams-form-hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
}

.ams-value-display {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0d9488;
  text-align: right;
  min-width: 110px;
}

.ams-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ams-slider-row input[type="range"] {
  flex: 1;
}

/* Custom Range Slider */
input[type="range"].ams-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  margin: 8px 0;
}

input[type="range"].ams-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
  transition: transform 0.15s ease;
}

input[type="range"].ams-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].ams-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
}

/* Toggle Buttons */
.ams-toggle-group {
  display: flex;
  gap: 0;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 4px;
}

.ams-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: white;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
}

.ams-toggle-btn:not(:last-child) {
  border-right: 1px solid #e5e7eb;
}

.ams-toggle-btn.active {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: white;
}

.ams-toggle-btn:hover:not(.active) {
  background: #f0fdf9;
  color: #0d9488;
}

/* Date Picker */
.ams-date-picker {
  display: flex;
  gap: 12px;
}

.ams-date-picker select {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ams-date-picker select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Primary Button */
.btn-ams-primary {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  margin-top: 16px;
}

.btn-ams-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.btn-ams-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Disclaimer */
.ams-disclaimer {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: #5d4037;
  margin-top: 24px;
  line-height: 1.6;
}

/* Result Card */
.ams-result-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 2px solid #e5e7eb;
  margin-top: 24px;
}

/* Stats Grid */
.ams-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.ams-stat-card {
  background: #f0fdf9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #d1fae5;
  border-left: 4px solid #0d9488;
}

.ams-stat-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1E3A5F;
  line-height: 1.2;
  margin-bottom: 6px;
  word-break: break-word;
}

.ams-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
}

/* Chart */
.ams-chart-container {
  background: #f8faff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid #e5e7eb;
}

.ams-chart-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 16px;
  text-align: center;
}

.ams-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ams-chart-label {
  width: 48px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-align: right;
}

.ams-chart-bar-wrapper {
  flex: 1;
  height: 18px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
}

.ams-chart-bar {
  height: 100%;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  transition: width 0.5s ease;
}

.ams-chart-bar-principal {
  height: 100%;
  background: linear-gradient(90deg, #1E88E5, #1E3A5F);
  transition: width 0.5s ease;
}

.ams-chart-bar-interest {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transition: width 0.5s ease;
}

.ams-chart-amount {
  width: 90px;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #64748b;
  text-align: left;
  font-weight: 600;
}

.ams-chart-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}

.ams-chart-legend-item {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ams-chart-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.ams-chart-legend-principal {
  background: linear-gradient(90deg, #1E88E5, #1E3A5F);
}

.ams-chart-legend-interest {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Schedule Tables */
.ams-schedule-section,
.ams-yearly-section {
  margin-bottom: 24px;
}

.ams-schedule-section h3,
.ams-yearly-section h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 12px;
}

.ams-schedule-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.ams-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  min-width: 560px;
}

.ams-schedule-table thead th {
  background: #1E3A5F;
  color: white;
  padding: 12px 14px;
  font-weight: 700;
  text-align: right;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ams-th-left {
  text-align: left !important;
}

.ams-th-narrow {
  width: 50px;
}

.ams-schedule-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  text-align: right;
  font-size: 0.83rem;
}

.ams-td-left {
  text-align: left !important;
}

.ams-td-narrow {
  width: 50px;
  color: #94a3b8 !important;
}

.ams-schedule-table tbody tr:nth-child(even) td {
  background: #f8faff;
}

.ams-schedule-table tbody tr.ams-year-boundary td {
  border-top: 2px solid #cbd5e1;
}

/* Progressive reveal */
.ams-schedule-table tbody tr.ams-hidden-row {
  display: none;
}

.ams-schedule-table.ams-expanded tbody tr.ams-hidden-row {
  display: table-row;
}

/* Yearly table styling */
.ams-yearly-table tbody td:first-child {
  font-weight: 600;
  color: #1E3A5F;
}

/* Show More Button */
.ams-show-more {
  display: block;
  margin: 16px auto 0;
  padding: 12px 28px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: white;
  color: #0d9488;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.ams-show-more:hover {
  border-color: #0d9488;
  background: #f0fdf9;
}

/* Action Row (Export + Save) */
.ams-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-ams-secondary {
  padding: 11px 22px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: white;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-ams-secondary:hover {
  border-color: #0d9488;
  color: #0d9488;
}

/* Save & Compare */
.ams-saved-title {
  font-weight: 800;
  color: #1E3A5F;
  font-size: 1rem;
  margin-bottom: 16px;
  margin-top: 8px;
}

.ams-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ams-compare-card {
  background: #f0fdf9;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 18px 16px 16px;
  text-align: center;
  position: relative;
}

.ams-compare-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  font-size: 1.2rem;
  line-height: 1;
}

.ams-compare-remove:hover {
  color: #dc2626;
}

.ams-compare-big {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #0d9488;
}

.ams-compare-detail {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 3px;
  text-align: left;
}

/* Educational Section */
.ams-edu-section {
  padding: 64px 0;
  background: white;
}

.ams-edu-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 16px;
}

.ams-edu-section h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E3A5F;
  margin: 28px 0 12px;
}

.ams-edu-section p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.ams-edu-definition {
  background: linear-gradient(135deg, #f0fdf9 0%, #f0f7ff 100%);
  border-left: 4px solid #0d9488;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 20px 0 32px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1E3A5F;
}

/* Comparison boxes */
.ams-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 32px;
}

.ams-comparison-box {
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.ams-comparison-box-equal {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8faff 100%);
  border-left: 4px solid #1E88E5;
}

.ams-comparison-box-decreasing {
  background: linear-gradient(135deg, #f0fdf9 0%, #f8faff 100%);
  border-left: 4px solid #059669;
}

.ams-comparison-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #1E3A5F;
}

.ams-comparison-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ams-comparison-box li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.5;
}

.ams-comparison-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 6px;
  color: #10b981;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Steps */
.ams-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 0;
}

.ams-step-card {
  background: #f8faff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.ams-step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

.ams-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 8px;
  margin-top: 0;
}

.ams-step-card p {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

/* Expert CTA */
.ams-expert-cta {
  background: linear-gradient(135deg, #f0fdf9 0%, #f0f7ff 100%);
  border: 2px dashed #0d9488;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}

.ams-expert-cta h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 8px;
}

.ams-expert-cta p {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

/* FAQ Section */
.ams-faq-section {
  background: #f8faff;
  padding: 64px 0;
}

.ams-faq-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 12px;
}

.ams-faq-lead {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.ams-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.ams-faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1E3A5F;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.ams-faq-question:hover {
  background: #f0fdf9;
}

.ams-faq-answer {
  padding: 0 24px 0;
  color: #555;
  font-size: 0.93rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  line-height: 1.7;
}

.ams-faq-answer.open {
  max-height: 1500px;
  padding: 0 24px 18px;
}

.ams-faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ams-faq-question.active .ams-faq-chevron {
  transform: rotate(180deg);
}

/* Related Calculators */
.ams-related-section {
  padding: 64px 0;
  background: white;
}

.ams-related-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 32px;
}

.ams-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ams-related-card {
  background: #f8faff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}

.ams-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.12);
  border-color: #0d9488;
  color: inherit;
}

.ams-related-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 14px;
}

.ams-related-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 6px;
}

.ams-related-card p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Blog Cards */
.ams-guides-section {
  padding: 48px 0;
  background: #f8faff;
}

.ams-guides-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 32px;
}

.ams-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ams-guide-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}

.ams-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.ams-guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 8px;
}

.ams-guide-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Final CTA */
.ams-final-cta {
  background: linear-gradient(135deg, #1E3A5F 0%, #0d9488 60%, #059669 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.ams-final-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.ams-final-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.ams-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ams-cta-white {
  background: white;
  color: #0d9488;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ams-cta-white:hover {
  background: #f0fdf9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #0d9488;
}

.btn-ams-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ams-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Toast */
.ams-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.ams-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.ams-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  max-width: 440px;
}

/* Responsive */
@media (max-width: 991px) {
  .ams-card {
    padding: 1.5rem;
  }

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

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

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

  .ams-chart-amount {
    display: none;
  }
}

@media (max-width: 767px) {
  .ams-hero {
    padding: 56px 0 44px;
  }

  .ams-hero h1 {
    font-size: 1.9rem;
  }

  .ams-hero .lead {
    font-size: 1rem;
  }

  .ams-result-card {
    padding: 20px;
  }

  .ams-comparison-grid {
    grid-template-columns: 1fr;
  }

  .ams-related-grid,
  .ams-guides-grid {
    grid-template-columns: 1fr;
  }

  .ams-steps {
    grid-template-columns: 1fr;
  }

  .ams-compare-grid {
    grid-template-columns: 1fr;
  }

  .ams-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ams-chart-label {
    width: 36px;
    font-size: 0.68rem;
  }

  .ams-schedule-table {
    font-size: 0.78rem;
  }

  .ams-schedule-table thead th,
  .ams-schedule-table tbody td {
    padding: 7px 8px;
  }

  .ams-action-row {
    flex-direction: column;
  }

  .btn-ams-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ams-hero h1 {
    font-size: 1.5rem;
  }

  .ams-stats-grid {
    grid-template-columns: 1fr;
  }

  .ams-stat-value {
    font-size: 1.1rem;
  }

  .ams-card-header h2 {
    font-size: 1.15rem;
  }

  .ams-td-narrow {
    display: none;
  }

  .ams-th-narrow {
    display: none;
  }
}
