/* ==========================================================================
   Prize Bond Wallet — modern UI layer
   Scoped entirely under .wallet-page so the rest of the site (which reuses
   .card / .btn-primary / .page-titles globally) is completely unaffected.
   ========================================================================== */

/* one_file.css only ships a hand-picked subset of the FontAwesome 4.7 glyph
   map. These wallet pages use a few extra icons that aren't in that subset
   yet — the webfont itself already has them (full FA 4.7 font file), so we
   just need the missing content-code rules. Safe to keep global: FA class
   names are unique and won't collide with anything else on the site. */
.fa-android:before { content: "\f17b"; }
.fa-bolt:before { content: "\f0e7"; }
.fa-camera:before { content: "\f030"; }
.fa-database:before { content: "\f1c0"; }
.fa-exclamation-circle:before { content: "\f06a"; }
.fa-filter:before { content: "\f0b0"; }
.fa-frown-o:before { content: "\f119"; }
.fa-hand-o-up:before { content: "\f0a6"; }
.fa-hand-peace-o:before { content: "\f25b"; }
.fa-hashtag:before { content: "\f292"; }
.fa-inbox:before { content: "\f01c"; }
.fa-list-ol:before { content: "\f0cb"; }
.fa-money:before { content: "\f0d6"; }
.fa-sign-in:before { content: "\f090"; }
.fa-times-circle:before { content: "\f057"; }
.fa-trophy:before { content: "\f091"; }
.fa-upload:before { content: "\f093"; }
.fa-user-plus:before { content: "\f234"; }

.wallet-page {
  --wp-primary: #1da195;
  --wp-primary-dark: #0f7f74;
  --wp-primary-light: #e6f6f4;
  --wp-navy: #003542;
  --wp-navy-light: #01576a;
  --wp-gold: #ff8a00;
  --wp-gold-dark: #e56f00;
  --wp-danger: #e5484d;
  --wp-danger-light: #fdecec;
  --wp-success: #17a673;
  --wp-success-light: #e7f8f1;
  --wp-info: #2f80ed;
  --wp-info-light: #eaf2fe;
  --wp-bg: #f2f6f8;
  --wp-card: #ffffff;
  --wp-border: #e6ecf0;
  --wp-text: #1f2d3d;
  --wp-text-muted: #718096;
  --wp-radius-lg: 18px;
  --wp-radius: 14px;
  --wp-radius-sm: 10px;
  --wp-shadow: 0 1px 2px rgba(15, 34, 46, .04), 0 6px 20px rgba(15, 34, 46, .06);
  --wp-shadow-hover: 0 10px 28px rgba(15, 34, 46, .12);

  background: var(--wp-bg);
  color: var(--wp-text);
}

.wallet-page .container-fluid {
  padding-top: 6px;
  padding-bottom: 30px;
}

/* ---------- Header banner ---------- */

.wallet-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--wp-navy) 0%, var(--wp-navy-light) 60%, var(--wp-primary) 130%);
  border-radius: var(--wp-radius-lg);
  padding: 26px 28px;
  margin: 14px 15px 20px;
  box-shadow: var(--wp-shadow);
}

.wallet-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.wallet-header::before {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -90px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.wallet-header-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-header-titles {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wallet-header-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  color: #ffd479;
  overflow: hidden;
}

.wallet-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-header h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.wallet-header-subtitle {
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  margin-top: 2px;
}

.wallet-header .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
}

.wallet-header .breadcrumb-item,
.wallet-header .breadcrumb-item a {
  color: rgba(255, 255, 255, .65);
}

.wallet-header .breadcrumb-item a:hover {
  color: #fff;
  text-decoration: none;
}

.wallet-header .breadcrumb-item.active {
  color: #fff;
}

.wallet-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .4);
}

/* ---------- Generic card shell ---------- */

.wallet-page .card {
  background: var(--wp-card);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  padding: 20px;
  transition: box-shadow .18s ease;
}

.wallet-page .card.wp-plain {
  box-shadow: none;
}

.wallet-page .wp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wp-text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-page .wp-card-title i {
  color: var(--wp-primary);
}

.wallet-page .wp-card-subtitle {
  color: var(--wp-text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---------- Upgrade / status banner ---------- */

.wp-upgrade-banner {
  border-radius: var(--wp-radius-lg);
  padding: 22px 24px;
  margin: 0 15px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  box-shadow: var(--wp-shadow);
  color: #fff;
}

.wp-upgrade-banner.is-free {
  background: linear-gradient(120deg, #ff9a3d, var(--wp-gold-dark));
}

.wp-upgrade-banner.is-premium {
  background: linear-gradient(120deg, #12967f, var(--wp-primary-dark));
}

.wp-upgrade-info {
  min-width: 240px;
  flex: 1 1 320px;
}

.wp-upgrade-info h4 {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
}

.wp-upgrade-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 10px;
  font-size: 13px;
}

.wp-upgrade-stats span {
  opacity: .95;
}

.wp-upgrade-stats b {
  font-weight: 700;
}

.wp-upgrade-note {
  font-size: 13px;
  opacity: .92;
  max-width: 520px;
  line-height: 1.5;
}

/* Benefit pills — what the plan does / doesn't include. Kept visually
   distinct from the neutral stat row above so a free user's eye lands on
   what they're missing, not just numbers. */

.wp-benefit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wp-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.wp-benefit-pill.is-missing {
  background: rgba(255, 255, 255, .95);
  color: #b3261e;
}

.wp-benefit-pill.is-missing i {
  color: #d64545;
}

.wp-benefit-pill.is-included {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}

.wp-benefit-pill.is-included i {
  color: #baffd8;
}

.wp-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wp-upgrade-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 9px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  border: none;
}

.wp-upgrade-actions .btn-light-cta {
  background: #fff;
  color: var(--wp-navy);
}

.wp-upgrade-actions .btn-light-cta:hover {
  background: #f2f2f2;
  color: var(--wp-navy);
}

.wp-upgrade-actions .btn-outline-cta {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
}

.wp-upgrade-actions .btn-outline-cta:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

/* ---------- Dashboard layout ---------- */

.wp-dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin: 0 15px;
  align-items: start;
}

@media (max-width: 991px) {
  .wp-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Quick action list */

.wp-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--wp-radius-sm);
  color: var(--wp-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}

.wp-action-link:hover {
  background: var(--wp-primary-light);
  color: var(--wp-primary-dark);
  text-decoration: none;
  transform: translateX(2px);
}

.wp-action-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  background: var(--wp-primary-light);
  color: var(--wp-primary-dark);
}

.wp-action-link.is-warning .wp-action-icon { background: #fff2e0; color: var(--wp-gold-dark); }
.wp-action-link.is-info .wp-action-icon { background: var(--wp-info-light); color: var(--wp-info); }
.wp-action-link.is-danger .wp-action-icon { background: var(--wp-danger-light); color: var(--wp-danger); }
.wp-action-link.is-premium { background: linear-gradient(90deg, #fff6ea, #fff); border-color: #ffe1ae; }
.wp-action-link.is-premium .wp-action-icon { background: var(--wp-gold); color: #fff; }
.wp-action-link.is-primary-solid { background: var(--wp-primary); color: #fff; box-shadow: 0 4px 12px rgba(29, 161, 149, .25); }
.wp-action-link.is-primary-solid .wp-action-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.wp-action-link.is-primary-solid:hover { background: var(--wp-primary-dark); color: #fff; transform: none; }

.wp-actions-divider {
  height: 1px;
  background: var(--wp-border);
  margin: 8px 2px;
}

/* Stat strip on the dashboard */

.wp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.wp-stat-card {
  background: var(--wp-card);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  padding: 14px 16px;
  box-shadow: var(--wp-shadow);
}

.wp-stat-card .wp-stat-label {
  font-size: 12px;
  color: var(--wp-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.wp-stat-card .wp-stat-value {
  font-size: 21px;
  font-weight: 700;
  color: var(--wp-text);
}

.wp-stat-card.is-total .wp-stat-value {
  color: var(--wp-primary-dark);
}

/* Bond summary cards (replaces the flat table on the dashboard) */

.wp-bond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.wp-bond-card {
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  background: var(--wp-card);
  transition: box-shadow .15s ease, transform .15s ease;
}

.wp-bond-card:hover {
  box-shadow: var(--wp-shadow-hover);
  transform: translateY(-2px);
}

.wp-bond-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--bond-color, var(--wp-primary));
}

.wp-bond-card a.wp-bond-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--wp-text);
  text-decoration: none;
  margin-bottom: 12px;
}

.wp-bond-card a.wp-bond-name .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bond-color, var(--wp-primary));
  flex-shrink: 0;
}

.wp-bond-card a.wp-bond-name:hover {
  color: var(--wp-primary-dark);
}

.wp-bond-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 5px 0;
  border-top: 1px dashed var(--wp-border);
}

.wp-bond-row:first-of-type {
  border-top: none;
}

.wp-bond-row .wp-bond-label {
  color: var(--wp-text-muted);
}

.wp-bond-row .wp-bond-value {
  font-weight: 600;
  color: var(--wp-text);
}

.wp-bond-total {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wp-navy);
  color: #fff;
  border-radius: var(--wp-radius);
  padding: 16px 20px;
  margin-top: 4px;
}

.wp-bond-total .label {
  font-size: 13px;
  opacity: .8;
}

.wp-bond-total .value {
  font-size: 20px;
  font-weight: 700;
  color: #ffd479;
}

/* ---------- Empty state ---------- */

.wp-empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--wp-text-muted);
}

.wp-empty i {
  font-size: 34px;
  color: var(--wp-border);
  margin-bottom: 14px;
  display: block;
}

.wp-empty p {
  margin: 0 0 16px;
  font-size: 14.5px;
}

/* ---------- Method cards (Add Numbers) ---------- */

.wp-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 15px 16px;
}

.wp-method-card {
  background: var(--wp-card);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  box-shadow: var(--wp-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.wp-method-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wp-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp-primary-light);
  color: var(--wp-primary-dark);
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
}

.wp-method-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--wp-text);
}

.wp-method-head > div > span {
  display: block;
  font-size: 12px;
  color: var(--wp-text-muted);
  margin-top: 1px;
}

.wp-method-card .form-group:last-of-type {
  margin-bottom: 14px;
}

.wp-method-card .btn-block {
  border-radius: var(--wp-radius-sm);
  font-weight: 600;
  padding: 10px;
}

/* ---------- Forms ---------- */

.wallet-page .form-control {
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  background: #fbfcfd;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wallet-page .form-control:focus {
  border-color: var(--wp-primary);
  box-shadow: 0 0 0 3px rgba(29, 161, 149, .12);
  background: #fff;
}

.wallet-page label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wp-text);
  margin-bottom: 6px;
}

/* Bootstrap's custom checkbox/radio labels are <label> too — the rule above
   should only style real form field labels, not these. */
.wallet-page .custom-control-label {
  color: inherit;
  font-weight: 400;
  font-size: inherit;
  margin-bottom: 0;
}

.wallet-page .btn {
  border-radius: var(--wp-radius-sm);
}

.wallet-page .btn-primary {
  background: var(--wp-primary);
  border-color: var(--wp-primary);
  font-weight: 600;
}

.wallet-page .btn-primary:hover,
.wallet-page .btn-primary:focus {
  background: var(--wp-primary-dark);
  border-color: var(--wp-primary-dark);
}

.wallet-page .btn-success {
  background: var(--wp-navy);
  border-color: var(--wp-navy);
  font-weight: 600;
}

.wallet-page .btn-success:hover {
  background: var(--wp-navy-light);
  border-color: var(--wp-navy-light);
}

/* Segmented control (search type radios on Manage Numbers) */

.wp-segmented {
  display: inline-flex;
  background: #eef2f4;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.wp-segmented .radio-label {
  margin: 0 !important;
  position: relative;
}

.wp-segmented .radio-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.wp-segmented .radio-label span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wp-text-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.wp-segmented .radio-label input:checked + span {
  background: #fff;
  color: var(--wp-primary-dark);
  box-shadow: 0 1px 4px rgba(15, 34, 46, .12);
}

/* ---------- Tables ---------- */

.wallet-page .table-responsive {
  border-radius: var(--wp-radius);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--wp-border);
  -webkit-overflow-scrolling: touch;
}

.wallet-page .table {
  margin-bottom: 0;
}

.wallet-page .table thead th {
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 12px 10px;
  vertical-align: middle;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.wallet-page .table tbody td {
  padding: 11px 10px;
  vertical-align: middle;
  font-size: 13.5px;
  border-color: var(--wp-border);
}

.wallet-page .table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9fbfc;
}

.wallet-page .table-hover tbody tr:hover {
  background-color: var(--wp-primary-light);
}

.wallet-page .badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 11.5px;
}

/* ---------- Search / filter panels ---------- */

.wp-search-panel {
  margin: 0 15px 18px;
}

.wp-search-panel .wp-lede {
  color: var(--wp-text-muted);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.wp-result-card {
  margin: 0 15px 18px;
}

.wp-result-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--wp-text);
}

.wp-callout {
  border-radius: var(--wp-radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  line-height: 1.5;
}

.wp-callout i {
  margin-top: 2px;
}

.wp-callout.is-success {
  background: var(--wp-success-light);
  color: #0d6b4f;
}

.wp-callout.is-danger {
  background: var(--wp-danger-light);
  color: #a5282c;
}

.wp-callout.is-info {
  background: var(--wp-info-light);
  color: #1b5db3;
}

.wp-note {
  color: var(--wp-text-muted);
  font-size: 12.5px;
  font-style: italic;
}

/* ---------- Wallet card block wrapper (replaces bare .row > .col.card) ---------- */

.wallet-page .wp-section {
  margin: 0 15px 18px;
}

/* ---------- Auth (login / signup) cards ---------- */

.wp-auth-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 15px 10px;
}

.wp-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--wp-card);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius-lg);
  box-shadow: var(--wp-shadow-hover);
  overflow: hidden;
}

.wp-auth-card.is-wide {
  max-width: 460px;
}

.wp-auth-head {
  background: linear-gradient(120deg, var(--wp-navy), var(--wp-primary-dark));
  padding: 26px 26px 22px;
  text-align: center;
}

.wp-auth-head .wp-auth-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd479;
  font-size: 21px;
  line-height: 1;
  margin-bottom: 10px;
  overflow: hidden;
}

.wp-auth-head .wp-auth-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-auth-head h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.wp-auth-head p {
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  margin: 4px 0 0;
}

.wp-auth-body {
  padding: 24px 26px 8px;
}

.wp-auth-footer {
  padding: 16px 26px 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--wp-text-muted);
}

.wp-auth-footer a {
  font-weight: 600;
  color: var(--wp-primary-dark);
}

.wp-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wp-text-muted);
  font-size: 12px;
  margin: 16px 0;
}

.wp-auth-divider::before,
.wp-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wp-border);
}

@media (max-width: 575px) {
  .wallet-header {
    margin: 10px 8px 16px;
    padding: 20px;
  }

  .wp-upgrade-banner,
  .wp-dashboard-grid,
  .wp-method-grid,
  .wp-search-panel,
  .wp-result-card,
  .wallet-page .wp-section {
    margin-left: 8px;
    margin-right: 8px;
  }
}
