.wf {
    color: #e6ebf2;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
        "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.wf * {
    box-sizing: border-box;
}

.wf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.wf-card {
    background:
          radial-gradient(120% 120% at -10% -10%,
        rgba(53, 124, 255, 0.22), 
        transparent 45%),
    radial-gradient(120% 120% at 110% 110%,
        rgba(29, 78, 255, 0.18),   
        transparent 45%),
    linear-gradient(180deg, #292a2d,#2b2b2bb8);
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    isolation: isolate;
    width: calc((100% - 2rem) / 3);
}

.wf-card:hover {
    transform: translateY(-3px);
    border-color: rgba(53, 124, 255, 0.35);
}

.wf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 8px 14px;
}

.wf-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.wf-title .wf-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #357cff; 
    box-shadow: 
        0 0 0 6px rgba(53, 124, 255, 0.18),
        0 0 24px rgba(53, 124, 255, 0.55); 
}

.wf-badges {
    display: flex;
    gap: 8px;
    padding: 12px 14px 12px 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.wf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6ebf2;
    font-size: 12px;
    line-height: 1;
    flex-grow: 1;
}

.wf-badge .wf-chip {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(53, 124, 255, 0.18); 
    border: 1px solid rgba(53, 124, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
}

.wf-badge[data-type="points"] .wf-chip {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
}

.wf-badge small {
    color: #9aa3af;
    font-size: 0.78rem;
}

.wf-rewards {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
}

.wf-rewards-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #9aa3af;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.wf-reward-list {
    gap: 10px;
}

.wf-reward {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    display: grid;
    gap: 8px;
    justify-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wf-reward:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.wf-reward-img {
    width: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #0a0d12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 22px;
}

.wf-reward-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-reward-rank {
    font-size: 12px;
    color: #9aa3af;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    display: -webkit-inline-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wf-foot {
    padding: 12px 14px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wf-cta {
    appearance: none;
    border: 1px solid rgba(53, 124, 255, 0.45);
    background: linear-gradient(
        180deg,
        rgba(53, 124, 255, 0.35), 
        rgba(53, 124, 255, 0.2)   
    );
    color: white;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.08s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wf-cta:focus {
    outline: 2px solid rgba(53, 124, 255, 0.6);
    outline-offset: 2px;
}

.wf-cta:hover {
    filter: brightness(1.06);
    border-color: rgba(53, 124, 255, 0.75); 
}


.wf-cta:active {
    transform: translateY(1px);
}

.wf-card::after {
    content: "";
    position: absolute;
    inset: -1px -1px auto auto;
    width: 110px;
    height: 110px;
    background: radial-gradient(
        60px 60px at 90% 10%,
        rgba(53, 124, 255, 0.35), 
        transparent 70%
    );
    pointer-events: none;
    opacity: 0.6;
}

.wf-note {
    color: #9aa3af;
    font-size: 0.82rem;
}

body.dark-theme .wf {
    color: #f3f6fb;
}

body.dark-theme .wf-card {
    background: radial-gradient(120% 120% at -10% -10%, rgb(239, 101, 41, .45), transparent 45%), radial-gradient(120% 120% at 110% 110%, rgb(238, 102, 41, .14), transparent 45%), linear-gradient(180deg, #141820, #191d25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .wf-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f6fb;
}

body.dark-theme .wf-rewards {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

body.dark-theme .wf-rewards-title {
    color: #a8b0bc;
}

body.dark-theme .wf-reward {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .wf-reward-img {
    background: #10131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .wf-reward-rank {
    color: #a8b0bc;
}

body.dark-theme .wf-cta {
    border: 1px solid #f39a2a;
    background: linear-gradient(180deg, #f29a2a, #ef6729);
    color: #fff;
}

body.dark-theme .wf-note {
    color: #a8b0bc;
}

body.dark-theme .wf-card:hover {
    transform: translateY(-3px);
    border-color: rgba(231, 31, 95, 0.35);
}

body.dark-theme .wf-badge .wf-chip {
    background: rgb(237, 102, 26, .45);
    border: 1px solid rgb(239 102 41);
}

body.dark-theme .wf-badge[data-type="points"] .wf-chip {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
}

body.dark-theme .wf-cta:focus {
    outline: 2px solid rgba(231, 31, 95, 0.6);
    outline-offset: 2px;
}

body.dark-theme .wf-cta:hover {
    filter: brightness(1.08);
    border-color: rgba(231, 31, 95, 0.75);
}

body.dark-theme .wf-title .wf-dot {
    background: #ef6729;
    box-shadow: 0 0 0 6px rgb(238, 103, 41, .18), 0 0 24px rgb(239, 104, 41, .45);
}

body.dark-theme .wf-card::after {
    content: "";
    position: absolute;
    inset: -1px -1px auto auto;
    width: 110px;
    height: 110px;
    background: radial-gradient(60px 60px at 90% 10%,rgb(239, 103, 41, .28),transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .wf-grid .wf-card {
        width: 100%;
    }
}