/* Lucky Tony Casino (luckytony.ca) : payments page, mobile first.
   All rules are scoped to .kpay-* classes (plus the active sidebar link of this page).
   Relies on the tokens declared in site.css (dark default + :root[data-theme="light"]). */

/* Active sidebar entry (this stylesheet is only loaded on /payment) */
.ky-menu__link[aria-current="page"] {
  color: var(--ky-blue);
}

.kpay-wrap {
  margin-top: 8px;
}

/* ---------- Hero ---------- */
.kpay-hero {
  overflow: hidden;
}

.kpay-hero__text {
  min-width: 0;
}

.kpay-hero__lede {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--ky-prose);
  font-size: 16px;
  line-height: 1.65;
}

/* Illustrative cashier mock (decorative) */
.kpay-till {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  padding: 14px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 20px;
  background: var(--ky-raised);
  box-shadow: var(--ky-lift-shadow);
  transform: rotate(-1.5deg);
}

.kpay-till__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.kpay-till__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ky-line-strong);
}

.kpay-till__name {
  margin-left: auto;
  color: var(--ky-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.kpay-till__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ky-teal) 22%, transparent), transparent 70%),
    var(--ky-panel);
}

.kpay-till__label {
  color: var(--ky-muted);
  font-size: 13px;
}

.kpay-till__amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kpay-till__cur {
  padding: 3px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ky-teal) 20%, transparent);
  color: var(--ky-ink-teal);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.kpay-till__mask {
  width: 64px;
  height: 10px;
  border-radius: 999px;
  background: var(--ky-line-strong);
}

.kpay-till__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
  padding: 4px;
  border-radius: 12px;
  background: var(--ky-chip);
}

.kpay-till__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 9px;
  color: var(--ky-muted);
  font-size: 13px;
  font-weight: 500;
}

.kpay-till__tab .ky-ic {
  width: 16px;
  height: 16px;
}

.kpay-till__tab--on {
  background: var(--ky-panel);
  color: var(--ky-text);
}

.kpay-till__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kpay-till__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ky-line);
  border-radius: 12px;
  background: var(--ky-panel);
}

.kpay-till__row .ky-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.kpay-till__row .ky-ic {
  width: 18px;
  height: 18px;
}

.kpay-till__row-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.kpay-till__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ky-line-strong);
  border-radius: 50%;
}

.kpay-till__radio--on {
  border: 5px solid var(--ky-green);
}

.kpay-till__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  border-radius: 10px;
  background: var(--ky-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Method families ---------- */
.kpay-fams {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kpay-fam {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--ky-line);
  border-top: 3px solid var(--acc);
  border-radius: 16px;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 60%),
    var(--ky-panel);
}

.kpay-fam__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 6%, transparent);
  color: var(--acc-ink);
}

.kpay-fam__icon .ky-ic {
  width: 28px;
  height: 28px;
}

.kpay-fam__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.kpay-fam__text {
  margin: 0 0 14px;
  color: var(--ky-prose);
  font-size: 15px;
  line-height: 1.6;
}

.kpay-fam__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 12px;
  padding: 0;
  list-style: none;
}

.kpay-fam__tags li {
  padding: 4px 10px;
  border: 1px solid var(--ky-line);
  border-radius: 999px;
  background: var(--ky-raised);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.kpay-fam__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--ky-line-strong);
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 20px;
}

.kpay-fam__note .ky-ic {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--acc-ink);
}

/* ---------- Deposit / withdraw flows ---------- */
.kpay-flows {
  display: grid;
  gap: 24px;
}

.kpay-flow {
  min-width: 0;
}

.kpay-flow__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.kpay-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kpay-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
}

.kpay-step:last-child {
  padding-bottom: 0;
}

/* connector line between numbers */
.kpay-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 2px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--acc) 35%, transparent);
}

.kpay-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--acc);
  color: #0a0033;
  font-size: 16px;
  font-weight: 700;
}

.kpay-step__body {
  padding: 10px 14px 12px;
  border: 1px solid var(--ky-line);
  border-radius: 14px;
  background: var(--ky-raised);
}

.kpay-step__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.kpay-step__title .ky-ic {
  width: 18px;
  height: 18px;
  color: var(--acc-ink);
}

.kpay-step__text {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 20px;
}

.kpay-flow__callout {
  margin-top: 16px;
  background: var(--ky-raised);
}

/* ---------- Comparison table ---------- */
.kpay-table-wrap {
  margin: 0;
}

.kpay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.kpay-table thead {
  display: none;
}

.kpay-table,
.kpay-table tbody,
.kpay-table tr,
.kpay-table th,
.kpay-table td {
  display: block;
}

.kpay-table tbody {
  display: grid;
  gap: 12px;
}

.kpay-table tbody tr {
  overflow: hidden;
  border: 1px solid var(--ky-line);
  border-left: 3px solid var(--acc);
  border-radius: 14px;
  background: var(--ky-raised);
}

.kpay-table tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ky-line);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.kpay-table__fam {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kpay-table__fam .ky-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.kpay-table__fam .ky-ic {
  width: 18px;
  height: 18px;
}

.kpay-table td {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  color: var(--ky-text);
  font-weight: 500;
  text-align: right;
}

.kpay-table td + td {
  border-top: 1px solid var(--ky-line);
}

.kpay-table td::before {
  content: attr(data-label);
  color: var(--ky-muted);
  font-weight: 400;
  text-align: left;
}

/* ---------- Welcome bonus link ---------- */
.kpay-bonus {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 4px;
  overflow: hidden;
  border-radius: calc(var(--ky-radius) + 4px);
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(120, 220, 255, 0.35), transparent 60%),
    linear-gradient(140deg, #003fb8 0%, var(--ky-blue) 48%, var(--ky-teal) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  text-align: center;
}

.kpay-bonus__art {
  width: min(170px, 52%);
  margin: 0 auto;
}

.kpay-bonus__art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 20, 80, 0.4));
}

.kpay-bonus__kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.kpay-bonus__h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 30px;
}

.kpay-bonus__text {
  max-width: 56ch;
  margin: 0 auto 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
}

.kpay-bonus__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.kpay-bonus__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 500;
}

.kpay-bonus__steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #003fb8;
  font-size: 13px;
  font-weight: 700;
}

.kpay-bonus__cta .ky-ic {
  width: 20px;
  height: 20px;
}

.kpay-bonus .kpay-bonus__cta {
  margin-top: 12px;
}

.kpay-bonus__note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

/* ---------- Help callout under FAQ ---------- */
.kpay-help {
  margin-top: 16px;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .kpay-fams {
    grid-template-columns: 1fr 1fr;
  }

  .kpay-fam:last-child {
    grid-column: 1 / -1;
  }

  .kpay-bonus {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    text-align: left;
  }

  .kpay-bonus__art {
    width: 100%;
  }

  .kpay-bonus__text {
    margin-left: 0;
  }

  .kpay-bonus__steps {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .kpay-flows {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .kpay-fams {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpay-fam:last-child {
    grid-column: auto;
  }

  /* real table layout */
  .kpay-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ky-line);
    border-radius: 14px;
  }

  .kpay-table {
    display: table;
  }

  .kpay-table thead {
    display: table-header-group;
  }

  .kpay-table tbody {
    display: table-row-group;
  }

  .kpay-table tr {
    display: table-row;
  }

  .kpay-table th,
  .kpay-table td {
    display: table-cell;
    padding: 14px 16px;
    vertical-align: middle;
    text-align: left;
  }

  .kpay-table thead th {
    background: var(--ky-raised);
    color: var(--ky-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .kpay-table tbody tr {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .kpay-table tbody th {
    border-bottom: 0;
    border-left: 3px solid var(--acc);
    white-space: nowrap;
  }

  .kpay-table tbody th,
  .kpay-table tbody td,
  .kpay-table td + td {
    border-top: 1px solid var(--ky-line);
  }

  .kpay-table td {
    color: var(--ky-prose);
    font-weight: 400;
  }

  .kpay-table td::before {
    content: none;
  }

  .kpay-table tbody tr:nth-child(even) th,
  .kpay-table tbody tr:nth-child(even) td {
    background: var(--ky-chip);
  }
}

@media (min-width: 1024px) {
  .kpay-bonus {
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 28px 36px;
  }

  .kpay-bonus__h2 {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (min-width: 1180px) {
  .kpay-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .kpay-hero__facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kpay-till {
    transform: none;
  }
}
