/* Credit Card Transfer Partner Matrix & Bonus Tracker Styles */
.transfer-partners-body {
  background-color: #f8fafc;
}

.bonus-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bonus-alert-card {
  background: #fff;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

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

.bonus-badge {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
}

.bonus-bank {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.bonus-formula {
  font-size: 13px;
  color: #475569;
  margin: 6px 0 12px;
}

.bonus-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bonus-expiry {
  font-size: 12px;
  color: #64748b;
}

.bonus-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.bonus-link:hover {
  text-decoration: underline;
}

/* Calculator Card */
.calc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  margin-top: 16px;
}

.calc-header {
  margin-bottom: 20px;
}

.calc-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.calc-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-field input,
.calc-field select {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #fff;
  outline: none;
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.calc-result-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 640px) {
  .calc-result-box {
    grid-template-columns: 1fr;
  }
}

.result-number-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-highlight {
  font-size: 28px;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.result-subtext {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
}

.result-details-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.result-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: #64748b;
  font-weight: 600;
}

.detail-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

/* Filter Toggles & Search */
.search-bar-row {
  margin: 16px 0;
}

.matrix-search {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}

.matrix-search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.filter-btn.active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.transfer-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  min-width: 820px;
}

.transfer-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 12px;
  border-bottom: 2px solid #e2e8f0;
}

.transfer-table th.th-airline {
  text-align: left;
  padding-left: 18px;
  width: 28%;
}

.transfer-table th.th-bank {
  width: 12%;
}

.transfer-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.transfer-table tr:hover {
  background-color: #f8fafc;
}

.cell-airline-info {
  text-align: left;
  padding-left: 18px !important;
}

.airline-meta-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.airline-iata-tag {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.airline-name-text {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.alliance-subtag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.airline-sweet-spot-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}

.cell-partner {
  background: #f0fdf4;
}

.cell-partner .cell-ratio {
  font-weight: 800;
  color: #166534;
  font-size: 13px;
}

.cell-partner .cell-speed {
  font-size: 11px;
  color: #15803d;
}

.cell-has-bonus {
  background: #fff7ed !important;
}

.cell-has-bonus .cell-ratio {
  color: #c2410c;
}

.cell-bonus-pill {
  display: inline-block;
  background: #ea580c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 3px;
}

.cell-no-partner {
  color: #cbd5e1;
  font-size: 16px;
}

/* Bank Grid */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.bank-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.bank-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bank-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.bank-val-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.bank-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 12px;
}

.bank-meta {
  font-size: 12px;
  color: #64748b;
}

.bank-meta strong {
  color: #334155;
}

/* Golden Rules Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tip-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
}

.tip-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tip-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.tip-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
