.ovm-buy-link,
.ovm-buy-popup,
.ovm-download,
.ovm-pay-btn {
  border: 0;
  border-radius: var(--radius, 12px);
  padding: 12px 20px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}

.ovm-buy-link,
.ovm-buy-popup,
.ovm-pay-btn {
  background: linear-gradient(135deg, var(--color1, #7350ff), var(--red, #ff5089));
  color: var(--text, #fff);
  box-shadow: 0 18px 40px rgba(115, 80, 255, .28);
}

.ovm-download {
  background: linear-gradient(135deg, var(--green, #43c79c), #2ea27e);
  color: #fff;
  box-shadow: 0 18px 40px rgba(67, 199, 156, .22);
}

.ovm-buy-link:hover,
.ovm-buy-popup:hover,
.ovm-download:hover,
.ovm-pay-btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.ovm-buy-link:focus-visible,
.ovm-buy-popup:focus-visible,
.ovm-download:focus-visible,
.ovm-pay-btn:focus-visible,
.ovm-select:focus-visible,
.ovm-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(115, 80, 255, .18);
}

.ovm-empty {
  padding: 16px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: calc(var(--radius, 12px) + 2px);
  color: var(--text2, #9c9cbb);
}

.ovm-cabinet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.ovm-table-wrap {
  overflow-x: auto;
}

.ovm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: calc(var(--radius, 12px) + 2px);
  overflow: hidden;
}

.ovm-table th,
.ovm-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ovm-table th {
  background: rgba(255, 255, 255, .05);
  color: var(--text, #fff);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ovm-table td {
  color: var(--text2, #9c9cbb);
}

.ovm-table tbody tr:last-child td {
  border-bottom: 0;
}

.ovm-table code {
  color: var(--text, #fff);
}

.ovm-modal-open,
.ovm-modal-open body {
  overflow: hidden;
}

.ovm-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(8, 8, 18, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ovm-modal-body {
  position: relative;
  width: min(100%, 620px);
  padding: 32px;
  border-radius: calc(var(--radius, 12px) + 12px);
  background: linear-gradient(180deg, rgba(34, 34, 58, .96), rgba(18, 18, 34, .98));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
  color: var(--text, #fff);
  overflow: visible;
  isolation: isolate;
}

.ovm-modal-body::before,
.ovm-modal-body::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .92;
}

.ovm-modal-body::before {
  top: -160px;
  right: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at center, rgba(115, 80, 255, .42) 0%, rgba(115, 80, 255, .24) 30%, rgba(115, 80, 255, .08) 52%, rgba(115, 80, 255, 0) 74%);
}

.ovm-modal-body::after {
  bottom: -180px;
  left: -130px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(255, 80, 137, .3) 0%, rgba(255, 80, 137, .16) 34%, rgba(255, 80, 137, .06) 54%, rgba(255, 80, 137, 0) 76%);
}

.ovm-modal-head,
.ovm-modal-actions,
.ovm-modal-note,
.ovm-login-required {
  position: relative;
  z-index: 1;
}

.ovm-modal-head {
  padding-right: 56px;
}

.ovm-modal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text2, #9c9cbb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ovm-modal-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
  font-weight: 800;
  max-width: 460px;
}

.ovm-modal-description {
  margin: 14px 0 0;
  max-width: 480px;
  color: var(--text2, #9c9cbb);
  font-size: 15px;
  line-height: 1.6;
}

.ovm-field {
  position: relative;
  z-index: 4;
  margin-top: 24px;
}

.ovm-label {
  display: block;
  margin: 0 0 10px;
  color: var(--text2, #9c9cbb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ovm-select-wrap {
  position: relative;
  z-index: 2;
}

.ovm-select-wrap.is-open {
  z-index: 8;
}

.ovm-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ovm-select {
  width: 100%;
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: calc(var(--radius, 12px) + 2px);
  padding: 0 16px 0 18px;
  background:
    linear-gradient(180deg, rgba(13, 14, 35, .94), rgba(7, 8, 22, .98)),
    linear-gradient(135deg, rgba(115, 80, 255, .08), rgba(255, 80, 137, .04));
  color: var(--text, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ovm-select:hover {
  border-color: rgba(255, 255, 255, .16);
  transform: none;
}

.ovm-select:focus,
.ovm-select:focus-visible {
  outline: none;
  border-color: rgba(115, 80, 255, .75);
  box-shadow: 0 0 0 4px rgba(115, 80, 255, .16);
}

.ovm-select-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ovm-select-chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform .2s ease;
}

.ovm-select-chevron::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, .84);
  border-bottom: 2px solid rgba(255, 255, 255, .84);
  transform: rotate(45deg);
}

.ovm-select-wrap.is-open .ovm-select-chevron {
  transform: rotate(180deg);
}

.ovm-select-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 12;
  display: block;
  max-height: 0;
  padding: 0;
  overflow: hidden auto;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(22, 24, 50, .98), rgba(10, 11, 29, .98)),
    linear-gradient(135deg, rgba(115, 80, 255, .12), rgba(255, 80, 137, .08));
  box-shadow: 0 28px 60px rgba(2, 5, 20, .52);
  transform: translateY(-10px);
  transition: max-height .28s ease, padding .22s ease, opacity .2s ease, transform .2s ease, border-color .2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 140, 255, .8) rgba(255, 255, 255, .06);
}

.ovm-select-menu::-webkit-scrollbar {
  width: 10px;
}

.ovm-select-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
}

.ovm-select-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(115, 80, 255, .9), rgba(255, 80, 137, .82));
  border-radius: 999px;
  border: 2px solid rgba(12, 13, 32, .9);
}

.ovm-select-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(132, 97, 255, 1), rgba(255, 99, 152, .96));
}

.ovm-select-wrap.is-open .ovm-select-menu {
  max-height: 260px;
  padding: 10px;
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(255, 255, 255, .08);
  transform: translateY(0);
}

.ovm-select-option {
  width: 100%;
  border: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: transparent;
  color: var(--text2, #b6b6d6);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ovm-select-option + .ovm-select-option {
  margin-top: 6px;
}

.ovm-select-option:hover,
.ovm-select-option:focus-visible {
  outline: none;
  color: var(--text, #fff);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-1px);
}

.ovm-select-option.is-selected {
  color: var(--text, #fff);
  background: linear-gradient(135deg, rgba(115, 80, 255, .22), rgba(255, 80, 137, .18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.ovm-modal-actions {
  margin-top: 20px;
  display: flex;
}

.ovm-pay-btn {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
  letter-spacing: .02em;
}

.ovm-modal-note {
  margin-top: 14px;
  color: var(--text2, #9c9cbb);
  font-size: 13px;
  line-height: 1.6;
}

.ovm-modal-note-server {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: var(--radius, 12px);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text, #fff);
}

.ovm-login-required {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: calc(var(--radius, 12px) + 2px);
  color: var(--text, #fff);
  line-height: 1.6;
}

.ovm-login-required a {
  color: var(--text, #fff);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
}

.ovm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text, #fff);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.ovm-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

@media (max-width: 640px) {
  .ovm-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .ovm-modal-body {
    width: 100%;
    padding: 24px 18px 18px;
    border-radius: 22px;
  }

  .ovm-modal-head {
    padding-right: 44px;
  }

  .ovm-modal-kicker {
    margin-bottom: 16px;
  }

  .ovm-modal-title {
    font-size: 24px;
    max-width: none;
  }

  .ovm-modal-description {
    font-size: 14px;
  }

  .ovm-select {
    min-height: 56px;
    font-size: 15px;
  }

  .ovm-pay-btn {
    min-height: 54px;
  }

  .ovm-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}
