/* ==========================================================================
   VCF CURRENCY PRO — ULTRA REALISTIC LIGHT FINTECH DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-inset: #f1f5f9;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --accent-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --info: #0ea5e9;
  --info-bg: #f0f9ff;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 20px -2px rgba(0,0,0,0.05);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background Subtle Grid Texture */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 60%),
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* ==========================================================================
   TOP LIVE MARQUEE TICKER
   ========================================================================== */
.live-marquee-bar {
  background: #0f172a;
  color: #f8fafc;
  height: 36px;
  font-size: 0.8rem;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  position: relative;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  gap: 28px;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.ticker-item .pair {
  color: #94a3b8;
}

.ticker-item .rate {
  font-family: var(--font-mono);
  color: #ffffff;
}

.ticker-item .delta {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.ticker-item.up .delta {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.ticker-item.down .delta {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   HEADER & NAVBAR (RESPONSIVE)
   ========================================================================== */
.main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 8px 0;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text h1 {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-badge {
  font-size: 0.65rem;
  background: #eff6ff;
  color: var(--accent-primary);
  border: 1px solid #bfdbfe;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .brand-text p {
    display: none;
  }
  .brand-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.market-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 640px) {
  .market-status-badge .full-label {
    display: none;
  }
  .market-status-badge .short-label {
    display: inline;
  }
}

@media (min-width: 641px) {
  .market-status-badge .short-label {
    display: none;
  }
}

.btn-header {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

@media (max-width: 640px) {
  .btn-header.btn-label-hide span {
    display: none;
  }
  .btn-header {
    padding: 8px 10px;
  }
}

/* Central Banks Bar */
.central-banks-strip {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 0.76rem;
  overflow: hidden;
}

.banks-row {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.banks-row::-webkit-scrollbar {
  display: none;
}

.banks-label {
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-main);
  flex-shrink: 0;
}

.bank-pill .rate-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-primary);
}

/* ==========================================================================
   NAVIGATION TABS (FEATURE SWITCHER)
   ========================================================================== */
.feature-tabs-bar {
  padding: 16px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feature-tabs-bar::-webkit-scrollbar {
  display: none;
}

.feature-tabs-wrapper {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--bg-inset);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  min-width: max-content;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn i {
  font-size: 0.95rem;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HERO / MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 20px 0 64px;
}

.tab-panel {
  display: none;
  animation: fadeInTab 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Layout Grid for Main Converter */
.converter-layout-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .converter-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* White Elevated Cards */
.fintech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

@media (max-width: 640px) {
  .fintech-card {
    padding: 18px 16px;
    border-radius: var(--radius-lg);
  }
}

.fintech-card:hover {
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 8px 30px -4px rgba(0, 0, 0, 0.07);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.card-title-group h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   CONVERTER INTERACTIVE INPUT BLOCKS
   ========================================================================== */
.converter-boxes-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.currency-input-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .currency-input-card {
    padding: 14px;
  }
}

.currency-input-card:focus-within {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.input-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.input-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.amount-input-field {
  flex: 1;
  background: transparent;
  border: none;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  outline: none;
  width: 100%;
  min-width: 0;
}

.amount-input-field::placeholder {
  color: var(--text-dim);
}

/* Currency Picker Trigger Button */
.currency-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  user-select: none;
  flex-shrink: 0;
}

.currency-select-trigger:hover {
  border-color: var(--accent-primary);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.flag-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.currency-code-tag {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.currency-symbol-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.swap-action-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px 0;
  position: relative;
  z-index: 5;
}

.btn-swap-currencies {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-swap-currencies:hover {
  transform: rotate(180deg) scale(1.08);
  border-color: var(--accent-primary);
  background: #eff6ff;
}

/* Preset Chips */
.preset-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preset-chip {
  padding: 4px 10px;
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
}

.preset-chip:hover {
  background: #ffffff;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ==========================================================================
   CONVERSION RESULT BANNER
   ========================================================================== */
.conversion-summary-banner {
  margin-top: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .conversion-summary-banner {
    padding: 16px;
  }
}

.rate-headline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.result-giant-number {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 900;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  word-break: break-word;
  line-height: 1.15;
}

.rate-details-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(219, 234, 254, 0.8);
  padding-top: 10px;
}

.inverse-rate-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  flex-wrap: wrap;
}

.result-cta-actions {
  display: flex;
  gap: 8px;
}

.btn-tool-action {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-tool-action:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: #f8fafc;
}

/* ==========================================================================
   BANK FEE COMPARISON & SPREAD SIMULATOR
   ========================================================================== */
.fee-simulator-box {
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.fee-sim-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.comparison-table-wrapper {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.4fr 1.3fr;
  padding: 12px 16px;
  align-items: center;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  min-width: 520px;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row.header {
  background: var(--bg-inset);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
}

.comparison-row.highlight {
  background: #f0fdf4;
  font-weight: 700;
}

.comparison-row .savings-tag {
  color: var(--success);
  font-weight: 800;
}

/* ==========================================================================
   INTERACTIVE CHARTS & TECHNICAL SIGNALS (TAB 3)
   ========================================================================== */
.chart-container-box {
  position: relative;
  width: 100%;
  height: 380px;
  margin: 16px 0;
}

.timeframe-pill-group {
  display: flex;
  gap: 3px;
  background: var(--bg-inset);
  padding: 3px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.timeframe-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeframe-btn.active {
  background: #ffffff;
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .metrics-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.metric-stat-card .m-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-stat-card .m-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 2px;
}

/* 52-Week Range Bar */
.range-bar-box {
  margin: 16px 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.range-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  position: relative;
  margin: 10px 0;
}

.range-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

.range-bar-needle {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}

.range-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* AI Signal Card */
.ai-signal-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.ai-signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid #818cf8;
  color: #c7d2fe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* ==========================================================================
   MULTI-CURRENCY MATRIX (TAB 2)
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.matrix-unit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}

.matrix-unit-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.matrix-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-card-currency {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-converted-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.matrix-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   PURCHASING POWER PARITY (PPP) & BIG MAC INDEX (TAB 4)
   ========================================================================== */
.ppp-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.ppp-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.ppp-lifestyle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.82rem;
}

.ppp-lifestyle-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   TRAVEL BUDGET OPTIMIZER (TAB 5)
   ========================================================================== */
.budget-builder-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .budget-builder-grid {
    grid-template-columns: 1fr;
  }
}

.budget-summary-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
}

/* ==========================================================================
   TRIANGULAR ARBITRAGE SCANNER (TAB 7)
   ========================================================================== */
.arbitrage-loop-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 12px;
}

.arbitrage-loop-card:hover {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.loop-path-nodes {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
}

.loop-arrow {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.net-yield-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.net-yield-badge.positive {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   SMART RATE ALERTS (TAB 8)
   ========================================================================== */
.alert-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.alert-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MODALS (CURRENCY PICKER & INVOICE RECEIPT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-search-box {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.modal-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  background: #ffffff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-repeat: no-repeat;
  background-position: 12px center;
}

.modal-currency-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.currency-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.currency-list-item:hover {
  background: var(--bg-inset);
}

.currency-list-item.selected {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   USER PROFILE CONFIGURATION BAR & HAITIAN DOLLAR SWITCH
   ========================================================================== */
.user-profile-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.profile-config-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-main-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn:hover {
  background: #ffffff;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.profile-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.haitian-dollar-switch-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.haitian-dollar-switch-box .switch-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.switch-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Modern Toggle Switch */
.modern-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.modern-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.modern-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 20px;
}

.modern-toggle .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.modern-toggle input:checked + .slider {
  background-color: var(--accent-primary);
}

.modern-toggle input:checked + .slider:before {
  transform: translateX(18px);
}

/* Central Banks Strip Highlight */
.bank-pill.highlight-haiti {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

/* Haitian Dual Display Bar in Converter */
.haitian-dual-display-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 16px 0;
  padding: 10px 18px;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.h-dual-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.h-dual-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.h-dual-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-main);
}

.h-dual-val.highlight {
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.h-dual-sep {
  color: var(--text-dim);
}

/* Haitian Banks Radar & Cards */
.bank-radar-deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.deal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.deal-card.best-sell {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.deal-card.best-buy {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.deal-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.deal-card.best-sell .deal-icon {
  background: #10b981;
  color: #fff;
}

.deal-card.best-buy .deal-icon {
  background: #2563eb;
  color: #fff;
}

.deal-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.deal-bank {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 2px;
}

.haitian-banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.haitian-bank-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.haitian-bank-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.haitian-bank-card.street-highlight {
  background: #fffdf5;
  border-color: #fde68a;
}

.h-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h-bank-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.h-bank-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.h-bank-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.h-bank-rates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.h-rate-box {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.h-rate-box.buy {
  background: #f8fafc;
}

.h-rate-box.sell {
  background: #f8fafc;
}

.h-rate-box .r-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.h-rate-box .r-val {
  font-size: 1.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 2px;
}

.h-rate-box .r-val small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.h-rate-box .r-htd {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.h-bank-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

/* Macroeconomic Grid */
.macro-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.macro-stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.macro-stat-card .m-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.macro-stat-card .m-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.macro-stat-card .m-val {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 2px;
}

.macro-stat-card .m-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE FINTECH ADAPTATION (TABLET & MOBILE)
   ========================================================================== */

/* Utility Responsive Grids */
.responsive-grid-2,
.responsive-grid-3,
.responsive-grid-customs,
.responsive-grid-2-end {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .converter-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .budget-builder-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 860px) {
  .responsive-grid-customs,
  div[style*="grid-template-columns:1.2fr 0.8fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 768px) {
  /* Layout & Container */
  body, html {
    overflow-x: hidden;
  }
  .container {
    padding: 0 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .main-content {
    padding: 10px 0 40px !important;
  }

  /* Header & Navbar */
  .main-header {
    top: 0;
  }
  .navbar {
    min-height: 52px !important;
    padding: 6px 0 !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .brand-group {
    gap: 8px !important;
  }
  .brand-icon-box {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
  }
  .brand-text h1 {
    font-size: 1.05rem !important;
  }
  .brand-badge {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
  }
  .nav-actions {
    gap: 5px !important;
    flex-wrap: wrap !important;
  }
  .btn-header {
    padding: 6px 9px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
  }
  .market-status-badge {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  /* Central Banks Bar */
  .central-banks-strip {
    padding: 6px 0 !important;
  }
  .banks-row {
    gap: 8px !important;
  }
  .bank-pill {
    padding: 2px 8px !important;
    font-size: 0.72rem !important;
  }

  /* User Profile & Haitian Dollar Switcher */
  .user-profile-bar {
    padding: 8px 0 !important;
  }
  .profile-config-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .profile-main-selector {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .profile-title {
    font-size: 0.78rem !important;
  }
  .profile-pills {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .profile-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 7px 6px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .haitian-dollar-switch-box {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  /* Feature Tabs Bar */
  .feature-tabs-bar {
    padding: 8px 0 4px !important;
  }
  .feature-tabs-wrapper {
    padding: 3px !important;
    border-radius: 12px !important;
  }
  .tab-btn {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }

  /* Fintech Cards */
  .fintech-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .card-top-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
  }
  .card-title-group h2 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }
  .card-title-group p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  /* Main Converter Inputs Flow */
  .currency-input-card {
    padding: 12px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
  .input-row-main {
    gap: 8px !important;
  }
  .amount-input-field {
    font-size: 1.45rem !important;
    min-width: 0 !important;
  }
  .currency-select-trigger {
    padding: 6px 10px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .flag-avatar {
    width: 22px !important;
    height: 22px !important;
  }
  .currency-code-tag {
    font-size: 0.9rem !important;
  }
  .currency-symbol-tag {
    font-size: 0.72rem !important;
  }
  .preset-chips-row {
    gap: 4px !important;
    margin-top: 8px !important;
  }
  .preset-chip {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
  }
  .swap-action-wrapper {
    margin: -3px 0 !important;
  }
  .btn-swap-currencies {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.88rem !important;
  }

  /* Result Summary Banner */
  .conversion-summary-banner {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .rate-headline {
    font-size: 0.78rem !important;
  }
  .result-giant-number {
    font-size: 1.55rem !important;
    word-break: break-word !important;
  }
  .haitian-dual-display-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }
  .h-dual-sep {
    display: none !important;
  }
  .h-dual-item {
    justify-content: space-between !important;
    font-size: 0.8rem !important;
  }
  .rate-details-sub {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .inverse-rate-box {
    justify-content: center !important;
    font-size: 0.74rem !important;
  }
  .result-cta-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .btn-tool-action {
    width: 100% !important;
    justify-content: center !important;
    padding: 7px 8px !important;
    font-size: 0.75rem !important;
  }

  /* Comparison Tables */
  .comparison-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .comparison-row {
    min-width: 440px !important;
    padding: 10px 12px !important;
    font-size: 0.76rem !important;
  }

  /* Haitian Banks Grid */
  .bank-radar-deals-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .deal-card {
    padding: 12px 14px !important;
  }
  .deal-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .haitian-banks-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .haitian-bank-card {
    padding: 14px 12px !important;
  }
  .h-bank-rates-row {
    gap: 8px !important;
  }
  .h-rate-box {
    padding: 8px 10px !important;
  }
  .h-rate-box .r-val {
    font-size: 1.05rem !important;
  }

  /* Grid Overrides for Remittance, Banker Pro, Customs, Crypto */
  .responsive-grid-2,
  .responsive-grid-3,
  .responsive-grid-2-end,
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Remittance Summary */
  .budget-summary-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }
  .budget-summary-card #remitNetGourdes {
    font-size: 1.5rem !important;
  }

  /* Macro Grid */
  .macro-grid-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .macro-stat-card {
    padding: 12px 14px !important;
  }
  .macro-stat-card .m-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
  }
  .macro-stat-card .m-val {
    font-size: 1.15rem !important;
  }

  /* Interactive Chart Tab */
  .chart-container-box {
    height: 250px !important;
  }
  .metrics-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .metric-stat-card {
    padding: 8px 10px !important;
  }
  .metric-stat-card .m-value {
    font-size: 1rem !important;
  }
  .timeframe-pill-group {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  .timeframe-btn {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
  }

  /* Modals */
  .modal-dialog {
    max-height: 90vh !important;
    border-radius: 18px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
  }
  #printableReceiptModal {
    padding: 16px 12px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  .modal-search-box {
    padding: 10px 14px !important;
  }
  .modal-header {
    padding: 14px 16px !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Phone Polish */
  .navbar {
    min-height: 48px !important;
  }
  .brand-text h1 {
    font-size: 0.95rem !important;
  }
  .brand-icon-box {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
  }
  .profile-pills {
    grid-template-columns: 1fr 1fr !important;
  }
  .profile-btn {
    padding: 6px 4px !important;
    font-size: 0.68rem !important;
  }
  .profile-btn .p-flag {
    font-size: 0.8rem !important;
  }
  .amount-input-field {
    font-size: 1.25rem !important;
  }
  .result-giant-number {
    font-size: 1.35rem !important;
  }
  .h-rate-box .r-val {
    font-size: 0.95rem !important;
  }
  .timeframe-btn {
    padding: 3px 5px !important;
    font-size: 0.65rem !important;
  }
}

/* Print Styles for Invoice */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceiptModal, #printableReceiptModal * {
    visibility: visible;
  }
  #printableReceiptModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
  }
}
