/* Cheetah Tool — Credit usage page */
.ct-credit {
    --ct-navy: #05122d;
    --ct-gold: #fed200;
    --ct-text: #1e293b;
    --ct-muted: #64748b;
    --ct-bg: #f8fafc;
    --ct-white: #ffffff;
    --ct-radius: 14px;
    --ct-shadow: 0 10px 40px rgba(5, 18, 45, 0.08);
    font-family: 'Cheetah Graphik', 'Montserrat', system-ui, sans-serif;
    color: var(--ct-text);
    background: var(--ct-bg);
    padding: 52px 0 72px;
    min-height: 60vh;
}

.ct-credit *,
.ct-credit *::before,
.ct-credit *::after {
    box-sizing: border-box;
}

body.page-credit-usage .pusher > br {
    display: none !important;
}

.ct-credit .ct-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-credit .ct-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.ct-credit .ct-head h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.25;
}

.ct-credit .ct-head p {
    margin: 0;
    color: var(--ct-muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

.ct-credit .ct-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(254, 210, 0, 0.15);
    color: #92680a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ct-credit-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ct-credit-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ct-navy);
    box-shadow: var(--ct-shadow);
}

.ct-credit-count strong {
    background: var(--ct-gold);
    color: var(--ct-navy);
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.ct-credit-search {
    display: flex;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: var(--ct-white);
    transition: border-color 0.2s;
}

.ct-credit-search:focus-within {
    border-color: var(--ct-gold);
}

.ct-credit-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    min-width: 0;
}

.ct-credit-search button {
    border: none;
    background: var(--ct-gold);
    color: var(--ct-navy);
    padding: 0 18px;
    font-weight: 700;
    cursor: default;
    font-size: 1rem;
}

.ct-credit-table-wrap {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    overflow: hidden;
}

.ct-credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ct-credit-table thead {
    background: linear-gradient(160deg, var(--ct-navy), #0a2a52);
    color: #fff;
}

.ct-credit-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ct-credit-table tbody tr {
    border-bottom: 1px solid #eef2f6;
    transition: background 0.15s;
}

.ct-credit-table tbody tr:hover {
    background: rgba(254, 210, 0, 0.06);
}

.ct-credit-table tbody tr:last-child {
    border-bottom: none;
}

.ct-credit-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    color: var(--ct-text);
}

.ct-credit-table tbody td:first-child {
    font-weight: 700;
    color: var(--ct-navy);
}

.ct-credit-table .ct-credit-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 12px;
    background: rgba(254, 210, 0, 0.2);
    color: #92680a;
    font-weight: 800;
    border-radius: 999px;
    font-size: 0.9rem;
}

.ct-credit-table .ct-credit-brand {
    color: var(--ct-muted);
    font-weight: 600;
    font-size: 0.88rem;
}

.ct-credit-table .ct-credit-type {
    font-size: 0.85rem;
    color: var(--ct-muted);
}

@media (max-width: 768px) {
    .ct-credit {
        padding: 48px 0 56px;
    }

    .ct-credit-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-credit-search {
        max-width: none;
    }

    .ct-credit-table-wrap {
        overflow-x: auto;
    }

    .ct-credit-table {
        min-width: 560px;
    }
}
