/* Layout wrapper */
.mdc-wrapper {
    max-width: 480px;
    margin: 20px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Card */
.mdc-pool {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 18px 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.mdc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mdc-title-wrap h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.mdc-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Chip */
.mdc-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    white-space: nowrap;
}

/* Progress bar */
.mdc-pool-bar {
    position: relative;
    height: 10px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0 8px;
}

.mdc-pool-bar-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    height: 100%;
    width: 0;
    transition: width .4s ease;
}

/* Stats row */
.mdc-pool-stats {
    margin: 0 0 10px;
    font-size: 13px;
    color: #475569;
}

.mdc-pool-stats strong {
    color: #0f172a;
}

/* Two-column stat row */
.mdc-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.mdc-row-stats .mdc-card-stat {
    flex: 1;
}

.mdc-card-stat {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
}

.mdc-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.mdc-value {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* Notes */
.mdc-note {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 14px;
}

/* Auth / CTA area */
.mdc-auth-cta {
    margin-top: 4px;
}

.mdc-auth-cta p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 10px;
}

.mdc-button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons */
.mdc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mdc-button-primary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff !important;
}

.mdc-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.mdc-button-secondary {
    background: #e2e8f0;
    color: #0f172a !important;
    box-shadow: none;
}

.mdc-button-secondary:hover {
    background: #cbd5f5;
}

.mdc-button-full {
    width: 100%;
    margin-top: 10px;
}

/* Form */
.mdc-donation-form,
.mdc-account-form {
    margin-top: 4px;
}

.mdc-zip-label,
.mdc-field {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 10px;
}

.mdc-zip-label input,
.mdc-field input,
.mdc-field select {
    width: 100%;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
    box-sizing: border-box;
}

.mdc-zip-label input:focus,
.mdc-field input:focus,
.mdc-field select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.mdc-small {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
}

/* Alerts */
.mdc-alert {
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 13px;
    margin-bottom: 10px;
}

.mdc-alert-success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.mdc-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Account layout */
.mdc-account-wrapper .mdc-pool {
    margin-top: 4px;
}

.mdc-account-card {
    padding-bottom: 24px;
}

.mdc-section-title {
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* List (entries & wins) */
.mdc-list {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.mdc-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.mdc-list-item:last-child {
    border-bottom: none;
}

.mdc-list-main {
    max-width: 70%;
}

.mdc-list-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.mdc-list-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.mdc-list-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

/* Tags */
.mdc-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f5f9;
    color: #0f172a;
}

.mdc-tag-active {
    background: #ecfdf3;
    color: #15803d;
}

.mdc-tag-closed {
    background: #f1f5f9;
    color: #64748b;
}

.mdc-tag-paid {
    background: #ecfdf3;
    color: #15803d;
}

.mdc-tag-unpaid {
    background: #fef2f2;
    color: #b91c1c;
}

/* Empty state */
.mdc-empty {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 4px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .mdc-row {
        flex-direction: column;
    }

    .mdc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mdc-chip {
        align-self: flex-start;
    }

    .mdc-list-main {
        max-width: 65%;
    }
}