/* ===== Fee Calculator - Premium Editorial Design ===== */

/* Hero */
.fc-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0c1a2d 0%, #0f2d5a 40%, #1a4f8a 70%, #2563eb 100%);
  padding: 5rem 0 6rem;
}
.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(37,99,235,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(239,179,0,.08) 0%, transparent 40%);
}
.fc-hero__grid {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.fc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.fc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}
.fc-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: fc-pulse 2s infinite;
}
@keyframes fc-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
.fc-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.fc-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fc-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}
.fc-hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
}

/* Tabs */
.fc-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
  scrollbar-width: none;
}
.fc-tabs::-webkit-scrollbar { display: none; }
.fc-tab {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.5rem;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  border-bottom: 2.5px solid transparent;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all .2s;
}
.fc-tab:hover { color: #4b5563; }
.fc-tab--active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  background: #fff;
}
.fc-tab img, .fc-tab svg { width: 18px; height: 18px; }

/* Calculator Card */
.fc-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 20px 60px -12px rgba(0,0,0,.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}

/* Input Group */
.fc-input-group { margin-bottom: 1.5rem; }
.fc-input-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: .5rem;
  letter-spacing: .01em;
}
.fc-input-wrap {
  position: relative;
}
.fc-input-wrap input {
  width: 100%;
  padding: .875rem 3rem .875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: .75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  background: #fff;
  transition: all .2s;
  font-family: inherit;
}
.fc-input-wrap input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.fc-input-wrap__suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: .85rem;
  font-weight: 500;
}

/* Quick Amount Buttons */
.fc-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .5rem;
}
.fc-quick-btn {
  font-size: .75rem;
  padding: .35rem .75rem;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #4b5563;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s;
}
.fc-quick-btn:hover {
  background: #eef2ff;
  color: #1d4ed8;
  border-color: #c7d2fe;
}

/* Session Counter */
.fc-session-counter {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.fc-session-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.fc-session-btn:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #1d4ed8;
}
.fc-session-counter input {
  flex: 1;
  text-align: center;
  padding: .625rem;
  border: 1.5px solid #e5e7eb;
  border-radius: .75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  font-family: inherit;
}
.fc-session-counter input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* Fee Breakdown */
.fc-breakdown {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f1f5f9;
}
.fc-breakdown__title {
  font-size: .7rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .875rem;
}
.fc-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .5rem 0;
}
.fc-fee-row + .fc-fee-row { border-top: 1px solid #f1f5f9; }
.fc-fee-row__info { display: flex; flex-direction: column; gap: .125rem; }
.fc-fee-row__label { font-size: .8rem; font-weight: 600; color: #374151; }
.fc-fee-row__desc { font-size: .7rem; color: #94a3b8; }
.fc-fee-row__val { text-align: right; display: flex; flex-direction: column; gap: .125rem; }
.fc-fee-row__pct { font-size: .8rem; font-weight: 700; color: #ef4444; }
.fc-fee-row__amount { font-size: .7rem; color: #94a3b8; }
.fc-fee-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #e2e8f0;
  margin-top: .75rem;
  padding-top: .75rem;
  font-size: .85rem;
  font-weight: 800;
  color: #1e293b;
}
.fc-fee-total__val { color: #dc2626; }

/* Result Cards */
.fc-results h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.fc-result-card {
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: .75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.fc-result-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.fc-result-card--loss { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.fc-result-card--save { background: linear-gradient(135deg, #059669, #047857); }
.fc-result-card__label {
  font-size: .8rem;
  font-weight: 500;
  opacity: .8;
  margin-bottom: .25rem;
}
.fc-result-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.fc-result-card__sub {
  font-size: .75rem;
  opacity: .65;
  margin-top: .25rem;
}

/* Mini stat boxes */
.fc-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
  margin-bottom: .75rem;
}
.fc-stat-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
.fc-stat-box__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}
.fc-stat-box__label {
  font-size: .7rem;
  color: #64748b;
  margin-top: .25rem;
}
.fc-stat-box--accent {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.fc-stat-box--accent .fc-stat-box__val { color: #1d4ed8; }
.fc-stat-box--accent .fc-stat-box__label { color: #2563eb; }

/* Chart area */
.fc-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #f1f5f9;
  margin-bottom: .75rem;
}
.fc-chart-legend {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.fc-chart-legend span {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: #475569;
}
.fc-chart-legend span::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.fc-chart-legend .legend-loss::before { background: #ef4444; }
.fc-chart-legend .legend-kept::before { background: #10b981; }

/* Download CTA */
.fc-dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.fc-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #efb300, #d9a200);
  transition: all .2s;
}
.fc-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(239,179,0,.3);
}

/* ===== Comparison Table ===== */
.fc-compare {
  margin-top: 4rem;
}
.fc-compare h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: .5rem;
}
.fc-compare__sub {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin-bottom: 2rem;
}
.fc-table-wrap {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.fc-table thead { background: #f8fafc; }
.fc-table th {
  padding: .875rem 1rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.fc-table th:first-child { text-align: left; }
.fc-table td {
  padding: .875rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
}
.fc-table td:first-child { text-align: left; }
.fc-table tbody tr:hover { background: #fafbfc; }
.fc-table .fc-table-row--highlight {
  background: #ecfdf5 !important;
}
.fc-table .fc-table-row--highlight:hover {
  background: #d1fae5 !important;
}
.fc-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: .8rem;
}
.fc-badge--red { background: #fef2f2; color: #dc2626; }
.fc-badge--orange { background: #fff7ed; color: #ea580c; }
.fc-badge--green { background: #059669; color: #fff; }

/* ===== Info Cards Section ===== */
.fc-info-section {
  margin-top: 4rem;
}
.fc-info-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 2rem;
}
.fc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.fc-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all .3s;
}
.fc-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.1);
  border-color: #c7d2fe;
}
.fc-info-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.fc-info-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .5rem;
}
.fc-info-card p {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
}

/* ===== FAQ Section ===== */
.fc-faq { margin-top: 4rem; }
.fc-faq h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 2rem;
}
.fc-faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .875rem;
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .2s;
}
.fc-faq-item:hover { border-color: #a5b4fc; }
.fc-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  color: #1e293b;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.fc-faq-q svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  transition: transform .3s;
}
.fc-faq-item.open .fc-faq-q svg { transform: rotate(180deg); }
.fc-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.fc-faq-a__inner {
  padding: 0 1.25rem 1.125rem;
  font-size: .85rem;
  color: #64748b;
  line-height: 1.7;
}

/* ===== Footnote ===== */
.fc-footnote {
  margin-top: 3rem;
  padding: 1.25rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: .875rem;
  font-size: .8rem;
  color: #92400e;
  line-height: 1.6;
  text-align: center;
}

/* ===== Animations ===== */
.fc-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.fc-animate.fc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .fc-hero { padding: 3.5rem 0 4.5rem; }
  .fc-card-body { padding: 1.25rem !important; }
  .fc-result-card__value { font-size: 1.35rem; }
  .fc-stat-box__val { font-size: 1.1rem; }
  .fc-table { font-size: .75rem; }
  .fc-table th, .fc-table td { padding: .625rem .5rem; }
  .fc-dl-row { grid-template-columns: 1fr; }
  .fc-info-grid { grid-template-columns: 1fr; }
}
