/* Automatic VIP and one-time Active Claim UI. Load after site-theme.css. */

.view-rules-button {
    gap: 9px;
}

.claim-value-row {
    border: 1px solid rgba(6, 182, 212, 0.13);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(207, 250, 254, 0.72));
}

.vip-claim-section {
    width: min(100%, var(--vip-content-width));
    margin: 18px auto 0;
    padding: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 9px 24px rgba(30, 64, 175, 0.09);
}

.vip-claim-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.vip-section-eyebrow {
    margin: 0 0 4px;
    color: #0891b2;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.vip-claim-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 20px;
    line-height: 1.25;
}

.claim-conversion-rate {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #ecfeff;
    color: #087d9f;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.vip-claim-description {
    margin: 11px 0 0;
    color: var(--text-light);
    font-size: 11px;
    line-height: 1.55;
}

.claim-wallet-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
    padding: 5px;
    border: 1px solid #dfe8f4;
    border-radius: 14px;
    background: #f1f5f9;
}

.claim-wallet-button {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.claim-wallet-button.active {
    border-color: rgba(37, 99, 235, 0.12);
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.claim-wallet-button:active:not(:disabled) {
    transform: scale(0.98);
}

.vip-claim-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.vip-claim-list[aria-busy="true"] {
    opacity: 0.76;
}

.vip-claim-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f5f8fc);
}

.vip-claim-card.unlocked {
    border-color: #c7e8e6;
    background: linear-gradient(145deg, #f8fffd, #eefbf8);
}

.vip-claim-card.current {
    border-color: #67d4e7;
    box-shadow: 0 7px 17px rgba(8, 137, 165, 0.1);
}

.vip-claim-card.current::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 4px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    content: "";
}

.vip-claim-card.is-claimed {
    border-color: #a7f3d0;
    background: linear-gradient(145deg, #f3fff9, #eafbf3);
}

.claim-level-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #dbeafe, #cffafe);
    color: #1d4ed8;
    font-size: 17px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.vip-claim-card:nth-child(2) .claim-level-mark {
    background: linear-gradient(145deg, #ede9fe, #dbeafe);
    color: #6d28d9;
}

.vip-claim-card:nth-child(3) .claim-level-mark {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    color: #a16207;
}

.vip-claim-card:nth-child(4) .claim-level-mark {
    background: linear-gradient(145deg, #fee2e2, #fed7aa);
    color: #c2410c;
}

.vip-claim-card:nth-child(5) .claim-level-mark {
    background: linear-gradient(145deg, #cffafe, #ccfbf1);
    color: #0f766e;
}

.claim-card-copy {
    min-width: 0;
}

.claim-card-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.claim-card-copy h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
}

.current-claim-badge {
    padding: 3px 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.claim-card-copy > strong {
    display: block;
    margin-top: 4px;
    color: #087d9f;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.claim-card-copy p {
    margin: 4px 0 0;
    color: #7b8b91;
    font-size: 9px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.claim-action-button {
    display: inline-flex;
    min-width: 116px;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #e9eef5;
    color: #8492a6;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
}

.claim-action-button.claimable {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(8, 137, 165, 0.2);
}

.claim-action-button.claimed {
    border-color: #a7f3d0;
    background: #d1fae5;
    color: #047857;
}

.claim-action-button.zero {
    background: #f1f5f9;
    color: #64748b;
}

.claim-action-button:disabled,
.claim-wallet-button:disabled {
    cursor: not-allowed;
    opacity: 0.74;
}

.vip-inline-message {
    margin: 13px 0 0;
    padding: 10px 12px;
    border: 1px solid #bae6fd;
    border-radius: 11px;
    background: #f0f9ff;
    color: #075985;
    font-size: 11px;
    line-height: 1.5;
}

.vip-inline-message.error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.vip-team-legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    margin: 0 0 17px;
    padding: 12px 9px;
    border: 1px solid #dceaf0;
    border-radius: 15px;
    background: #f8fcfd;
}

.vip-team-legend > div {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 3px;
    text-align: center;
}

.vip-team-legend > i {
    color: #94a3b8;
    font-size: 8px;
}

.team-letter {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.team-letter.a {
    background: #ef4444;
}

.team-letter.b {
    background: #3b82f6;
}

.team-letter.c {
    background: #14b8a6;
}

.vip-team-legend strong {
    color: #334155;
    font-size: 9px;
}

.vip-team-legend small {
    color: #94a3b8;
    font-size: 7px;
    line-height: 1.25;
}

.vip-rule-level {
    display: block;
    padding: 12px;
}

.vip-rule-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vip-rule-level p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
}

.vip-rule-level p b {
    color: #334155;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-claim-section,
body.dark-theme .vip-claim-section {
    border-color: #334155;
    background: #111827;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-claim-header h2,
html:is(.dark-theme, [data-marathon-theme="dark"]) .claim-card-copy h3,
body.dark-theme .vip-claim-header h2,
body.dark-theme .claim-card-copy h3 {
    color: #f8fafc;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .claim-wallet-picker,
body.dark-theme .claim-wallet-picker {
    border-color: #334155;
    background: #0f172a;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .claim-wallet-button.active,
body.dark-theme .claim-wallet-button.active {
    border-color: #475569;
    background: #1e293b;
    color: #7dd3fc;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-claim-card,
body.dark-theme .vip-claim-card {
    border-color: #334155;
    background: linear-gradient(180deg, #1e293b, #172033);
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-claim-card.unlocked,
body.dark-theme .vip-claim-card.unlocked {
    border-color: #155e75;
    background: linear-gradient(145deg, #16323a, #132a32);
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .claim-card-copy > strong,
body.dark-theme .claim-card-copy > strong {
    color: #67e8f9;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .claim-value-row,
body.dark-theme .claim-value-row {
    border-color: #155e75;
    background: rgba(8, 145, 178, 0.13);
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-team-legend,
body.dark-theme .vip-team-legend {
    border-color: #334155;
    background: #172033;
}

html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-team-legend strong,
html:is(.dark-theme, [data-marathon-theme="dark"]) .vip-rule-level p b,
body.dark-theme .vip-team-legend strong,
body.dark-theme .vip-rule-level p b {
    color: #e2e8f0;
}

.claim-wallet-button:focus-visible,
.claim-action-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.34);
    outline-offset: 3px;
}

@media (max-width: 440px) {
    .vip-claim-section {
        margin-top: 15px;
        padding: 15px;
        border-radius: 17px;
    }

    .vip-claim-header h2 {
        font-size: 18px;
    }

    .claim-conversion-rate {
        min-height: 27px;
        padding: 6px 8px;
        font-size: 8px;
    }

    .vip-claim-description {
        font-size: 10px;
    }

    .claim-wallet-button {
        min-height: 40px;
        padding: 8px;
        font-size: 10px;
    }

    .vip-claim-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .claim-level-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 15px;
    }

    .claim-action-button {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        min-height: 36px;
    }

    .vip-rule-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 350px) {
    .vip-claim-header {
        flex-direction: column;
        gap: 8px;
    }

    .claim-wallet-picker {
        grid-template-columns: 1fr;
    }

    .vip-team-legend {
        gap: 4px;
        padding-inline: 6px;
    }

    .team-letter {
        width: 25px;
        height: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .claim-wallet-button,
    .claim-action-button {
        transition: none;
    }
}
