/* achievements/achievements.css */

.ach-modal-wrap {
    background: #0e1120;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scrollbar-width: none;
    box-shadow: 0 24px 64px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.07);
}
.ach-modal-wrap::-webkit-scrollbar { display: none; }

/* sticky close */
.ach-close-row {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 14px 16px 0;
    pointer-events: none;
}
.ach-close-btn {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.ach-close-btn:hover { background: #00ff87; color: #000; }

/* header */
.ach-header {
    padding: 0 24px 20px;
    margin-top: -32px;
}
.ach-header-icon {
    margin-bottom: 12px;
    color: #fbbf24;
    filter: drop-shadow(0 4px 12px rgba(251,191,36,0.4));
    display: flex;
}
.ach-header-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.25);
    color: #fbbf24;
    margin-bottom: 10px;
}
.ach-header-title {
    font-size: 22px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.ach-header-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* LP info strip */
.ach-lp-strip {
    margin: 0 24px 20px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0,255,135,0.06);
    border: 1px solid rgba(0,255,135,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}
.ach-lp-strip iconify-icon { color: #00ff87; flex-shrink: 0; }
.ach-lp-strip strong { color: #00ff87; font-weight: 700; }

/* achievement list */
.ach-list {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* single achievement card */
.ach-card {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ach-card:hover {
    border-color: rgba(251,191,36,0.2);
    background: rgba(251,191,36,0.03);
}

.ach-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ach-card-body {
    flex: 1;
    min-width: 0;
}
.ach-card-title {
    font-size: 13px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    margin-bottom: 3px;
}
.ach-card-desc {
    font-size: 11.5px;
    color: rgba(255,255,255,0.42);
    line-height: 1.5;
    margin-bottom: 0;
}

/* streak dot grid */
.ach-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.ach-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
}

/* right side reward */
.ach-card-reward {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.ach-lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.04em;
    background: rgba(0,255,135,0.12);
    border: 1px solid rgba(0,255,135,0.3);
    color: #00ff87;
    white-space: nowrap;
}
.ach-lp-badge--lg {
    font-size: 13px;
    padding: 5px 12px;
    background: rgba(0,255,135,0.15);
}
.ach-freq {
    font-size: 9.5px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: right;
}

/* daily card special */
.ach-card--daily .ach-card-icon {
    background: rgba(251,191,36,0.1);
    border-color: rgba(251,191,36,0.2);
}

/* footer CTA */
.ach-modal-footer {
    padding: 0 16px 20px;
}
.ach-store-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    background: #00ff87;
    text-decoration: none;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(0,255,135,0.25);
}
.ach-store-btn:hover {
    opacity: 0.88;
    box-shadow: 0 0 30px rgba(0,255,135,0.4);
}
