.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(246, 87, 160, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 239, 246, 0.94) 100%),
    #ffffff;
  box-shadow: 0 16px 38px rgba(55, 36, 44, 0.08);
  overflow: hidden;
}

.leftColumn {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.titleRow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

.iconWrap {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe89c 0%, #f8b83e 100%);
  color: #8f5400;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 18px rgba(216, 132, 22, 0.2);
}

.title {
  margin: 0;
  color: #191316;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.balance {
  margin: 0;
  color: #21191d;
  line-height: 1;
}

.balanceValue {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.4px;
}

.balanceUnit {
  color: #4f4449;
  font-size: 16px;
  font-weight: 750;
}

.rulesButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2e6eea;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
  transition: color 0.16s ease, transform 0.16s ease;
}

.rulesButton:hover {
  color: #174fbd;
}

.rulesButton:active {
  transform: translateY(1px);
}

.actionColumn {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
  align-items: stretch;
}

.activateButton,
.topUpButton {
  display: inline-flex;
  min-width: 92px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.1px;
  transition: box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease,
    background 0.18s ease;
}

.activateButton {
  background: #ffffff;
  color: #f657a0;
  border-color: rgba(246, 87, 160, 0.28);
  box-shadow: 0 10px 22px rgba(246, 87, 160, 0.12);
}

.topUpButton {
  background:
    linear-gradient(135deg, #f657a0 0%, #ff7ac3 100%),
    #f657a0;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(246, 87, 160, 0.28);
}

.activateButton:hover {
  background: #fff5fa;
  box-shadow: 0 14px 28px rgba(246, 87, 160, 0.18);
  transform: translateY(-1px);
}

.topUpButton:hover {
  box-shadow: 0 16px 30px rgba(246, 87, 160, 0.34);
  transform: translateY(-1px);
}

.activateButton:active,
.topUpButton:active {
  opacity: 0.92;
  transform: translateY(1px);
}

.rulesButton:focus-visible,
.activateButton:focus-visible,
.topUpButton:focus-visible {
  outline: 2px solid #f657a0;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .card {
    gap: 12px;
    padding: 16px;
  }

  .activateButton,
  .topUpButton {
    min-width: 78px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .balanceValue {
    font-size: 20px;
  }

  .balanceUnit,
  .rulesButton {
    font-size: 14px;
  }
}
