/* PuppyPay mixed card themes — Team ref-stats + Orders summary */

/* ===== Team: 4 cards under QR ===== */
.ref-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important;
}
.ref-stat::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  pointer-events: none;
}
.ref-stat .lbl,
.ref-stat .val { position: relative; z-index: 1; }

.ref-stats .ref-stat:nth-child(1) {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 55%, #3b82f6 100%) !important;
  border-color: rgba(147, 197, 253, 0.25) !important;
}
.ref-stats .ref-stat:nth-child(1) .lbl { color: rgba(255,255,255,0.7) !important; }
.ref-stats .ref-stat:nth-child(1) .val { color: #fff !important; }

.ref-stats .ref-stat:nth-child(2) {
  background: linear-gradient(145deg, #ecfdf5 0%, #6ee7b7 50%, #10b981 100%) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}
.ref-stats .ref-stat:nth-child(2) .lbl { color: #047857 !important; }
.ref-stats .ref-stat:nth-child(2) .val { color: #064e3b !important; }

.ref-stats .ref-stat:nth-child(3) {
  background: linear-gradient(145deg, #ecfeff 0%, #67e8f9 50%, #06b6d4 100%) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
}
.ref-stats .ref-stat:nth-child(3) .lbl { color: #0e7490 !important; }
.ref-stats .ref-stat:nth-child(3) .val { color: #083344 !important; }

.ref-stats .ref-stat:nth-child(4) {
  background: linear-gradient(145deg, #fffbeb 0%, #fde68a 50%, #f59e0b 100%) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}
.ref-stats .ref-stat:nth-child(4) .lbl { color: #92400e !important; }
.ref-stats .ref-stat:nth-child(4) .val { color: #78350f !important; }

/* ===== Orders: top 2 summary cards ===== */
.orders-sum-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important;
}
.orders-sum-card::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  pointer-events: none;
}
.orders-sum-label,
.orders-sum-value,
.orders-sum-sub { position: relative; z-index: 1; }

.orders-summary .orders-sum-card:nth-child(1) {
  background: linear-gradient(145deg, #042f2e 0%, #0f766e 50%, #14b8a6 100%) !important;
  border-color: rgba(45, 212, 191, 0.3) !important;
}
.orders-summary .orders-sum-card:nth-child(1) .orders-sum-label { color: rgba(255,255,255,0.7) !important; }
.orders-summary .orders-sum-card:nth-child(1) .orders-sum-value { color: #fff !important; }
.orders-summary .orders-sum-card:nth-child(1) .orders-sum-sub { color: rgba(255,255,255,0.55) !important; }

.orders-summary .orders-sum-card:nth-child(2),
#ordersFirstBonusCard {
  background: linear-gradient(145deg, #fffbeb 0%, #fde68a 45%, #f59e0b 100%) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
.orders-summary .orders-sum-card:nth-child(2) .orders-sum-label,
#ordersFirstBonusCard .orders-sum-label { color: #92400e !important; }
.orders-summary .orders-sum-card:nth-child(2) .orders-sum-value,
#ordersFirstBonusCard .orders-sum-value { color: #78350f !important; }

/* ===== Balance card — bank chip style ===== */
.balance-card {
  position: relative;
  z-index: 5;
  margin: -72px 16px 0;
  background: linear-gradient(145deg, #0b1220 0%, #1e3a8a 45%, #2563eb 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.25) !important;
  border-radius: 22px !important;
  padding: 18px 18px 16px !important;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.35),
    0 4px 12px rgba(30, 58, 138, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  flex-shrink: 0;
  overflow: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.balance-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.balance-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.bal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.bal-chip {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 40%, #d97706 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 2px 6px rgba(0,0,0,0.25);
  position: relative;
}
.bal-chip::after {
  content: "";
  position: absolute;
  inset: 6px 8px;
  border-radius: 3px;
  border: 1px solid rgba(120, 53, 15, 0.25);
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
}
.balance-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 4px !important;
  position: relative;
  z-index: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.balance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.balance-amount {
  flex: 1;
  font-size: clamp(26px, 7.5vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.balance-card .eye-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.balance-card .eye-btn:active {
  background: rgba(255,255,255,0.22) !important;
}
.bal-card-brand {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}
