.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(94, 234, 212, 0.25),
    rgba(59, 130, 246, 0.25)
  );

  border: 1px solid var(--surface-border);

  font-size: 1.2rem;
}

.logo h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

.logo-icon {
  border: none;
  transition:
    background 0.4s ease,
    border 0.4s ease,
    color 0.4s ease,
    transform 0.3s ease;
  font-family: inherit;
}

.theme-button,
.refresh-button,
.search-box button {
  cursor: pointer;
}

.theme-button {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.theme-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.search-box {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 14px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0 10px;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.search-box button {
  padding: 14px 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: white;
  font-weight: 600;
}

.search-box button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.refresh-button {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
}

.refresh-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.currency-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border: none;
  transition:
    background 0.4s ease,
    border 0.4s ease,
    color 0.4s ease,
    transform 0.3s ease;
  font-family: inherit;
}

.currency-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

.currency-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 234, 212, 0.25);
}

.currency-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  margin-bottom: 28px;
}

.currency-symbol {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.positive {
  background: rgba(74, 222, 128, 0.12);
  color: var(--positive);
}

.negative {
  background: rgba(251, 113, 133, 0.12);
  color: var(--negative);
}

.currency-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 26px;
}

.currency-footer {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.loading {
  width: 100%;
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 400% 100%;
  animation: loadingAnimation 1.4s infinite;
}

@keyframes loadingAnimation {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.error-message {
  width: 100%;
  padding: 24px;
  border-radius: 24px;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.2);
  color: #fb7185;
  font-weight: 600;
}

.converter-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 50px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.converter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.converter-field label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.converter-field input,
.converter-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.converter-field select option {
  color: #0f172a;
}

.converter-button {
  padding: 15px 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: white;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.converter-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.converter-result {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  min-width: 280px;
  padding: 16px 20px;
  border-radius: 16px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
  animation:
    toastEnter 0.3s ease,
    toastExit 0.3s ease 2.7s forwards;
  
}

.toast-success {
  background:
    linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.15),
      rgba(22, 163, 74, 0.25)
    );

  border-color:
    rgba(34, 197, 94, 0.25);

  color: #86efac;
}

.toast-error {
  background:
    linear-gradient(
      135deg,
      rgba(239, 68, 68, 0.12),
      rgba(220, 38, 38, 0.22)
    );

  border-color:
    rgba(239, 68, 68, 0.22);

  color: #fca5a5;
}

.toast-info {
  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.12),
      rgba(37, 99, 235, 0.22)
    );

  border-color:
    rgba(59, 130, 246, 0.22);

  color: #93c5fd;
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast {
  overflow: hidden;
  position: relative;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@keyframes toastExit {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.mini-chart-wrapper {
  width: 100%;
  height: 54px;
  margin-bottom: 22px;
}

.mini-chart {
  width: 100%;
  height: 100%;
}

.mini-chart-positive {
  color: var(--positive);
}

.mini-chart-negative {
  color: var(--negative);
}
