html, body {
    /* background: linear-gradient(to top right, #521262 10%, #ffffff); */
    background: linear-gradient(to top right, #AEAFAE 10%, #F7F7F8);
    min-height: 100vh;
    margin: 0;
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
    color: #000000;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #521262, #8c3aa6);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(82, 18, 98, 0.25);
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #2b0a34;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8c3aa6;
    margin-top: 3px;
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

.section-label {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #495055;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.1;
}

.table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.table td {
    font-size: 14px;
    vertical-align: middle;
}

.otp-input { 
    width: 52px; 
    height: 56px; 
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 13px;
}

.billing-toggle {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.billing-label {
    font-size: 0.95rem;
    transition: color 0.2s, font-weight 0.2s;
    min-width: 60px;
}

.payout-card {
  background: linear-gradient(135deg, #521262, #8c3aa6);
  color: #fff;
}

.getting-started li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.getting-started li + li {
  margin-top: 14px;
}
.getting-started .step {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1e6f5;
  color: #521262;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* admin nav tabs */
.aff-tab {
    font-weight: 600;
    font-size: 14px;
    color: #521262;
    background: transparent;
    border: 1px solid transparent;
}
.aff-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #521262;
}
.aff-tab.active {
    background: linear-gradient(135deg, #521262, #8c3aa6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(82, 18, 98, 0.25);
}

/* admin section headers */
.pane-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #f1e6f5;
    color: #521262;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* selectable payment-type tiles */
.paytype-option {
    border: 1px solid #ece3f1;
    border-radius: 12px;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    height: 100%;
    cursor: pointer;
}
.paytype-option:hover {
    background: #faf7fc;
}
.paytype-option .form-check-input {
    margin-left: -1.5rem;
}
.paytype-option:has(.form-check-input:checked) {
    border-color: #8c3aa6;
    background: #faf7fc;
}
.form-check-input:checked {
    background-color: #8c3aa6;
    border-color: #8c3aa6;
}

.source-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: #f1e6f5;
  color: #521262;
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-select {
  border-radius: 10px;
  font-weight: 600;
}
.source-select:focus {
  border-color: #8c3aa6;
  box-shadow: 0 0 0 0.2rem rgba(140, 58, 166, 0.15);
}

.source-tabs {
  display: inline-flex;
  background: #f1e6f5;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.source-tabs .nav-link {
  border-radius: 10px;
  font-weight: 600;
  color: #521262;
  white-space: nowrap;
}
.source-tabs .nav-link.active {
  background: #521262;
  color: #fff;
}

.product-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-left: 0.875rem;
  border-left: 4px solid #521262;
}
.product-group-title h5 {
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.product-group-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  background: #f1e6f5;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

@media (min-width: 768px) {
  .source-select-inline {
    width: auto;
    min-width: 280px;
    flex: 0 0 auto;
  }
}

/* modals — same visual language as the balance / getting-started cards */
.modal-modern .modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.modal-modern .modal-hero {
  background: linear-gradient(135deg, #521262, #8c3aa6);
  color: #fff;
  padding: 1.25rem 1.5rem;
  align-items: center;
}

.modal-modern .modal-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-modern .form-control,
.modal-modern .form-select {
  border-radius: 10px;
}

.modal-modern .form-control:focus,
.modal-modern .form-select:focus {
  border-color: #8c3aa6;
  box-shadow: 0 0 0 0.2rem rgba(140, 58, 166, 0.15);
}

.modal-note,
.terms-link,
.signature-well {
  background: #faf7fc;
  border: 1px solid #ece3f1;
  border-radius: 12px;
}

.modal-note {
  padding: 0.75rem 1rem;
}

.terms-link:hover {
  background: #f4ecf8;
  border-color: #d9c4e4;
}

.signature-well {
  padding: 0.5rem;
  background: #fff;
  border-style: dashed;
}

/* login / create account card */
.auth-card {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
}

.auth-hero {
  background: linear-gradient(135deg, #521262, #8c3aa6);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.auth-hero .modal-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-switch {
  background: #faf7fc;
  border: 1px solid #ece3f1;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.auth-switch .aff-tab {
  border-radius: 999px;
  padding: 0.4rem 0;
  flex: 1 1 0;
}

.auth-card .form-control,
.auth-card .form-select {
  border-radius: 10px;
}
.auth-card .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.auth-card .input-group > .btn {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: #8c3aa6;
  box-shadow: 0 0 0 0.2rem rgba(140, 58, 166, 0.15);
}

.auth-card .btn-affiliate {
  background: linear-gradient(135deg, #521262, #8c3aa6);
  border: none;
  color: #fff;
  font-weight: 600;
}
.auth-card .btn-affiliate:hover,
.auth-card .btn-affiliate:focus {
  color: #fff;
  filter: brightness(1.08);
}

.featured-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.featured-scroller .featured-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
}