* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

body.dark-mode {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 215, 0, .28), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(0, 56, 168, .28), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(206, 17, 38, .22), transparent 32%),
    linear-gradient(160deg, #07111f, #0f172a 45%, #020617);
  color: #fff;
}

body.light-mode {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 215, 0, .35), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(0, 56, 168, .18), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(206, 17, 38, .16), transparent 32%),
    linear-gradient(160deg, #f8fafc, #e0f2fe 50%, #ffffff);
  color: #0f172a;
}

body.light-mode .card,
body.light-mode .rate-card {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.72),
    rgba(255,255,255,.32)
  );
  border-color: rgba(255,255,255,.65);
  box-shadow:
    0 24px 60px rgba(15,23,42,.12),
    inset 0 1px 1px rgba(255,255,255,.80);
}

body.light-mode .rate-card strong,
body.light-mode .converter h2,
body.light-mode .switch-box strong,
body.light-mode .current-rate strong {
  color: #0f172a;
}

body.light-mode .rate-card span,
body.light-mode .converter label,
body.light-mode .switch-box p,
body.light-mode .current-rate {
  color: rgba(15,23,42,.62);
}

body.light-mode .status {
  background: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.75);
  color: #166534;
}

body.light-mode .input-box input {
  background: rgba(255,255,255,.55);
  border-color: rgba(15,23,42,.12);
  color: #0f172a;
}

body.light-mode .input-box input::placeholder {
  color: rgba(15,23,42,.38);
}

body.light-mode .input-box button {
  background: rgba(255,255,255,.55);
  border-color: rgba(15,23,42,.12);
  color: #0f172a;
}

body.light-mode .rate-card.active {
  background: linear-gradient(
    145deg,
    rgba(34,197,94,.24),
    rgba(255,255,255,.55)
  );
  border-color: rgba(34,197,94,.55);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), transparent 35%),
    radial-gradient(circle at center, rgba(255,255,255,.06), transparent 45%);
  pointer-events: none;
}

.app {
  width: min(480px, 100%);
  margin: auto;
  padding: 18px;
  position: relative;
  z-index: 2;
}

.card,
.rate-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.22),
    rgba(255,255,255,.07)
  );
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 28px;
  padding: 20px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.32),
    inset 0 1px 1px rgba(255,255,255,.35),
    inset 0 -1px 1px rgba(255,255,255,.08);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.card::before,
.rate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.35),
    transparent 35%,
    rgba(255,255,255,.08)
  );
  opacity: .55;
  pointer-events: none;
}

.hero-logo {
  text-align: center;
  margin-bottom: 12px;
}

.logo-img {
  width: 172px;
  max-width: 78%;
  display: block;
  margin: 0 auto 2px;
  filter:
    drop-shadow(0 16px 28px rgba(0,0,0,.38))
    drop-shadow(0 0 18px rgba(255,255,255,.10));
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.90);
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.35),
    0 10px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.hidden {
  display: none !important;
}

.rates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.rate-card[data-rate="usdt"] {
  grid-column: 1 / -1;
}

.rate-card {
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.rate-card:hover {
  transform: translateY(-2px);
}

.rate-card.active {
  background: linear-gradient(
    145deg,
    rgba(34,197,94,.28),
    rgba(255,255,255,.08)
  );
  border-color: rgba(74,222,128,.58);
  box-shadow:
    0 24px 55px rgba(34,197,94,.16),
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -1px 1px rgba(255,255,255,.10);
}

.rate-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255,255,255,.68);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.rate-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-shadow: 0 8px 18px rgba(0,0,0,.24);
}

.switch-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.switch-box strong,
.converter h2,
.current-rate strong {
  position: relative;
  z-index: 1;
  color: #fff;
}

.switch-box p {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 14px;
}

.switch input {
  display: none;
}

.switch span {
  width: 58px;
  height: 32px;
  display: block;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.28),
    inset 0 -1px 1px rgba(0,0,0,.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: .2s;
}

.switch span::before {
  content: "";
  width: 26px;
  height: 26px;
  background: linear-gradient(145deg, #fff, #dbeafe);
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: .2s;
  box-shadow:
    0 5px 12px rgba(0,0,0,.30),
    inset 0 1px 1px rgba(255,255,255,.75);
}

.switch input:checked + span {
  background: rgba(34,197,94,.38);
  border-color: rgba(74,222,128,.60);
}

.switch input:checked + span::before {
  transform: translateX(26px);
}

.converter h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 22px;
  letter-spacing: -.3px;
}

.converter label {
  position: relative;
  z-index: 1;
  display: block;
  margin: 14px 0 8px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 700;
}

.input-box {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
}

.input-box input {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  outline: none;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.20),
    inset 0 -1px 1px rgba(0,0,0,.14);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  transition: .18s ease;
}

.input-box input::placeholder {
  color: rgba(255,255,255,.38);
}

.input-box input:focus {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.42);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.08),
    inset 0 1px 1px rgba(255,255,255,.25);
}

.input-box button {
  border: 1px solid rgba(255,255,255,.26);
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.30),
    0 12px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: .16s ease;
}

.input-box button:hover {
  background: rgba(255,255,255,.24);
}

.input-box button:active {
  transform: scale(.96);
}

.current-rate {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.65);
  margin-top: 16px;
  font-size: 14px;
}








html,
body {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

input,
button {
  user-select: auto;
  -webkit-user-select: auto;
}

input {
  touch-action: manipulation;
}