/* ============================================
   Frontend Currency List (All Currencies)
   Modern Next.js-Inspired Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --er-bg: #0a0a0a;
  --er-card: #141414;
  --er-card-border: #222222;
  --er-surface: #1a1a1a;
  --er-surface-hover: #222222;
  --er-text: #ededed;
  --er-text-secondary: #888888;
  --er-text-muted: #555555;
  --er-accent: #3b82f6;
  --er-accent-hover: #2563eb;
  --er-green: #22c55e;
  --er-green-bg: rgba(34, 197, 94, 0.08);
  --er-green-dark: #16a34a;
  --er-amber: #f59e0b;
  --er-amber-bg: rgba(245, 158, 11, 0.08);
  --er-border: #2a2a2a;
  --er-radius: 12px;
  --er-radius-sm: 8px;
  --er-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --er-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container */
.er-widget-container {
  font-family: var(--er-font);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  margin: 0 auto;
}

/* Date Time Header */
.er-calc-date-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--er-text-secondary);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  font-family: var(--er-font);
  text-align: right;
  background: var(--er-card);
  border: 1px solid var(--er-card-border);
  border-bottom: none;
  border-radius: var(--er-radius) var(--er-radius) 0 0;
  letter-spacing: -0.01em;
}

.er-title-bar {
  color: var(--er-text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.er-last-updated {
  margin-left: auto;
  white-space: nowrap;
}

/* ============================================
   Currency List
   ============================================ */
.er-list {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--er-font);
  background: var(--er-card);
  border: 1px solid var(--er-card-border);
  border-top: none;
  overflow: hidden;
}

.er-list-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.er-tour-popup {
  display: none;
  position: absolute;
  inset: 72px 18px auto 18px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.er-tour-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.er-tour-popup.is-fading {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.er-tour-popup-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(28, 28, 30, 0.86);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.er-tour-popup-hand {
  font-size: 22px;
  line-height: 1;
  animation: er-tour-swipe 1.3s ease-in-out infinite;
}

.er-tour-popup-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.er-tour-popup-copy strong {
  font-size: 13px;
  font-weight: 700;
}

.er-tour-popup-copy span {
  font-size: 12px;
  color: rgba(255,255,255,0.74);
}

@keyframes er-tour-swipe {
  0%, 100% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(8px);
  }
}

.er-list-head {
  width: 100%;
  display: grid;
  grid-template-columns: 1.56fr 0.96fr 0.84fr 0.84fr;
  min-width: 720px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--er-surface);
  color: var(--er-text-muted);
  border-bottom: 1px solid var(--er-border);
}

.er-list-head span {
  padding: 14px 14px;
  white-space: nowrap;
}

.er-list-head {
  padding-left: 10px;
}

.er-list-head span:nth-child(3),
.er-list-head span:nth-child(4) {
  text-align: center;
}

.er-list-body {
  width: 100%;
  margin: 0;
  padding: 0;
}

.er-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1.56fr 0.96fr 0.84fr 0.84fr;
  min-width: 720px;
  align-items: center;
  font-size: 14px;
  margin: 0;
  padding-left: 10px;
  border-bottom: 1px solid var(--er-border);
  transition: background var(--er-transition);
  color: var(--er-text);
}

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

.er-list-row:hover {
  background: var(--er-surface-hover);
}

.er-list-row span {
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: var(--er-font);
  font-weight: 500;
}

.er-list-row span:nth-child(1) {
  gap: 8px;
}

.er-currency-denomination-inline {
  display: none !important;
}

.er-calc-form,
.er-calc-single {
  display: none !important;
}

.er-calc-compact {
  --er-calc-amount-size: 22px;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.er-calc-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.er-calc-compact-head span {
  color: #607197;
  font-size: 12px;
  font-weight: 700;
}

.er-calc-value-box {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
  display: flex;
  align-items: center;
}

.er-calc-compact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.er-calc-value-box select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #304566;
  font-size: 15px;
  font-weight: 700;
  appearance: none;
}

.er-calc-value-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f3f75;
  font-size: var(--er-calc-amount-size);
  font-weight: 800;
  padding: 0;
}

.er-calc-result-inline {
  display: none;
  justify-items: center;
  gap: 4px;
}

.er-calc-result-inline.is-visible {
  display: grid;
}

.er-calc-result-inline span {
  color: #607197;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.er-calc-result-inline strong {
  color: #1f3f75;
  font-size: var(--er-calc-amount-size);
  font-weight: 800;
}

.er-calc-compact-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #607197;
  font-size: 14px;
  font-weight: 600;
}

.er-calc-compact-rate strong {
  color: #1f3f75;
}

.er-calc-last-updated {
  color: #7c8baa;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.er-calc-rate-switcher {
  max-width: 180px;
  margin: 0 0 0 auto;
}

@media (max-width: 640px) {
  .er-calc-compact {
    --er-calc-amount-size: 18px;
  }

  .er-calc-compact-head {
    gap: 10px;
  }

  .er-calc-value-box {
    min-height: 44px;
    padding: 0 12px;
  }

  .er-calc-compact-fields {
    gap: 10px;
  }

  .er-calc-value-box select {
    font-size: 18px;
  }
}

.er-calc-rate-switcher .er-calc-mode-chagner-btn {
  background: transparent !important;
  color: #0A203F !important;
  box-shadow: none !important;
  border: 0 !important;
}

.er-calc-rate-switcher .er-calc-mode-chagner-btn.active-mode {
  background: #0A203F !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.er-list-row span:nth-child(2) {
  color: var(--er-text-secondary);
  font-weight: 500;
  justify-content: center;
}

.er-list-row span:nth-child(3) {
  color: var(--er-green);
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.er-list-row span:nth-child(4) {
  color: var(--er-accent);
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.er-list-row span img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px;
  background-color: var(--er-surface);
  object-fit: cover;
}

/* Show/Hide Button */
#er-show-hide-ten-currencies {
  width: 100%;
  background: var(--er-surface);
  color: var(--er-text-secondary);
  border: none;
  border-top: 1px solid var(--er-border);
  outline: none;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--er-font);
  padding: 12px 16px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all var(--er-transition);
  letter-spacing: -0.01em;
}

#er-show-hide-ten-currencies:hover {
  background: var(--er-surface-hover);
  color: var(--er-text);
}

/* ============================================
   Calculator Section
   ============================================ */
.er-calculator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 24px 20px;
  box-sizing: border-box;
  border: 1px solid var(--er-card-border);
  border-top: none;
  border-radius: 0 0 var(--er-radius) var(--er-radius);
  font-family: var(--er-font);
}

/* Form Section */
.er-calc-form {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  margin: 0 0 16px 0;
  width: 100%;
}

.er-calc-form .header {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin: 0 0 8px 0;
}

.er-calc-form .header label {
  margin: 0 0 6px 0;
  padding: 0;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.er-calc-form .header #er-calc-currency-selector {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  outline: none;
  transition: all var(--er-transition);
  border-radius: var(--er-radius-sm);
  font-family: var(--er-font);
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.er-calc-form .header #er-calc-currency-selector:focus {
  border-color: var(--er-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.er-calc-form .header #er-calc-currency-selector option {
  background: #1a1a1a;
  color: #ededed;
}

.er-calc-form .footer {
  margin: 0;
  padding: 0;
  width: 100%;
}

.er-calc-form .footer p {
  margin: 0;
  padding: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 400;
}

/* Mode Switcher */
.er-calc-modes {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  gap: 12px;
}

.er-calc-modes>div {
  overflow: hidden;
  border-radius: var(--er-radius-sm);
  padding: 0;
  box-sizing: border-box;
  margin: 0;
}

.er-calc-buying-mode,
.er-calc-selling-mode {
  flex: 1;
}

.er-calc-modes .er-calc-equal-value {
  background: transparent;
  width: 48px;
  text-align: center;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.er-calc-modes .er-calc-equal-value p {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 22px;
  font-weight: 700;
}

.er-calc-modes .er-calc-equal-value p#er-calc-equal-value-amount {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Mode Buttons */
.er-calc-mode-chagner-btn {
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--er-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--er-transition);
  width: 100%;
  font-family: var(--er-font);
}

.er-calc-mode-chagner-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.er-calc-mode-chagner-btn.active-mode {
  background: var(--er-accent);
  color: #fff;
  border-color: var(--er-accent);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

/* Input Fields */
.er-calc-modes>div .input-field-container {
  width: 100%;
  border-radius: var(--er-radius-sm);
  padding: 14px;
  box-sizing: border-box;
  margin: 10px 0 0 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--er-transition);
}

.input-field-container:focus-within {
  border-color: var(--er-accent) !important;
}

.input-field-container p {
  margin: 0 0 8px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--er-font);
}

.input-field-container input {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  text-align: right;
  font-family: var(--er-font);
  font-variant-numeric: tabular-nums;
  transition: background var(--er-transition);
}

.input-field-container input:focus {
  background: rgba(255, 255, 255, 0.1);
}

.input-field-container input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.input-field-container #result-currency-name,
.input-field-container #required-currency-name {
  font-weight: 600;
  font-size: 13px;
  margin: 8px 0 0 0;
  color: rgba(255, 255, 255, 0.6);
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================
   Mobile Responsiveness
   ============================================ */
@media screen and (max-width: 600px) {

  .er-list-head,
  .er-list-row {
    grid-template-columns: 1.5fr 0.8fr 0.7fr 0.7fr;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 10px 10px;
    font-size: 12px;
  }

  .er-list-row span img {
    width: 22px !important;
    height: 22px !important;
  }

  .er-calculator {
    padding: 20px 16px;
  }

  .input-field-container input {
    font-size: 16px;
  }

  .er-calc-date-time {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media screen and (max-width: 400px) {

  .er-list-head,
  .er-list-row {
    grid-template-columns: 1.2fr 0.8fr 0.6fr 0.6fr;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 8px 6px;
    font-size: 11px;
  }

  .er-list-row span:nth-child(1) {
    gap: 6px;
  }

  .er-list-row span img {
    width: 20px !important;
    height: 20px !important;
  }

  .er-calc-modes {
    gap: 8px;
  }

  .er-calc-modes .er-calc-equal-value {
    width: 36px;
  }

  .er-calc-mode-chagner-btn {
    font-size: 11px;
    padding: 8px 10px;
  }

  .input-field-container input {
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* ============================================
   Frontend Refresh
   ============================================ */
:root {
  --er-bg: #fbf6ef;
  --er-card: rgba(255, 255, 255, 0.92);
  --er-card-border: rgba(121, 91, 61, 0.14);
  --er-surface: #f5ede1;
  --er-surface-hover: #f0e4d3;
  --er-text: #2d241b;
  --er-text-secondary: #6d5d4e;
  --er-text-muted: #91806f;
  --er-accent: #bf6f2c;
  --er-accent-hover: #9f5920;
  --er-green: #1f8e67;
  --er-green-bg: rgba(31, 142, 103, 0.1);
  --er-green-dark: #176f50;
  --er-amber: #ca8a1f;
  --er-amber-bg: rgba(202, 138, 31, 0.12);
  --er-border: rgba(121, 91, 61, 0.14);
  --er-radius: 24px;
  --er-radius-sm: 16px;
  --er-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --er-transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.er-widget-container {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 148, 0.35), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #f7f0e6 100%);
  border: 1px solid var(--er-card-border);
  border-radius: calc(var(--er-radius) + 4px);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(121, 91, 61, 0.12);
}

.er-calc-date-time {
  background: rgba(255, 255, 255, 0.7);
  color: var(--er-text-secondary);
  padding: 16px 22px;
  border-bottom: 1px solid var(--er-border);
  border-radius: 0;
}

.er-list {
  background: transparent;
  border: 0;
}

.er-list-head {
  background: rgba(245, 237, 225, 0.9);
  color: #7f6d5c;
  border-bottom: 1px solid var(--er-border);
}

.er-list-head span,
.er-list-row span {
  padding: 16px 16px;
}

.er-list-row {
  position: relative;
  border-bottom: 1px solid rgba(121, 91, 61, 0.1);
}

.er-list-row:hover {
  background: rgba(255, 255, 255, 0.65);
}

.er-list-row span:nth-child(1) {
  font-weight: 700;
}

.er-list-row span img {
  width: 32px !important;
  height: 24px !important;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(108, 84, 58, 0.14);
  background: #fff7ed;
}

#er-show-hide-ten-currencies {
  background: rgba(255, 255, 255, 0.76);
  color: var(--er-text-secondary);
  border-top: 1px solid var(--er-border);
  padding: 16px;
  font-weight: 700;
}

#er-show-hide-ten-currencies svg {
  transition: transform var(--er-transition);
}

.er-calculator {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(244, 183, 114, 0.25), transparent 25%),
    linear-gradient(135deg, #3f2d20 0%, #74482b 55%, #a56427 100%);
  padding: 26px 22px 24px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.er-calculator::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 0;
  border-radius: 20px;
  pointer-events: none;
}

.er-calc-form .header label {
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 700;
}

.er-calc-form .header #er-calc-currency-selector {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 14px 16px;
}

.er-calc-form .footer p {
  color: rgba(255,255,255,0.76);
}

.er-calc-mode-chagner-btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
}

.er-calc-mode-chagner-btn.active-mode {
  background: #fff7ef;
  color: #9f5920;
}

.input-field-container {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 6px 12px;
}

.input-field-container input {
  color: #ffffff;
  font-weight: 800;
  text-align: right;
}

.input-field-container p {
  color: #7b5f49;
  font-weight: 700;
}

.er-list-row {
  cursor: pointer;
}

.er-list-row.is-selected {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 3px 0 0 var(--er-accent);
}

.er-list-row:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: -2px;
}

@media (max-width: 900px) {
  .er-list-head,
  .er-list-row {
    grid-template-columns: 1.45fr 0.9fr 0.82fr 0.82fr;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 12px 10px;
  }

  .er-calculator {
    padding: 20px 16px 18px;
  }

  .er-calc-rate-switcher {
    grid-template-columns: 1fr;
  }

  .er-calc-converter {
    grid-template-columns: 1fr;
  }

  .er-calc-equal-value {
    width: 100%;
    min-height: 24px;
  }
}

@media (max-width: 640px) {
  .er-tour-popup {
    display: block;
  }

  .er-calc-date-time {
    font-size: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .er-title-bar,
  .er-last-updated {
    white-space: normal;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .er-calc-form .header #er-calc-currency-selector {
    font-size: 16px;
  }

  .er-calc-panel {
    padding: 18px 16px;
  }

  .input-field-container {
    padding: 10px 12px;
  }

  .input-field-container input {
    font-size: 16px;
  }

  .er-list-head,
  .er-list-row {
    min-width: 580px;
    grid-template-columns: 1.35fr 0.75fr 0.7fr 0.7fr;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 12px 8px;
  }
}

/* Final alignment + white converter */
.er-list-head span:nth-child(2),
.er-list-head span:nth-child(3),
.er-list-head span:nth-child(4),
.er-list-row span:nth-child(2),
.er-list-row span:nth-child(3),
.er-list-row span:nth-child(4) {
  justify-content: center;
  text-align: center;
}

.er-calculator {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.er-calc-form .header label,
.er-calc-panel-label {
  color: #607197;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.er-calc-form .header #er-calc-currency-selector {
  background: #f8fbff;
  border: 1px solid #d7dfeb;
  color: #304566;
}

.er-calc-form .footer p {
  color: #5f6f8f;
}

.er-calc-rate-switcher {
  background: #eef4fb;
  padding: 6px;
  border-radius: 18px;
}

.er-calc-mode-chagner-btn {
  background: transparent;
  color: #607197;
  border: 0;
  box-shadow: none;
}

.er-calc-mode-chagner-btn.active-mode {
  background: #1a73e8;
  color: #fff;
}

.er-calc-panel {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 10px 24px rgba(66, 84, 120, 0.08);
}

.input-field-container {
  background: #f8fbff;
  border: 1px solid #dbe3ef;
}

.input-field-container input {
  background: transparent;
  color: #2d4264;
}

.input-field-container p {
  color: #607197;
}

.er-calc-equal-value p#er-exchange-icon-btn {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  color: #516784 !important;
  box-shadow: 0 8px 18px rgba(66, 84, 120, 0.08);
}
.er-calc-rate-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.er-calc-converter {
  gap: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
}

.er-calc-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.er-calc-panel-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Single converter override */
.er-calc-single {
  display: grid;
  gap: 16px;
  width: 100%;
}

.er-calc-converter,
.er-calc-equal-value {
  display: none !important;
}

.er-calc-panel {
  background: #ffffff !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(66, 84, 120, 0.08) !important;
  backdrop-filter: none !important;
}

.er-calc-panel-label {
  display: block;
  margin-bottom: 10px;
  color: #607197 !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.input-field-container {
  background: #f8fbff !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 16px;
  padding: 12px 16px;
}

.input-field-container input {
  background: transparent !important;
  color: #2d4264 !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  padding: 4px 0 !important;
  text-align: left !important;
}

.er-calc-result-card {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  border: 1px solid #dbe3ef;
}

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

.er-calc-result-card strong {
  color: #1f3f75;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.er-calc-result-card p {
  margin: 0;
  color: #607197;
  font-size: 14px;
  font-weight: 600;
}

#er-calc-rate-meta {
  color: #7a8baa;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .er-calc-panel,
  .er-calc-result-card {
    padding: 18px 16px;
  }

  .er-calc-result-card strong {
    font-size: 28px;
  }

  .input-field-container input {
    font-size: 30px !important;
  }
}

/* Final mobile table fit override */
.er-tour-popup,
.er-tour-popup-card,
.er-tour-popup-hand,
.er-tour-popup-copy {
  display: none !important;
}

@media (max-width: 640px) {
  .er-list-scroll {
    overflow: visible !important;
  }

  .er-list-head,
  .er-list-row {
    min-width: 0 !important;
    width: 100%;
    grid-template-columns: minmax(0, 0.96fr) minmax(54px, 0.86fr) minmax(56px, 0.82fr) minmax(56px, 0.82fr) !important;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 10px 8px !important;
    font-size: 11px !important;
  }

  .er-list-head {
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
  }

  .er-list-row {
    font-size: 12px !important;
  }

  .er-list-row span:nth-child(1) {
    gap: 6px;
    min-width: 0;
    font-size: 12px !important;
  }

  .er-list-row span:nth-child(1) img {
    width: 22px !important;
    height: 18px !important;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .er-list-row span:nth-child(1),
  .er-list-row span:nth-child(2),
  .er-list-row span:nth-child(3),
  .er-list-row span:nth-child(4) {
    justify-content: center;
  }

  .er-list-row span:nth-child(1) {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .er-list-head,
  .er-list-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(48px, 0.78fr) minmax(52px, 0.76fr) minmax(52px, 0.76fr) !important;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 9px 6px !important;
    font-size: 10px !important;
  }

  .er-list-row span:nth-child(1) {
    font-size: 11px !important;
  }

  .er-list-row span:nth-child(1) img {
    width: 20px !important;
    height: 16px !important;
  }
}

@media (max-width: 640px) {
  .er-list-head,
  .er-list-row {
    grid-template-columns: minmax(0, 0.92fr) minmax(42px, 0.58fr) minmax(44px, 0.62fr) minmax(44px, 0.62fr) !important;
  }

  .er-list-row span:nth-child(1) {
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 8px 4px !important;
  }

  .er-list-head span:nth-child(2),
  .er-list-head span:nth-child(3),
  .er-list-head span:nth-child(4) {
    font-size: 10px !important;
    letter-spacing: 0.01em !important;
  }

  .er-list-head span:nth-child(1) {
    font-size: 10px !important;
  }

  .er-list-row {
    font-size: 12px !important;
  }

  .er-list-row span {
    font-size: 12px !important;
  }

  .er-list-row span:nth-child(3),
  .er-list-row span:nth-child(4) {
    font-size: 12px !important;
  }

  .er-list-head > span:nth-child(2),
  .er-list-row > span:nth-child(2) {
    display: none !important;
  }

  .er-list-head,
  .er-list-row {
    grid-template-columns: minmax(0, 1fr) minmax(42px, 0.62fr) minmax(42px, 0.62fr) !important;
  }

  .er-currency-denomination-inline {
    display: inline !important;
    margin-left: 4px;
    color: #8b7a67;
    font-size: 9px;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .er-list-head,
  .er-list-row {
    grid-template-columns: minmax(0, 0.86fr) minmax(36px, 0.52fr) minmax(38px, 0.56fr) minmax(38px, 0.56fr) !important;
  }

  .er-list-head span,
  .er-list-row span {
    padding: 7px 3px !important;
  }

  .er-list-head span:nth-child(2),
  .er-list-head span:nth-child(3),
  .er-list-head span:nth-child(4) {
    font-size: 10px !important;
  }

  .er-list-head span:nth-child(1) {
    font-size: 10px !important;
  }

  .er-list-row,
  .er-list-row span:nth-child(3),
  .er-list-row span:nth-child(4) {
    font-size: 12px !important;
  }

  .er-list-row span:nth-child(1) {
    font-size: 12px !important;
  }

  .er-currency-denomination-inline {
    font-size: 8px;
  }
}
