:root {
  --dgc-navy: #06162b;
  --dgc-blue: #1478ff;
  --dgc-yellow: #ffbf19;
  --dgc-ink: #071a35;
  --dgc-muted: #62738d;
  --dgc-line: #dbe5f2;
  --dgc-soft: #f4f8fd;
  --dgc-green: #07966f;
  --dgc-red: #dd4a3e;
}

.dgc-checkout-card {
  position: relative;
  margin: 0 0 24px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #cfe0f4;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff 0%, #fffaf0 100%);
  color: var(--dgc-ink);
}

.dgc-checkout-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--dgc-yellow) 0 38%, var(--dgc-blue) 38% 100%);
}

.dgc-checkout-card__head,
.dgc-checkout-card__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dgc-checkout-card__head { margin-bottom: 16px; }
.dgc-checkout-card__head strong { display: block; font-size: 17px; font-weight: 850; }
.dgc-checkout-card__head small { display: block; margin-top: 2px; color: var(--dgc-muted); font-size: 13px; }
.dgc-credit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--dgc-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 120, 255, .24);
  font-weight: 900;
}

.dgc-checkout-card__controls label { margin: 0; font-size: 13px; font-weight: 800; }
.dgc-credit-input { display: flex; align-items: center; min-width: 150px; border: 1px solid #bfd0e4; border-radius: 12px; background: #fff; }
.dgc-credit-input span { padding-left: 12px; color: var(--dgc-muted); font-weight: 800; }
.dgc-credit-input input { width: 100%; min-height: 42px; margin: 0 !important; padding: 8px 12px 8px 6px !important; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 15px !important; font-weight: 800; }
.dgc-checkout-card .button { min-height: 42px; margin: 0 !important; padding: 9px 16px !important; border: 0 !important; border-radius: 12px !important; background: var(--dgc-blue) !important; color: #fff !important; font-weight: 850 !important; text-decoration: none !important; }
.dgc-checkout-card .dgc-remove-credit { border: 1px solid #cad8e9 !important; background: #fff !important; color: var(--dgc-ink) !important; }
.dgc-checkout-card.is-loading { opacity: .65; pointer-events: none; }
.dgc-checkout-message { min-height: 18px; margin: 10px 0 0; color: var(--dgc-blue); font-size: 12px; font-weight: 750; }
.dgc-checkout-note { display: block; margin-top: 4px; color: var(--dgc-muted); font-size: 12px; }

.dgc-account { display: grid; gap: 20px; color: var(--dgc-ink); }
.dgc-balance-card {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 26px;
  background: radial-gradient(circle at 88% 18%, rgba(20,120,255,.42), transparent 35%), linear-gradient(135deg, #031326, #0a386c);
  color: #fff;
  box-shadow: 0 22px 48px rgba(6, 22, 43, .18);
}
.dgc-balance-card::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 280px; height: 280px; border: 1px solid rgba(255,191,25,.35); border-radius: 50%; }
.dgc-balance-card span { display: block; color: var(--dgc-yellow); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dgc-balance-card strong { display: block; margin: 8px 0; color: #fff; font-size: clamp(34px, 6vw, 58px); font-weight: 950; line-height: 1; }
.dgc-balance-card small { color: #c6d7eb; font-size: 14px; }
.dgc-balance-card__mark { position: relative; z-index: 1; display: grid !important; width: 88px; height: 88px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 25px; background: rgba(255,255,255,.1); color: #fff !important; font-size: 24px !important; letter-spacing: 0 !important; backdrop-filter: blur(10px); }
.dgc-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.dgc-breakdown article { padding: 18px; border: 1px solid var(--dgc-line); border-radius: 17px; background: #fff; }
.dgc-breakdown span { display: block; margin-bottom: 7px; color: var(--dgc-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.dgc-breakdown strong { color: var(--dgc-ink); font-size: 20px; }
.dgc-history-card { overflow: hidden; border: 1px solid var(--dgc-line); border-radius: 22px; background: #fff; }
.dgc-history-card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--dgc-line); }
.dgc-history-card h3 { margin: 3px 0 0; color: var(--dgc-ink); font-size: 22px; }
.dgc-history-card > header > span { color: var(--dgc-muted); font-size: 13px; }
.dgc-kicker { color: var(--dgc-blue); font-size: 10px; font-weight: 950; letter-spacing: .13em; }
.dgc-history-list article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 16px 22px; border-bottom: 1px solid #edf2f8; }
.dgc-history-list article:last-child { border-bottom: 0; }
.dgc-history-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #eaf3ff; color: var(--dgc-blue); font-size: 20px; font-weight: 900; }
.dgc-history-list .is-debit .dgc-history-icon { background: #fff0eb; color: var(--dgc-red); }
.dgc-history-list strong { display: block; overflow: hidden; color: var(--dgc-ink); text-overflow: ellipsis; white-space: nowrap; }
.dgc-history-list small { color: var(--dgc-muted); }
.dgc-history-list b { color: var(--dgc-green); white-space: nowrap; }
.dgc-history-list .is-debit b { color: var(--dgc-red); }
.dgc-empty { padding: 36px 24px; text-align: center; color: var(--dgc-muted); }
.dgc-pagination { padding: 18px 22px; border-top: 1px solid var(--dgc-line); }
.dgc-pagination .page-numbers { display: inline-grid; min-width: 36px; min-height: 36px; margin-right: 5px; place-items: center; border-radius: 10px; background: var(--dgc-soft); color: var(--dgc-ink); text-decoration: none; }
.dgc-pagination .current { background: var(--dgc-blue); color: #fff; }

@media (max-width: 700px) {
  .dgc-checkout-card__controls { align-items: stretch; flex-direction: column; }
  .dgc-credit-input { width: 100%; }
  .dgc-balance-card { min-height: 160px; }
  .dgc-balance-card__mark { width: 64px; height: 64px; flex: 0 0 64px; }
  .dgc-history-card > header { align-items: flex-start; flex-direction: column; }
  .dgc-history-list article { grid-template-columns: 38px minmax(0,1fr); }
  .dgc-history-list b { grid-column: 2; }
}

