:root {
    --vcf-bg: #08101a;
    --vcf-panel: rgba(10, 18, 30, 0.88);
    --vcf-card: rgba(13, 21, 34, 0.92);
    --vcf-border: rgba(255, 255, 255, 0.08);
    --vcf-text: #eef4ff;
    --vcf-muted: rgba(238, 244, 255, 0.72);
    --vcf-blue: #163984;
    --vcf-red: #cf473d;
    --vcf-green: #2db36e;
    --vcf-amber: #ef9f38;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(22, 57, 132, 0.24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(207, 71, 61, 0.18), transparent 28%),
        var(--vcf-bg);
    color: var(--vcf-text);
}

.vcf-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.vcf-hero,
.vcf-main-card,
.vcf-side-card,
.vcf-preview-card {
    border: 1px solid var(--vcf-border);
    border-radius: 24px;
    background: var(--vcf-panel);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
}

.vcf-search-box {
    margin-bottom: 0;
}

.vcf-hero {
    padding: 26px 28px;
}

.vcf-eyebrow {
    margin: 0 0 6px;
    color: #90a7dc;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vcf-hero h2,
.vcf-step h2,
.vcf-preview-card h2,
.vcf-side-section h3 {
    margin: 0;
    line-height: 1.15;
}

.vcf-intro,
.vcf-help,
.vcf-status,
.vcf-file-name,
.vcf-info-box p {
    color: var(--vcf-muted);
    line-height: 1.55;
}

.vcf-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.vcf-main-card,
.vcf-side-card,
.vcf-preview-card {
    padding: 24px;
}

.vcf-step + .vcf-step {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--vcf-border);
}

.vcf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(144, 167, 220, 0.12);
    color: #9eb3df;
    font-weight: 700;
}

.vcf-upload {
    display: block;
    padding: 24px;
    border: 2px dashed rgba(144, 167, 220, 0.36);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.vcf-upload input {
    display: none;
}

.vcf-upload-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
}

.vcf-upload-subtitle {
    display: block;
    margin-top: 6px;
    color: var(--vcf-muted);
}

.vcf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vcf-form-grid label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.vcf-form-grid input,
.vcf-form-grid select {
    width: 100%;
    border: 1px solid var(--vcf-border);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--vcf-text);
    font: inherit;
}


.vcf-month-picker {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--vcf-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.vcf-month-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 700;
}

.vcf-month-selection {
    color: #9eb3df;
    font-size: 0.92rem;
    text-align: right;
}

.vcf-month-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.vcf-month-chip {
    border: 1px solid rgba(144, 167, 220, 0.24);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--vcf-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.vcf-month-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(144, 167, 220, 0.55);
}

.vcf-month-chip.is-active {
    background: rgba(22, 57, 132, 0.32);
    border-color: rgba(144, 167, 220, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(22, 57, 132, 0.18);
}

.vcf-primary-button,
.vcf-secondary-button,
.vcf-ghost-button {
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.vcf-primary-button:hover,
.vcf-secondary-button:hover,
.vcf-ghost-button:hover {
    transform: translateY(-1px);
}

.vcf-primary-button {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--vcf-red), #dd6a50);
    color: #fff;
    box-shadow: 0 12px 28px rgba(207, 71, 61, 0.28);
}

.vcf-results {
    margin-top: 18px;
}

.vcf-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.vcf-stat {
    padding: 14px;
    border: 1px solid var(--vcf-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.vcf-stat-label {
    display: block;
    color: var(--vcf-muted);
    font-size: 0.85rem;
}

.vcf-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1.3rem;
}

.vcf-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.vcf-secondary-button {
    background: rgba(22, 57, 132, 0.18);
    color: var(--vcf-text);
    border: 1px solid rgba(144, 167, 220, 0.24);
}

.vcf-ghost-button {
    background: transparent;
    color: #ffd0cb;
    border: 1px solid rgba(207, 71, 61, 0.35);
}

.vcf-side-section + .vcf-side-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--vcf-border);
}

.vcf-info-box {
    padding: 16px;
    border-radius: 18px;
    margin-top: 12px;
    border: 1px solid var(--vcf-border);
}

.info-blue { background: rgba(22, 57, 132, 0.18); }
.info-green { background: rgba(45, 179, 110, 0.16); }
.info-amber { background: rgba(239, 159, 56, 0.14); }

.vcf-preview-card {
    margin-top: 20px;
}

.vcf-table-wrap {
    overflow-x: auto;
}

.vcf-table {
    width: 100%;
    border-collapse: collapse;
}

.vcf-table th,
.vcf-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--vcf-border);
    text-align: left;
}

.vcf-table th {
    color: #9eb3df;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vcf-table tr.is-total {
    background: rgba(144, 167, 220, 0.1);
    font-weight: 700;
}

.vcf-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.vcf-badge.credit {
    background: rgba(45, 179, 110, 0.18);
    color: #8df0bb;
}

.vcf-badge.charge {
    background: rgba(207, 71, 61, 0.18);
    color: #ffb4ab;
}

.vcf-badge.even {
    background: rgba(255, 255, 255, 0.08);
    color: #dbe5f5;
}

.vcf-status.is-error {
    color: #ffb4ab;
}

code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 8px;
}

@media (max-width: 960px) {
    .vcf-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .vcf-stat-grid,
    .vcf-downloads,
    .vcf-form-grid,
    .vcf-month-grid {
        grid-template-columns: 1fr;
    }

    .vcf-month-picker-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vcf-month-selection {
        text-align: left;
    }
}
