.tbv-ref-dashboard{display:grid;gap:1rem}.tbv-ref-card,.tbv-ref-stats article,.tbv-ref-registration{padding:1.35rem;border:1px solid rgba(255,255,255,.14);border-radius:20px;background:rgba(255,255,255,.06);backdrop-filter:blur(18px)}.tbv-ref-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}.tbv-ref-stats article span{display:block;color:#c3bdd4;font-size:.82rem}.tbv-ref-stats article strong{display:block;margin-top:.4rem;font-size:clamp(1.55rem,3vw,2.6rem);line-height:1}.tbv-ref-link{display:grid;grid-template-columns:1fr auto;gap:.65rem}.tbv-ref-link input,.tbv-ref-registration input{width:100%;min-height:48px;padding:.8rem .9rem;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(5,3,14,.48);color:inherit}.tbv-ref-link button,.tbv-ref-registration button{border:0;border-radius:12px;background:linear-gradient(135deg,#8b5cf6,#22d3ee);color:#fff;padding:.85rem 1.1rem;font-weight:800;cursor:pointer}.tbv-ref-table-wrap{overflow-x:auto}.tbv-ref-table{width:100%;min-width:900px;border-collapse:collapse}.tbv-ref-table th,.tbv-ref-table td{padding:.8rem;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}.tbv-ref-status{display:inline-flex;min-width:48px;justify-content:center;padding:.28rem .55rem;border-radius:999px;font-size:.75rem;font-weight:850}.tbv-ref-status.is-yes{background:rgba(52,211,153,.13);color:#6ee7b7;border:1px solid rgba(52,211,153,.32)}.tbv-ref-status.is-no{background:rgba(251,113,133,.1);color:#fda4af;border:1px solid rgba(251,113,133,.28)}.tbv-ref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.tbv-ref-registration form{display:grid;gap:1rem}.tbv-ref-registration label{display:grid;gap:.4rem}.tbv-ref-alert{padding:1rem;border-radius:12px}.tbv-ref-alert--success{background:rgba(52,211,153,.1)}.tbv-ref-alert--error{background:rgba(251,113,133,.1)}@media(max-width:1100px){.tbv-ref-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.tbv-ref-stats,.tbv-ref-grid,.tbv-ref-link{grid-template-columns:1fr}}

.tbv-ref-sort {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tbv-ref-sort:hover,
.tbv-ref-sort:focus-visible {
  color: #67e8f9;
}

.tbv-ref-sort span {
  min-width: 1em;
  color: #a78bfa;
  font-size: .85em;
}

.tbv-ref-sort[aria-sort="ascending"],
.tbv-ref-sort[aria-sort="descending"] {
  color: #67e8f9;
}


.tbv-ref-identifier-form {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.tbv-ref-identifier-form label {
  display: grid;
  gap: .35rem;
}

.tbv-ref-identifier-form label span {
  color: #c3bdd4;
  font-size: .9rem;
  line-height: 1.5;
}

.tbv-ref-identifier-form code {
  color: #67e8f9;
}

.tbv-ref-identifier-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
}

.tbv-ref-identifier-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(5,3,14,.48);
  color: inherit;
  padding: .8rem .9rem;
}

.tbv-ref-identifier-row button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,#8b5cf6,#22d3ee);
  color: #fff;
  padding: .85rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

@media(max-width:700px){
  .tbv-ref-identifier-row {
    grid-template-columns: 1fr;
  }
}


.tbv-ref-link-label {
  margin: 1.15rem 0 .5rem;
  color: inherit;
  font-weight: 750;
}

/* WooCommerce My Account compatibility: keep the dashboard inside the
   content column beside the left navigation and prevent wide tables from
   shifting the account layout. */
.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-dashboard,
.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-card,
.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-stats {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-table {
  width: 100%;
  min-width: 780px;
  table-layout: auto;
}

/* The My Account content column is narrower than a full page, so collapse
   metrics sooner even on large desktop screens. */
@media (max-width: 1280px) {
  .woocommerce-account .woocommerce-MyAccount-content .tbv-ref-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-content .tbv-ref-stats {
    grid-template-columns: 1fr;
  }
}


/* v1.6: compact, overflow-safe five-metric summary cards */
.tbv-ref-stats.tbv-ref-stats--five {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: clamp(.6rem, 1.3vw, 1rem);
  width: 100%;
  min-width: 0;
}

.tbv-ref-stats.tbv-ref-stats--five article {
  min-width: 0;
  padding: clamp(.85rem, 1.5vw, 1.2rem);
  overflow: hidden;
}

.tbv-ref-stats.tbv-ref-stats--five article span {
  display: block;
  min-width: 0;
  font-size: clamp(.7rem, 1vw, .82rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tbv-ref-stats.tbv-ref-stats--five article strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-top: .45rem;
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-stats.tbv-ref-stats--five {
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

@media (max-width: 980px) {
  .woocommerce-account .woocommerce-MyAccount-content .tbv-ref-stats.tbv-ref-stats--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .tbv-ref-stats.tbv-ref-stats--five,
  .woocommerce-account .woocommerce-MyAccount-content .tbv-ref-stats.tbv-ref-stats--five {
    grid-template-columns: 1fr;
  }
}


/* Waitlist metric layout v1.7 */
.woocommerce-MyAccount-content .tbv-ref-stats,
.tbv-ref-dashboard .tbv-ref-stats {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
}

.woocommerce-MyAccount-content .tbv-ref-stats article,
.tbv-ref-dashboard .tbv-ref-stats article {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  min-width: 0 !important;
  min-height: 132px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: center !important;
}

.woocommerce-MyAccount-content .tbv-ref-stats article span,
.tbv-ref-dashboard .tbv-ref-stats article span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  padding: 10px 8px 6px !important;
  color: #c3bdd4 !important;
  font-size: clamp(9px, 0.72vw, 12px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.woocommerce-MyAccount-content .tbv-ref-stats article strong,
.tbv-ref-dashboard .tbv-ref-stats article strong {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4px 6px 12px !important;
  font-size: clamp(18px, 1.7vw, 30px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1180px) {
  .woocommerce-MyAccount-content .tbv-ref-stats article span,
  .tbv-ref-dashboard .tbv-ref-stats article span {
    font-size: 9px !important;
  }

  .woocommerce-MyAccount-content .tbv-ref-stats article strong,
  .tbv-ref-dashboard .tbv-ref-stats article strong {
    font-size: 18px !important;
  }
}

@media (max-width: 900px) {
  .woocommerce-MyAccount-content .tbv-ref-stats,
  .tbv-ref-dashboard .tbv-ref-stats {
    gap: 6px !important;
  }

  .woocommerce-MyAccount-content .tbv-ref-stats article,
  .tbv-ref-dashboard .tbv-ref-stats article {
    min-height: 112px !important;
  }

  .woocommerce-MyAccount-content .tbv-ref-stats article span,
  .tbv-ref-dashboard .tbv-ref-stats article span {
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 8px !important;
  }

  .woocommerce-MyAccount-content .tbv-ref-stats article strong,
  .tbv-ref-dashboard .tbv-ref-stats article strong {
    font-size: 16px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}

@media (max-width: 767px) {
  .woocommerce-MyAccount-content .tbv-ref-stats,
  .tbv-ref-dashboard .tbv-ref-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .woocommerce-MyAccount-content .tbv-ref-stats article span,
  .tbv-ref-dashboard .tbv-ref-stats article span {
    font-size: 11px !important;
  }

  .woocommerce-MyAccount-content .tbv-ref-stats article strong,
  .tbv-ref-dashboard .tbv-ref-stats article strong {
    font-size: 24px !important;
  }
}

@media (max-width: 420px) {
  .woocommerce-MyAccount-content .tbv-ref-stats,
  .tbv-ref-dashboard .tbv-ref-stats {
    grid-template-columns: 1fr !important;
  }
}


.tbv-referrals-sortable th {
  position: relative;
}

.tbv-ref-sort {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  user-select: none;
}

.tbv-ref-sort:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}




/* Waitlist Refer v2.0 — desktop WooCommerce layout */
@media (min-width: 1025px) {
  body.woocommerce-account .site,
  body.woocommerce-account .site-content,
  body.woocommerce-account .content-area,
  body.woocommerce-account .site-main,
  body.woocommerce-account main,
  body.woocommerce-account .woocommerce,
  body.woocommerce-account .woocommerce-MyAccount-content,
  body.woocommerce-account .elementor,
  body.woocommerce-account .elementor-section,
  body.woocommerce-account .elementor-container,
  body.woocommerce-account .e-con,
  body.woocommerce-account .e-con-inner {
    max-width: none !important;
  }

  body.woocommerce-account .site-main,
  body.woocommerce-account .content-area,
  body.woocommerce-account main {
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 220px minmax(900px, 1fr) !important;
    align-items: start !important;
    gap: 28px !important;
    width: calc(100vw - 48px) !important;
    max-width: 1680px !important;
    margin: 24px auto !important;
    padding: 0 !important;
  }

  body.woocommerce-account .woocommerce::before,
  body.woocommerce-account .woocommerce::after {
    display: none !important;
    content: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: sticky !important;
    top: 24px !important;
    float: none !important;
    width: 220px !important;
    min-width: 220px !important;
    margin: 0 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-account .tbv-ref-dashboard {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.woocommerce-account .tbv-ref-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.woocommerce-account .tbv-ref-card--table {
    padding: 18px !important;
  }

  body.woocommerce-account .tbv-ref-table-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th,
  body.woocommerce-account .tbv-ref-table--server-sort td {
    box-sizing: border-box !important;
    padding: 10px 8px !important;
    vertical-align: middle !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(1),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(1) {
    width: 13% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(2),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(2) {
    width: 13% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(3),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(3) {
    width: 28% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(4),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(4) {
    width: 16% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(5),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(5),
  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(6),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(6) {
    width: 15% !important;
    text-align: center !important;
  }

  body.woocommerce-account .tbv-ref-sort-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 18px !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.woocommerce-account .tbv-ref-sort-label {
    min-width: 0 !important;
    text-align: left !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  body.woocommerce-account .tbv-ref-sort-icons {
    display: grid !important;
    grid-template-rows: 14px 14px !important;
    align-items: center !important;
    justify-items: center !important;
  }

  body.woocommerce-account .tbv-ref-sort-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 14px !important;
    color: #9ca3af !important;
    font-size: 9px !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  body.woocommerce-account .tbv-ref-sort-icons a:hover,
  body.woocommerce-account .tbv-ref-sort-icons a:focus-visible,
  body.woocommerce-account .tbv-ref-sort-icons a.is-active {
    color: #67e8f9 !important;
  }

  body.woocommerce-account .tbv-ref-status,
  body.woocommerce-account .tbv-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

/* Large desktop: allow additional breathing room */
@media (min-width: 1440px) {
  body.woocommerce-account .woocommerce {
    grid-template-columns: 230px minmax(1050px, 1fr) !important;
    width: min(calc(100vw - 64px), 1760px) !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th,
  body.woocommerce-account .tbv-ref-table--server-sort td {
    font-size: 13px !important;
    padding: 11px 10px !important;
  }

  body.woocommerce-account .tbv-ref-sort-label {
    font-size: 12px !important;
  }
}

/* Tablet and mobile preserve usability */
@media (max-width: 1024px) {
  body.woocommerce-account .woocommerce {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
  }

  .tbv-ref-table-wrap {
    overflow-x: auto !important;
  }

  .tbv-ref-table--server-sort {
    min-width: 760px !important;
  }
}


/* Waitlist Refer v2.1 — constrained desktop width */
@media (min-width: 1025px) {
  body.woocommerce-account .woocommerce {
    width: calc(100% - 48px) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 1132px !important;
    justify-self: stretch !important;
  }

  body.woocommerce-account .tbv-ref-dashboard,
  body.woocommerce-account .tbv-ref-card,
  body.woocommerce-account .tbv-ref-card--table,
  body.woocommerce-account .tbv-ref-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 1440px) {
  body.woocommerce-account .woocommerce {
    width: calc(100% - 64px) !important;
    max-width: 1440px !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    max-width: 1182px !important;
  }
}


/* Waitlist Refer v2.2 — wider email column */
@media (min-width: 1025px) {
  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(1),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(1) {
    width: 11% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(2),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(2) {
    width: 11% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(3),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(3) {
    width: 34% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(4),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(4) {
    width: 14% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(5),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(5),
  body.woocommerce-account .tbv-ref-table--server-sort th:nth-child(6),
  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(6) {
    width: 15% !important;
  }

  body.woocommerce-account .tbv-ref-table--server-sort td:nth-child(3) {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}




/* Waitlist Refer v1.0.1 — user table page size */
.tbv-ref-user-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tbv-ref-user-table-toolbar h2 {
  margin: 0 0 4px;
}

.tbv-ref-user-table-toolbar p {
  margin: 0;
  color: #c3bdd4;
  font-size: .9rem;
}

.tbv-ref-user-per-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c3bdd4;
  font-size: .9rem;
}

.tbv-ref-user-per-page-form select {
  min-width: 72px;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: #211832;
  color: #f8f7ff;
  padding: 6px 10px;
}

@media (max-width: 700px) {
  .tbv-ref-user-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Waitlist Refer v1.0.3 — user pagination containers */
.tbv-ref-user-pagination {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.tbv-ref-user-pagination .page-numbers {
  margin: 0;
}

.tbv-ref-user-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tbv-ref-user-pagination a,
.tbv-ref-user-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #f8f7ff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  backdrop-filter: blur(12px);
  transition:
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.tbv-ref-user-pagination a:hover,
.tbv-ref-user-pagination a:focus-visible {
  border-color: rgba(34,211,238,.48);
  background: rgba(34,211,238,.12);
  color: #67e8f9;
  transform: translateY(-1px);
}

.tbv-ref-user-pagination .current {
  border-color: rgba(139,92,246,.55);
  background: linear-gradient(
    135deg,
    rgba(139,92,246,.28),
    rgba(34,211,238,.18)
  );
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(109,93,252,.22);
}

.tbv-ref-user-pagination .prev,
.tbv-ref-user-pagination .next {
  min-width: 110px;
}

.tbv-ref-user-pagination .dots {
  min-width: 34px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 600px) {
  .tbv-ref-user-pagination ul.page-numbers {
    gap: 6px;
  }

  .tbv-ref-user-pagination a,
  .tbv-ref-user-pagination span {
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .tbv-ref-user-pagination .prev,
  .tbv-ref-user-pagination .next {
    min-width: 96px;
  }
}

/* Restored YES/NO badges */
.tbv-ref-status{
display:inline-flex;align-items:center;justify-content:center;
padding:4px 10px;border-radius:999px;font-weight:700;font-size:12px;
min-width:52px}
.tbv-ref-status.is-yes{
background:rgba(34,197,94,.16);
border:1px solid rgba(34,197,94,.35);
color:#4ade80}
.tbv-ref-status.is-no{
background:rgba(239,68,68,.16);
border:1px solid rgba(239,68,68,.35);
color:#f87171}


/* Waitlist Refer v1.1.1 — user/admin visual parity */
:root {
  --tbv-user-bg: #160e25;
  --tbv-user-bg-deep: #0c0818;
  --tbv-user-surface: rgba(255,255,255,.06);
  --tbv-user-surface-strong: rgba(255,255,255,.10);
  --tbv-user-border: rgba(255,255,255,.14);
  --tbv-user-text: #f8f7ff;
  --tbv-user-muted: #c3bdd4;
  --tbv-user-purple: #8b5cf6;
  --tbv-user-cyan: #22d3ee;
  --tbv-user-success: #34d399;
  --tbv-user-danger: #fb7185;
  --tbv-user-radius: 22px;
  --tbv-user-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.woocommerce-account .woocommerce-MyAccount-content {
  color: var(--tbv-user-text);
}

.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-dashboard {
  width: 100%;
  max-width: none;
  color: var(--tbv-user-text);
}

.woocommerce-account .woocommerce-MyAccount-content .tbv-ref-dashboard::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(139,92,246,.18), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(34,211,238,.12), transparent 24%),
    linear-gradient(135deg, var(--tbv-user-bg-deep), var(--tbv-user-bg));
}

.tbv-ref-dashboard .tbv-ref-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.tbv-ref-dashboard .tbv-ref-stats article {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 132px;
  padding: 0;
  border: 1px solid var(--tbv-user-border);
  border-radius: var(--tbv-user-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.tbv-ref-dashboard .tbv-ref-stats article span,
.tbv-ref-dashboard .tbv-ref-stats article strong {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.tbv-ref-dashboard .tbv-ref-stats article span {
  color: var(--tbv-user-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.tbv-ref-dashboard .tbv-ref-stats article strong {
  color: var(--tbv-user-text);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
}

.tbv-ref-dashboard .tbv-ref-card {
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--tbv-user-border);
  border-radius: var(--tbv-user-radius);
  background: var(--tbv-user-surface);
  color: var(--tbv-user-text);
  backdrop-filter: blur(18px);
  box-shadow: var(--tbv-user-shadow);
}

.tbv-ref-dashboard .tbv-ref-card h2 {
  margin: 0 0 6px;
  color: var(--tbv-user-text);
  font-size: 24px;
}

.tbv-ref-dashboard .tbv-ref-card p,
.tbv-ref-dashboard .tbv-ref-link-label {
  color: var(--tbv-user-muted);
}

.tbv-ref-dashboard .tbv-ref-identifier-form label strong {
  color: var(--tbv-user-text);
}

.tbv-ref-dashboard .tbv-ref-identifier-form label span {
  color: var(--tbv-user-muted);
}

.tbv-ref-dashboard input[type="text"],
.tbv-ref-dashboard input[type="search"],
.tbv-ref-dashboard select {
  border: 1px solid var(--tbv-user-border);
  border-radius: 10px;
  background: #211832;
  color: var(--tbv-user-text);
  box-shadow: none;
}

.tbv-ref-dashboard button,
.tbv-ref-dashboard .tbv-ref-identifier-row button,
.tbv-ref-dashboard .tbv-ref-link button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tbv-user-purple), var(--tbv-user-cyan));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(109,93,252,.24);
}

.tbv-ref-dashboard button:hover,
.tbv-ref-dashboard button:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.tbv-ref-dashboard .tbv-ref-link {
  gap: 10px;
}

.tbv-ref-dashboard .tbv-ref-link input {
  min-height: 44px;
}

.tbv-ref-dashboard .tbv-ref-user-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.tbv-ref-dashboard .tbv-ref-user-table-toolbar h2 {
  margin: 0 0 4px;
}

.tbv-ref-dashboard .tbv-ref-user-table-toolbar p,
.tbv-ref-dashboard .tbv-ref-user-per-page-form {
  color: var(--tbv-user-muted);
}

.tbv-ref-dashboard .tbv-ref-user-per-page-form select {
  min-width: 72px;
}

.tbv-ref-dashboard .tbv-ref-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
}

.tbv-ref-dashboard .tbv-ref-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: transparent;
}

.tbv-ref-dashboard .tbv-ref-table thead {
  background: rgba(255,255,255,.05);
}

.tbv-ref-dashboard .tbv-ref-table th,
.tbv-ref-dashboard .tbv-ref-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--tbv-user-text);
  vertical-align: middle;
}

.tbv-ref-dashboard .tbv-ref-table th {
  color: #d9d4e7;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.tbv-ref-dashboard .tbv-ref-table tbody tr:hover {
  background: rgba(255,255,255,.035);
}

.tbv-ref-dashboard .tbv-ref-sort-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) 18px;
  align-items: center;
  gap: 5px;
}

.tbv-ref-dashboard .tbv-ref-sort-icons {
  display: grid;
  grid-template-rows: 13px 13px;
  align-items: center;
  justify-items: center;
}

.tbv-ref-dashboard .tbv-ref-sort-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 13px;
  color: #8f88a3;
  font-size: 9px;
  text-decoration: none;
}

.tbv-ref-dashboard .tbv-ref-sort-icons a:hover,
.tbv-ref-dashboard .tbv-ref-sort-icons a:focus,
.tbv-ref-dashboard .tbv-ref-sort-icons a.is-active {
  color: var(--tbv-user-cyan);
}

.tbv-ref-dashboard .tbv-ref-status,
.tbv-ref-dashboard .tbv-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.tbv-ref-dashboard .tbv-ref-status.is-yes,
.tbv-ref-dashboard .tbv-status.is-yes {
  border: 1px solid rgba(52,211,153,.28);
  background: rgba(52,211,153,.10);
  color: #6ee7b7;
}

.tbv-ref-dashboard .tbv-ref-status.is-no,
.tbv-ref-dashboard .tbv-status.is-no {
  border: 1px solid rgba(251,113,133,.28);
  background: rgba(251,113,133,.10);
  color: #fda4af;
}

.tbv-ref-dashboard .tbv-ref-user-pagination {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.tbv-ref-dashboard .tbv-ref-user-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tbv-ref-dashboard .tbv-ref-user-pagination a,
.tbv-ref-dashboard .tbv-ref-user-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--tbv-user-border);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--tbv-user-text);
  text-decoration: none;
}

.tbv-ref-dashboard .tbv-ref-user-pagination a:hover,
.tbv-ref-dashboard .tbv-ref-user-pagination span.current {
  border-color: rgba(34,211,238,.45);
  background: rgba(34,211,238,.12);
  color: var(--tbv-user-cyan);
}

@media (max-width: 1450px) {
  .tbv-ref-dashboard .tbv-ref-stats {
    grid-template-columns: repeat(3, minmax(180px,1fr));
  }
}

@media (max-width: 900px) {
  .tbv-ref-dashboard .tbv-ref-stats {
    grid-template-columns: repeat(2, minmax(160px,1fr));
  }

  .tbv-ref-dashboard .tbv-ref-user-table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .tbv-ref-dashboard .tbv-ref-stats {
    grid-template-columns: 1fr;
  }
}


/* Waitlist Refer v1.1.2 — user referral filters */
.tbv-ref-user-table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tbv-ref-user-filter-form,
.tbv-ref-user-per-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tbv-user-muted, #c3bdd4);
  font-size: .9rem;
}

.tbv-ref-user-filter-form select,
.tbv-ref-user-per-page-form select {
  min-height: 40px;
  border: 1px solid var(--tbv-user-border, rgba(255,255,255,.14));
  border-radius: 10px;
  background: #211832;
  color: var(--tbv-user-text, #f8f7ff);
  padding: 6px 10px;
}

.tbv-ref-user-filter-form select {
  min-width: 150px;
}

@media (max-width: 760px) {
  .tbv-ref-user-table-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .tbv-ref-user-filter-form,
  .tbv-ref-user-per-page-form {
    justify-content: space-between;
    width: 100%;
  }

  .tbv-ref-user-filter-form select,
  .tbv-ref-user-per-page-form select {
    flex: 1 1 auto;
  }
}
