/* currency-converter.css
 * Amber/orange hero (#d97706) — distinct from Ramadan blue (#2563eb)
 * and Prayer Times green (#16a34a).
 * Loaded only on /currency-converter/* pages.
 */

.crt-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Poppins, sans-serif;
    color: #1e293b;
}

.crt-header { margin-bottom: 1.25rem; }
.crt-title { font-size: 32px; font-weight: 500; margin: 0 0 6px; }
.crt-subtitle { font-size: 18px; color: #64748b; margin: 0; }

/* Rate hero — amber */
.crt-hero { background: #d97706; border-radius: 14px; padding: 20px 16px; margin-bottom: 10px; text-align: center; }
.crt-hero-rate { font-size: 36px; font-weight: 600; color: #fff; margin: 0; letter-spacing: -0.5px; }
.crt-hero-label { font-size: 20px; color: rgba(255,255,255,0.85); margin: 0 0 6px; }
.crt-hero-sub { font-size: 20px; color: rgba(255,255,255,0.85); margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.crt-change { display: inline-flex; align-items: center; gap: 3px; font-size: 20px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.crt-change.up   { background: rgba(255,255,255,0.2); color: #fff; }
.crt-change.down { background: rgba(255,255,255,0.2); color: #fff; }
.crt-change.flat { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

/* Converter input */
.crt-converter { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 1rem; margin-bottom: 10px; }
.crt-conv-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.crt-conv-field { display: flex; flex-direction: column; gap: 4px; }
.crt-conv-label { font-size: 11px; color: #94a3b8; }
.crt-conv-input { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 18px; font-weight: 500; width: 100%; box-sizing: border-box; }
.crt-conv-input:focus { outline: none; border-color: #d97706; }
.crt-conv-swap { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 2px; flex-shrink: 0; }
.crt-conv-swap svg { width: 16px; height: 16px; color: #d97706; }
 
/* 30-day chart */
.crt-chart-wrap { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 1rem; margin-bottom: 10px; }
.crt-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.crt-chart-title { font-size: 13px; font-weight: 500; }
.crt-chart-range { display: flex; gap: 4px; }
.crt-range-btn { font-size: 11px; padding: 3px 10px; border-radius: 6px; border: 1px solid #e2e8f0; background: #f8fafc; color: #64748b; cursor: pointer; font-family: inherit; }
.crt-range-btn.active { background: #d97706; color: #fff; border-color: #d97706; }
.crt-chart-canvas { width: 100%; height: 140px; }
 
/* Comparison table (Wise-style) */
.crt-compare { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 10px; }
.crt-compare-header { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; }
.crt-compare-title { font-size: 13px; font-weight: 500; margin: 0 0 2px; }
.crt-compare-note { font-size: 11px; color: #94a3b8; margin: 0; }
.crt-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crt-compare-table th { padding: 8px 14px; font-size: 10px; color: #94a3b8; font-weight: 500; text-align: left; background: #f8fafc; }
.crt-compare-table td { padding: 10px 14px; border-top: 1px solid #f8fafc; }
.crt-compare-table tr.best td:first-child { font-weight: 600; color: #d97706; }
.crt-fee-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.crt-fee-badge.green { background: #dcfce7; color: #166534; }
 
/* Rate alert box */
.crt-alert-box { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 1rem; margin-bottom: 10px; }
.crt-alert-title { font-size: 13px; font-weight: 500; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.crt-alert-title svg { width: 16px; height: 16px; color: #d97706; }
.crt-alert-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.crt-alert-field { display: flex; flex-direction: column; gap: 4px; }
.crt-alert-label { font-size: 11px; color: #94a3b8; }
.crt-alert-select, .crt-alert-input { border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 10px; font-size: 13px; width: 100%; box-sizing: border-box; font-family: inherit; }
.crt-alert-btn { background: #d97706; color: #fff; border: none; border-radius: 10px; padding: 9px 16px; font-size: 13px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.crt-alert-btn:hover { background: #b45309; }
.crt-alert-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.crt-alert-item { display: flex; justify-content: space-between; align-items: center; background: #fef3c7; border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.crt-alert-item-text { color: #92400e; }
.crt-alert-remove { background: none; border: none; color: #92400e; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 0 0 8px; }
 
/* Related pairs */
.crt-related { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.75rem; }
.crt-related-label { font-size: 11px; color: #94a3b8; padding-top: 6px; }
.crt-related-link { font-size: 11px; padding: 5px 12px; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; text-decoration: none; }
.crt-related-link:hover { border-color: #d97706; }
 
.crt-footer-note { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 0.75rem; }
.crt-disclaimer { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 0.5rem; line-height: 1.5; }
.crt-empty-state { background: #fff; border-radius: 14px; padding: 1.5rem; text-align: center; color: #64748b; border: 1px solid #e2e8f0; }
 
/* Compare page — mobile cards */
.crt-cmp-table-wrap { display: block; }
.crt-cmp-cards { display: none; }
 
.crt-cmp-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.crt-cmp-card-best { border-color: #d97706; box-shadow: 0 0 0 1px #d97706; }
.crt-cmp-card-ref { background: #fffbeb; border-color: #fcd34d; }
.crt-cmp-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.crt-cmp-card-name { display: block; font-size: 14px; font-weight: 600; color: #1e293b; }
.crt-cmp-card-type { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.crt-cmp-card-recv { text-align: right; }
.crt-cmp-recv-amount { display: block; font-size: 16px; font-weight: 700; color: #1e293b; }
.crt-cmp-recv-loss { display: block; font-size: 11px; color: #dc2626; }
.crt-cmp-recv-ref { display: block; font-size: 11px; color: #d97706; font-weight: 500; }
.crt-cmp-card-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid #f1f5f9; }
.crt-cmp-card-key { font-size: 12px; color: #94a3b8; }
.crt-cmp-card-val { font-size: 13px; font-weight: 500; text-align: right; }
.crt-cmp-card-note { font-size: 11px; color: #94a3b8; margin-top: 8px; padding-top: 6px; border-top: 1px solid #f1f5f9; }
.crt-cmp-card-link { display: inline-block; margin-top: 8px; font-size: 12px; color: #d97706; text-decoration: none; }
 
@media (max-width: 600px) {
    .crt-cmp-table-wrap { display: none; }
    .crt-cmp-cards { display: block; }
}
 
 
 
/* Index page */
.crt-hero-index { padding: 20px 16px; }
.crt-pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 1.25rem; }
.crt-pair-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: #1e293b; }
.crt-pair-card:hover { border-color: #d97706; }
.crt-pair-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.crt-pair-flags { font-size: 18px; }
.crt-pair-change { font-size: 11px; font-weight: 600; }
.crt-pair-change.up   { color: #16a34a; }
.crt-pair-change.down { color: #dc2626; }
.crt-pair-change.flat { color: #94a3b8; }
.crt-pair-label { font-size: 11px; color: #94a3b8; margin: 0 0 2px; }
.crt-pair-rate { font-size: 17px; font-weight: 600; margin: 0; }
 
.crt-section-title { font-size: 15px; font-weight: 600; color: #d97706; margin: 1.25rem 0 0.75rem; }
 
@media (max-width: 480px) {
    .crt-conv-row { grid-template-columns: 1fr; }
    .crt-conv-swap { margin: 0 auto; }
    .crt-alert-row { grid-template-columns: 1fr 1fr; }
    .crt-alert-btn { grid-column: span 2; }
    .crt-hero-rate { font-size: 28px; }
    .crt-pairs-grid { grid-template-columns: 1fr 1fr; }
}
 