body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: #f1f3f6;
  padding: 30px 20px;
  margin: 0;
  text-align: center;
}
/* Visually hidden h1 for SEO and accessibility */
h1, h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Logo Container Styles - Squircle Shape (Rounded Square) */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  padding: 0;
}

.main-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 
              0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.main-logo:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 
              0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Desktop styles */
@media (min-width: 769px) {
  .logo-container {
    margin-bottom: 25px;
  }
  
  .main-logo {
    width: 110px;
    height: 110px;
    padding: 12px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .logo-container {
    margin-bottom: 18px;
  }
  
  .main-logo {
    width: 125px;
    height: 125px;
    padding: 10px;
  }
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 768px) {
  .main-logo {
    width: 100px;
    height: 100px;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .logo-container {
    margin-bottom: 15px;
  }
  
  .main-logo {
    width: 115px;
    height: 115px;
    padding: 9px;
  }
}
input[type="text"] {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  transition: border 0.3s ease;
  min-width: 200px;
}
input[type="text"]:focus {
  outline: none;
  border-color: #21aa58;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown > button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background-color: #21aa58;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.dropdown > button:hover {
  background-color: #1a944c;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 10px;
  z-index: 1;
  text-align: left;
  margin-top: 8px;
  padding: 8px 0;
}
.dropdown-content .currency-option {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}
.dropdown-content .currency-option:hover {
  background-color: #f3f3f3;
}
.dropdown-content img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: contain;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.04);
}
.dropdown:hover .dropdown-content {
  display: block;
}
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  justify-items: center;
}
.currency-card {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 150px;
  padding: 20px 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.6s ease;
}
.currency-card.green {
  background-color: #e4f8e4;
  animation: pulseGreen 0.8s ease-in-out;
}
.currency-card.red {
  background-color: #fce7e7;
  animation: pulseRed 0.8s ease-in-out;
}

@keyframes pulseGreen {
  0% {
    background-color: #fff;
    transform: scale(1);
  }
  50% {
    background-color: #c8f0c8;
    transform: scale(1.02);
  }
  100% {
    background-color: #e4f8e4;
    transform: scale(1);
  }
}

@keyframes pulseRed {
  0% {
    background-color: #fff;
    transform: scale(1);
  }
  50% {
    background-color: #fad4d4;
    transform: scale(1.02);
  }
  100% {
    background-color: #fce7e7;
    transform: scale(1);
  }
}
.flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.currency-card:hover .flag {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}
.name {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin-bottom: 2px;
}
.code {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}
.price {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin-top: 5px;
}
.change {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.change.up {
  color: #fff;
  background-color: #22c55e;
  animation: fadeInUp 0.5s ease-out, glowGreen 1.5s ease-in-out;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.change.down {
  color: #fff;
  background-color: #ef4444;
  animation: fadeInDown 0.5s ease-out, glowRed 1.5s ease-in-out;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowGreen {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.6);
  }
}

@keyframes glowRed {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
  }
}
.remove-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  padding: 0;
  color: #444;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}
.remove-btn:hover {
  background-color: #e0e0e0;
  color: #000;
}
.error-msg {
  color: red;
  font-size: 14px;
  margin-top: 20px;
}

.controls {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Desktop glassmorphism button */
.bottom-menu {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, rgba(33, 170, 88, 0.85), rgba(26, 148, 76, 0.9));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(33, 170, 88, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.3px;
}

.bottom-menu:hover {
  background: linear-gradient(135deg, rgba(26, 148, 76, 0.9), rgba(21, 122, 62, 0.95));
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(33, 170, 88, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.bottom-menu:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(33, 170, 88, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.currency-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 60vh;
  background-color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px 12px 0 0;
  padding: 0;
  overflow: hidden;
  z-index: 1001;
  display: none;
  animation: slideUp 0.3s ease-out;
  box-sizing: border-box;
}

.currency-modal-header {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  padding: 15px 15px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.close-modal {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #333;
}

.dropdown-search {
  position: sticky;
  top: 55px;
  width: calc(100% - 30px);
  margin: 0 15px 10px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  background: white;
  z-index: 9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.dropdown-search:focus {
  outline: none;
  border-color: #21aa58;
  box-shadow: 0 2px 12px rgba(33, 170, 88, 0.15);
}

#currency-options {
  overflow-y: auto;
  max-height: calc(60vh - 120px);
  padding: 0 15px 60px;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.currency-option {
  padding: 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.currency-option:hover {
  background-color: #f8f8f8;
}
.currency-option img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: contain;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.04);
}

/******************************* converter ************************************/

/* Modern dual conversion design */
.converter-section {
  max-width: 620px;
  margin: auto;
  margin-bottom: 50px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: all 0.3s ease-out;
}

/* Converter header and close button */
.converter-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.close-converter {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
}

.close-converter:hover {
  color: #333;
}

/* Converter toggle - hidden on desktop */
.converter-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: rgba(0, 0, 0, 0.85);
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3px;
}

.converter-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.converter-toggle:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  opacity: 0.9;
}

/* Smooth transition for button visibility */
.bottom-menu,
.converter-toggle {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), pointer-events 0s 0.3s;
}

.bottom-menu[style*="opacity: 0"],
.converter-toggle[style*="opacity: 0"] {
  pointer-events: none !important;
}

/* Mobile styles - unified glassmorphism menu */
@media (max-width: 768px) {
  .converter-toggle {
    display: flex;
    bottom: 20px;
    left: 50%;
    transform: translateX(-100%);
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.85), rgba(42, 86, 173, 0.9));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 14px 16px;
    border-radius: 16px 0 0 16px;
    border-right: none;
    min-width: 140px;
    width: 140px;
    font-size: 13px;
    box-shadow: 0 8px 32px rgba(51, 102, 204, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
  }
  
  .converter-toggle:hover {
    background: linear-gradient(135deg, rgba(42, 86, 173, 0.9), rgba(30, 64, 128, 0.95));
    box-shadow: 0 12px 40px rgba(51, 102, 204, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  
  .bottom-menu {
    bottom: 20px;
    right: 50%;
    left: auto;
    transform: translateX(100%);
    background: linear-gradient(135deg, rgba(33, 170, 88, 0.85), rgba(26, 148, 76, 0.9));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 14px 16px;
    border-radius: 0 16px 16px 0;
    border-left: none;
    min-width: 140px;
    width: 140px;
    font-size: 13px;
    box-shadow: 0 8px 32px rgba(33, 170, 88, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
  }
  
  .bottom-menu:hover {
    background: linear-gradient(135deg, rgba(26, 148, 76, 0.9), rgba(21, 122, 62, 0.95));
    box-shadow: 0 12px 40px rgba(33, 170, 88, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  
  .button-icon {
    width: 16px;
    height: 16px;
  }
  
  .converter-toggle .button-icon,
  .bottom-menu .button-icon {
    opacity: 1;
  }
  
  .close-converter {
    display: block;
    font-size: 28px;
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
  
  .converter-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    box-sizing: border-box;
    padding: 24px 20px 30px;
  }
  
  .converter-section.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* Hide converter toggle button when converter is active */
  .converter-section.active ~ .converter-toggle {
    display: none;
  }
  
  /* Adjust bottom menu position when converter is active */
  .converter-section.active ~ .bottom-menu {
    bottom: calc(100% - 80px);
  }
  
  /* Improved mobile styles for converter fields */
  .converter-field {
    padding: 15px;
    border-radius: 16px;
    background-color: #f9fafb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .converter-field label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #555;
  }
  
  .converter-field input,
  .converter-field select {
    font-size: 18px;
    font-weight: 500;
  }
  
  /* Improved amount field */
  .amount-field input {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
  }
  
  /* Improved currency selector */
  .currency-selector {
    gap: 12px;
  }
  
  .currency-selector img {
    width: 32px;
    height: 32px;
  }
  
  .currency-static {
    font-size: 18px;
  }
  
  /* Improved swap button */
  .swap-btn {
    width: 46px;
    height: 46px;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(33, 170, 88, 0.3);
    margin: 0 5px;
  }
  
  /* Improved result display */
  .converter-result {
    font-size: 22px;
    padding: 15px;
    margin-top: 10px;
    background-color: #f0f8f0;
    border-radius: 12px;
  }
  
  /* Adjust spacing */
  .converter-row {
    gap: 0;
    margin-bottom: 5px;
    justify-content: space-between;
  }
  
  /* Make From/To fields and swap button in one line */
  .currency-exchange-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
  }
  
  .currency-exchange-row .converter-field {
    flex: 1;
    min-width: 0;
    padding: 12px;
  }
  
  .swap-container {
    flex: 0 0 auto;
    margin: 0;
  }
  
  .converter-header {
    margin-bottom: 15px;
  }
}
.converter-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
.converter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Currency exchange row with From, Swap, To in one line */
.currency-exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
  width: 100%;
}

.currency-exchange-row .converter-field {
  flex: 1;
  min-width: 0;
}

.currency-exchange-row .swap-container {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
}
.converter-field {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.converter-field label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
}
.converter-field input,
.converter-field select {
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #222;
  outline: none;
}
.flag-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.flag-label img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: contain;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.04);
}
.swap-btn {
  background: #21aa58;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.swap-btn:hover {
  transform: rotate(180deg);
  background-color: #1a944c;
}
.converter-result {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #21aa58;
}

.result-amount {
  color: #333;
}

.result-converted {
  color: #21aa58;
  font-weight: 700;
}

.amount-field {
  width: 100%;
}

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

.currency-selector img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.04);
}

.currency-static {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

@media (max-width: 768px) {
  .currency-static {
    font-size: 18px;
    font-weight: 600;
  }
}

.swap-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.convert-btn {
  background-color: #3366cc;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  width: 100%;
}

.convert-btn:hover {
  background-color: #2a56ad;
}

.gold-menu {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.gold-menu:hover {
  background: linear-gradient(135deg, #b8941f, #9a7a1a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.gold-menu:active {
  transform: translateY(1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Mobile styles for gold menu */
@media (max-width: 768px) {
  .gold-menu {
    bottom: 85px;
    right: 5px;
    width: 42%;
    max-width: 150px;
    justify-content: center;
    padding: 12px 5px;
    min-width: auto;
    font-size: 14px;
    border-radius: 30px;
  }
}

/* Skeleton loader styles */
.skeleton-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 150px;
  padding: 20px 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-name {
  width: 80%;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}

.skeleton-code {
  width: 40%;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-price {
  width: 70%;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-top: 5px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Cache indicator animation */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.cache-indicator {
  animation: fadeInOut 3s ease-in-out forwards;
}
