.ds-credit-dashboard {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 24px 16px 40px;
}

.ds-credit-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 24px 20px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(56,189,248,.16), transparent 55%),
                linear-gradient(135deg, #0f172a, #020617);
    color: #e5f2ff;
    margin-bottom: 24px;
}

.ds-credit-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
}

.ds-credit-hero p {
    margin: 0;
    opacity: .85;
}

.ds-credit-hero-meta {
    text-align: right;
    font-size: 12px;
    opacity: .9;
}

.ds-credit-hero-meta span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    margin-bottom: 4px;
    opacity: .7;
}

.ds-credit-hero-meta strong {
    font-weight: 500;
}

.ds-credit-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .ds-credit-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ds-credit-summary-card {
    border-radius: 14px;
    padding: 12px 14px;
    background: #0b1120;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,.4);
    box-shadow: 0 10px 25px rgba(15,23,42,.35);
}

.ds-credit-summary-card.primary {
    background: radial-gradient(circle at top left, rgba(56,189,248,.25), transparent 55%),
                linear-gradient(135deg, #0f172a, #020617);
    border-color: rgba(56,189,248,.45);
}

.ds-credit-summary-card.good {
    border-color: rgba(34,197,94,.55);
}

.ds-credit-summary-card.warning {
    border-color: rgba(239,68,68,.7);
    box-shadow: 0 14px 30px rgba(239,68,68,.35);
}

.ds-credit-summary-card .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ds-credit-summary-card .value {
    font-size: 17px;
    font-weight: 600;
}

/* Credit history / timeline */

.ds-credit-history-card {
    border-radius: 16px;
    padding: 18px 18px 6px;
    background: #020617;
    border: 1px solid rgba(148,163,184,.5);
    box-shadow: 0 18px 40px rgba(15,23,42,.6);
}

.ds-credit-history-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: #e5e7eb;
}

.ds-credit-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-credit-timeline-item {
    position: relative;
    padding: 12px 0 14px 22px;
    border-bottom: 1px dashed rgba(31,41,55,.8);
}

.ds-credit-timeline-item:last-child {
    border-bottom: none;
}

.ds-credit-timeline-item:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,.25);
}

.ds-credit-timeline-item:after {
    content: "";
    position: absolute;
    left: 8.5px;
    top: 24px;
    bottom: -10px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(148,163,184,.8), transparent);
}

.ds-credit-timeline-item:last-child:after {
    display: none;
}

.ds-credit-timeline-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.ds-credit-timeline-label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.ds-credit-timeline-amount {
    font-size: 14px;
    font-weight: 600;
    color: #a5b4fc;
}

.ds-credit-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ds-credit-timeline-meta span {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15,23,42,.9);
    border: 1px solid rgba(55,65,81,.8);
}

.ds-credit-timeline-note {
    font-size: 12px;
    color: #d1d5db;
    opacity: .9;
}

.ds-credit-footnote {
    margin-top: 14px;
    font-size: 11px;
    color: #9ca3af;
    opacity: .9;
}

/* Empty state */

.ds-credit-empty-card {
    border-radius: 16px;
    padding: 24px 18px;
    border: 1px dashed rgba(148,163,184,.7);
    background: radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 55%),
                #020617;
    color: #e5e7eb;
    text-align: left;
}

.ds-credit-empty-card h2 {
    margin: 0 0 8px;
}

.ds-credit-empty-card p {
    margin: 0;
    color: #cbd5f5;
}

/* Checkout visuals */

.ds-credit-checkout-box {
    border-radius: 14px;
    padding: 14px 14px 12px;
    background: #020617;
    border: 1px solid rgba(148,163,184,.6);
    box-shadow: 0 10px 25px rgba(15,23,42,.5);
    margin-top: 8px;
    margin-bottom: 4px;
}

.ds-credit-checkout-lead {
    margin: 0 0 10px;
    font-size: 13px;
    color: #e5e7eb;
}

.ds-credit-checkout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 768px) {
    .ds-credit-checkout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ds-credit-checkout-card {
    border-radius: 10px;
    padding: 8px 10px;
    background: #020617;
    border: 1px solid rgba(75,85,99,.9);
    font-size: 12px;
    color: #d1d5db;
}

.ds-credit-checkout-card .label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    margin-bottom: 2px;
    color: #9ca3af;
}

.ds-credit-checkout-card .value {
    font-size: 13px;
    font-weight: 600;
}

.ds-credit-checkout-card.warning {
    border-color: rgba(239,68,68,.9);
    box-shadow: 0 6px 16px rgba(239,68,68,.45);
}

/* Small tweaks */

.woocommerce-account .ds-credit-dashboard h1,
.woocommerce-account .ds-credit-dashboard h2 {
    font-family: inherit;
}