/* =============================================================================
 * Vitalum Buy VAM — exact port of vam.html's #buy block.
 *
 * We render the SAME markup the theme uses (.section, .section-head-s9,
 * .title-xs, .title-s1, .tc-primary, .token-action-box, .vam-donut-*,
 * .table-token-s1, .btn-grad, modal classes, etc.).
 * All rules below are SCOPED under .vbv-scope so nothing leaks into the WP
 * theme and nothing from the WP theme leaks in.
 *
 * Sources (line numbers approximate):
 *   vendor.bundle.css  → bootstrap grid pieces (container/row/col-lg-*)
 *   style-jasmine.css  → .section, .section-head*, .title*, .btn*, .table-token*
 *   vam.css            → #buy overrides, .token-action-*, .vam-donut-*, modal
 * ============================================================================= */

/* -------- Reset -------- */
.vbv-scope,
.vbv-scope *,
.vbv-scope *::before,
.vbv-scope *::after { box-sizing: border-box; }

.vbv-scope {
  --vbv-bg: #0d1a14;
  --vbv-primary: #1ebf95;
  --vbv-primary-hover: #17a882;
  --vbv-text: #ffffff;
  --vbv-text-muted: rgba(255,255,255,0.7);
  --vbv-box-bg: #181A1B;
  --vbv-table-label-bg: #000000;
  --vbv-table-value-bg: #181A1B;
  --vbv-border: #ffffff;
  --vbv-btn-grad-from: #3CE3B7;
  --vbv-btn-grad-to:   #20A8C9;

  display: block;
  width: 100%;
  color: var(--vbv-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.vbv-scope p { margin: 0 0 1rem; color: var(--vbv-text-muted); font-weight: 400; }
.vbv-scope p:last-child { margin-bottom: 0; }
.vbv-scope a { color: var(--vbv-primary); text-decoration: none; transition: color .3s; }
.vbv-scope a:hover { color: var(--vbv-primary-hover); }
.vbv-scope strong { font-weight: 700; }
.vbv-scope h2, .vbv-scope h4, .vbv-scope h5, .vbv-scope h6 {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #223b55;
  margin: 0 0 1rem;
  line-height: 1.3;
  font-weight: 600;
}
.vbv-scope ul { list-style: none; margin: 0; padding: 0; }
.vbv-scope table { border-collapse: separate; border-spacing: 0; width: 100%; }

/* -------- .section + .bg-dark -------- */
.vbv-scope.vbv-section-wrap {
  position: relative;
  width: 100%;
  padding: 90px 0;
  background: var(--vbv-bg);
  z-index: 2;
  overflow-x: hidden;
}
@media (max-width: 991px) {
  .vbv-scope.vbv-section-wrap { padding: 60px 0; }
}

/* -------- .container -------- */
.vbv-scope .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}
@media (max-width: 1199px) { .vbv-scope .container { max-width: 960px; } }
@media (max-width: 991px)  { .vbv-scope .container { max-width: 720px; } }
@media (max-width: 767px)  { .vbv-scope .container { max-width: 540px; } }
@media (max-width: 575px)  { .vbv-scope .container { max-width: 100%; } }

/* -------- Bootstrap grid subset -------- */
.vbv-scope .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.vbv-scope .row.align-items-stretch { align-items: stretch; }
.vbv-scope .row > [class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.vbv-scope .gutter-vr-30px { margin-top: -15px; margin-bottom: -15px; }
.vbv-scope .gutter-vr-30px > [class*="col-"] { padding-top: 15px; padding-bottom: 15px; }

.vbv-scope .col-lg-5,
.vbv-scope .col-lg-7 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 992px) {
  .vbv-scope .col-lg-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
  .vbv-scope .col-lg-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
}

/* -------- Section head -------- */
.vbv-scope .section-head { position: relative; padding-bottom: 40px; text-align: center; }
.vbv-scope .section-head-s9 { text-align: center; }
.vbv-scope .section-head .title { font-weight: 500; }
.vbv-scope .section-head .title:not(:last-child) { margin-bottom: .75rem; }
.vbv-scope .section-head .title-xs:not(:last-child) { margin-bottom: .5rem; }

.vbv-scope .wide-md { max-width: 945px; margin-left: auto; margin-right: auto; }
.vbv-scope .wide-sm { max-width: 555px; margin-left: auto; margin-right: auto; }

/* -------- Titles -------- */
.vbv-scope .title {
  position: relative;
  font-size: 1.75rem;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
}
.vbv-scope h2.title { font-size: 1.75rem; }
@media (min-width: 576px) {
  .vbv-scope h2.title { font-size: 2.25rem; }
}
.vbv-scope .title.text-light { color: #ffffff; }

.vbv-scope .title-xs {
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  display: inline-block;
  color: #1ebf95;
}
.vbv-scope .title-xs.title-s1 {
  padding-left: 75px;
  font-weight: 600;
}
.vbv-scope .title-s1:before {
  position: absolute;
  left: 0 !important;
  top: 50%;
  margin-top: -1px;
  height: 2px;
  width: 60px;
  content: '';
  transform: translate(0, -50%);
  background: var(--vbv-primary);
}
.vbv-scope .tc-primary,
.vbv-scope .tc-primary a { color: var(--vbv-primary) !important; }

.vbv-scope .sub-heading-s2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

/* -------- Utilities -------- */
.vbv-scope .text-light { color: #ffffff !important; }
.vbv-scope .text-white { color: #ffffff !important; }
.vbv-scope .text-center { text-align: center; }
.vbv-scope .mb-2 { margin-bottom: .5rem !important; }
.vbv-scope .mb-3 { margin-bottom: 1rem !important; }
.vbv-scope .mt-4 { margin-top: 1.5rem !important; }
.vbv-scope .p-4 { padding: 1.5rem !important; }

/* -------- Button -------- */
.vbv-scope .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 24px;
  font-weight: 500;
  padding: 8px 15px;
  text-align: center;
  text-transform: uppercase;
  color: #fff !important;
  min-width: 120px;
  max-width: 100%;
  border: 2px solid transparent;
  transition: all 0.5s;
  border-radius: 5px;
  z-index: 2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  overflow: hidden;
}
.vbv-scope .btn:hover, .vbv-scope .btn:focus { color: #fff !important; outline: none; box-shadow: none; }
@media (min-width: 576px) {
  .vbv-scope .btn { font-size: 13px; line-height: 25px; padding: 12px 30px; letter-spacing: 0.1em; }
  .vbv-scope .btn-lg { font-size: 14px; font-weight: 700; line-height: 24px; padding: 15px 40px; min-width: 190px; }
}

.vbv-scope .btn-grad {
  border: none;
  background-image: linear-gradient(to right, var(--vbv-btn-grad-from) 0%, var(--vbv-btn-grad-to) 100%);
}
.vbv-scope .btn-grad:before {
  position: absolute;
  left: 0; top: 0;
  content: "";
  width: 100%; height: 100%;
  z-index: -2;
  border-radius: 5px;
  opacity: 0;
  transition: all .5s;
  background-image: linear-gradient(to right, #2b56f5 0%, #16a1ff 100%);
}
.vbv-scope .btn-grad:hover:before, .vbv-scope .btn-grad:focus:before { opacity: 1; }

.vbv-scope .btn-round { border-radius: 40px; }
.vbv-scope .btn-round:before { border-radius: 40px; }
.vbv-scope .btn-round.btn-lg { border-radius: 54px; }
.vbv-scope .btn-round.btn-lg:before { border-radius: 54px; }

/* -------- Token action box (from vam.css) -------- */
.vbv-scope .nk-block { margin-top: 0; }
.vbv-scope .nk-block-token { margin-top: 0; }

.vbv-scope .token-action-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--vbv-box-bg);
  border-radius: 14px;
  padding: 0;
  text-align: center;
  margin-top: 0 !important;
  overflow: hidden;
}
.vbv-scope .token-action-box > div {
  padding: 14px 18px;
  width: 100%;
  background: transparent !important;
}

.vbv-scope .token-action-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 0;
  color: #ffffff;
  flex-grow: 1;
}
.vbv-scope .token-action-date {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}
.vbv-scope .token-action-btn { margin-top: 0; }
.vbv-scope .token-action-btn .btn { white-space: nowrap; width: 100%; }

@media (min-width: 576px) {
  .vbv-scope .token-action-box { flex-wrap: nowrap; }
  .vbv-scope .token-action-title { width: auto; }
  .vbv-scope .token-action-date  { width: 40%; }
  .vbv-scope .token-action-btn   { width: 34%; }
  .vbv-scope .token-action-btn .btn { width: 100%; min-width: 0; padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 991px) {
  .vbv-scope .token-action-box > div { padding: 12px 14px; }
}

/* -------- Donut allocation -------- */
.vbv-scope .vam-donut-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.vbv-scope .vam-donut-canvas-wrap { position: relative; flex-shrink: 0; }
.vbv-scope .vam-donut-canvas-wrap canvas { width: 160px !important; height: 160px !important; }
.vbv-scope .vam-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  flex: 1;
  min-width: 0;
  align-content: start;
}
.vbv-scope .vam-donut-legend li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-size: .79rem;
  color: rgba(255,255,255,0.72);
}
.vbv-scope .vam-donut-legend .chart-p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}
.vbv-scope .vam-donut-legend .chart-p span {
  font-size: .67rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.vbv-scope .vam-donut-legend .chart-l {
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 991px) {
  .vbv-scope .vam-donut-legend { grid-template-columns: repeat(2, 1fr); }
  .vbv-scope .vam-donut-legend li { grid-template-columns: 38px 1fr; }
}
@media (max-width: 575px) {
  .vbv-scope .vam-donut-wrap { flex-direction: column; align-items: center; }
  .vbv-scope .vam-donut-legend { grid-template-columns: repeat(2, 1fr); flex: none; width: 100%; }
}

/* -------- Info table -------- */
.vbv-scope .table-token { margin-bottom: 5px; }
.vbv-scope .table-token .table-head { padding-bottom: 2px; }
.vbv-scope .table-token .table-des  { padding-top: 2px; }

.vbv-scope .table-token-s1 {
  border: 1px solid var(--vbv-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;
  margin-bottom: 0;
  width: 100%;
  overflow: hidden;
}
.vbv-scope .table-token-s1 tr td {
  width: 48%;
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 24px;
  padding: 12px !important;
  padding-left: 18px !important;
  color: #ffffff;
  vertical-align: middle;
  border: 0;
}
.vbv-scope .table-token-s1 tr td:first-child { background: var(--vbv-table-label-bg); }
.vbv-scope .table-token-s1 tr td:last-child  { background: var(--vbv-table-value-bg); }
.vbv-scope .table-token-s1 tr:first-child td:first-child { border-top-left-radius: 6px; }
.vbv-scope .table-token-s1 tr:first-child td:last-child  { border-top-right-radius: 6px; }
.vbv-scope .table-token-s1 tr:last-child td:first-child  { border-bottom-left-radius: 6px; }
.vbv-scope .table-token-s1 tr:last-child td:last-child   { border-bottom-right-radius: 6px; }

.vbv-scope .table-head-s1 { color: #ffffff; font-weight: 500; }
.vbv-scope .table-des-s1  { color: rgba(255, 255, 255, 0.6); font-weight: 400; font-size: 0.88rem; }
.vbv-scope .table-des-s1 a { color: #1ebf95; }

/* -------- Modal (self-contained, matches vam.css #vamExchangesModal) -------- */
.vbv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.vbv-modal-backdrop.is-open { opacity: 1; visibility: visible; }

.vbv-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.vbv-modal.is-open { opacity: 1; visibility: visible; }
.vbv-modal * { box-sizing: border-box; }

.vbv-modal .modal-dialog {
  width: 100%;
  max-width: 500px;
  margin: 0;
}
.vbv-modal .modal-content {
  position: relative;
  background-color: #181A1B;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35);
  border-radius: 8px;
  padding: 1.5rem;
}
.vbv-modal h4 { color: #fff; margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 600; }
.vbv-modal p  { color: rgba(255,255,255,.7); margin: 0 0 1rem; }

.vbv-modal .modal-close {
  color: #ffffff !important;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-size: 18px;
  line-height: 1;
}
.vbv-modal .modal-close:hover { background: rgba(255, 255, 255, 0.12); }
.vbv-modal .modal-close::before { content: "\00d7"; font-size: 22px; line-height: 1; color: #fff; }

.vbv-modal .vam-modal-links .vam-buy-item { padding: 14px 0; }
.vbv-modal .vam-buy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.vbv-modal .vam-buy-item:last-child { border-bottom: 0; }
.vbv-modal .vam-buy-item .text-light { color: #fff !important; font-weight: 500; }
.vbv-modal .vam-buy-pair {
  color: #8ea2b1;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* body scroll lock helper */
body.vbv-modal-open { overflow: hidden; }
