/* ==========================================================
   STREAK - RACHA
========================================================== */

.streak-banner{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    border-radius:16px;
    background:linear-gradient(135deg,#1f1f1f,#191919);
    border:1px solid rgba(255,255,255,.06);
    overflow:hidden;
    transition:.25s;
    cursor:pointer;
}

.streak-banner::before{
    content:"";
    position:absolute;
    width:70px;
    height:70px;
    left:-25px;
    top:-25px;
    border-radius:50%;
    background:color-mix(in srgb,var(--fire1,#ff8c28) 12%, transparent);
}

.streak-banner:active{
    transform:scale(.985);
}

.streak-info{
    display:flex;
    align-items:center;
    gap:10px;
    z-index:2;
}

.streak-info i{
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    color:#fff;
    font-size:16px;
    background:linear-gradient(135deg,var(--fire1,#ffb64a),var(--fire2,#ff7b22));
    box-shadow:0 4px 16px var(--glow,rgba(255,123,34,.25));
    animation:flamePulse 2.5s infinite;
}

@keyframes flamePulse{
    0%,100%{transform:scale(1);}
    50%{transform:scale(1.06);}
}

.streak-info span{
    display:block;
    font-size:14px;
    font-weight:700;
    color:#fff;
    line-height:1.2;
}

.streak-info p{
    margin-top:2px;
    font-size:11px;
    color:#8f8f8f;
    line-height:1.2;
}

.streak-chevron{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    color:#9f9f9f;
    font-size:11px;
    transition:.2s;
    z-index:2;
}

.streak-banner:hover .streak-chevron{
    background:rgba(255,255,255,.08);
    color:#fff;
    transform:translateX(2px);
}

/* ==========================================================
   NIVELES DE RACHA
========================================================== */

.streak-level-orange{
    --fire1:#ffb64a;
    --fire2:#ff7b22;
    --glow:rgba(255,123,34,.28);
}

.streak-level-gold{
    --fire1:#ffd54a;
    --fire2:#ffbf00;
    --glow:rgba(255,205,60,.35);
}

.streak-level-blue{
    --fire1:#63b8ff;
    --fire2:#2b7fff;
    --glow:rgba(60,130,255,.30);
}

.streak-level-purple{
    --fire1:#b06cff;
    --fire2:#7d3cff;
    --glow:rgba(150,90,255,.35);
}

.streak-level-diamond{
    --fire1:#7ef9ff;
    --fire2:#00d8ff;
    --glow:rgba(0,220,255,.40);
}

/* ==========================================================
   MODAL RACHA
========================================================== */

.streak-modal{

    width:100%;
    max-width:390px;

    background:linear-gradient(180deg,#1d1d1d,#161616);

    border-radius:28px;

    border:1px solid rgba(255,255,255,.06);

    padding:28px 24px;

    text-align:center;

    position:relative;

    overflow:hidden;

}

.streak-modal::before{

    content:"";

    position:absolute;

    width:220px;
    height:220px;

    border-radius:50%;

    top:-120px;
    right:-90px;

    background:color-mix(in srgb,var(--fire1,#ff8c28) 12%, transparent);

}

.streak-modal-header{

    position:relative;
    z-index:2;

}

.streak-modal-icon{

    width:72px;
    height:72px;

    margin:auto;

    border-radius:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;

    font-size:34px;

    background:linear-gradient(135deg,var(--fire1,#ffb64a),var(--fire2,#ff7b22));

    box-shadow:0 12px 35px var(--glow,rgba(255,123,34,.25));

    animation:streakFire 2.4s infinite;

}

@keyframes streakFire{

    0%,100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

}

.streak-modal h2{

    margin-top:18px;

    font-size:24px;

    font-weight:800;

}

.streak-modal-header p{

    margin-top:8px;

    color:var(--text-secondary);

    font-size:14px;

    line-height:1.5;

}

.streak-big-number{

    margin-top:28px;

    display:flex;
    flex-direction:column;

    align-items:center;

}

.streak-big-number span{

    font-size:70px;

    font-weight:900;

    line-height:1;

    color:var(--fire1,#ffb64a);

    text-shadow:0 0 18px var(--glow,rgba(255,123,34,.18));

}

.streak-big-number small{

    margin-top:6px;

    font-size:18px;

    font-weight:700;

    color:white;

}

.streak-progress{

    margin-top:30px;

    text-align:left;

}

.progress-top{

    display:flex;

    justify-content:space-between;

    margin-bottom:8px;

    font-size:13px;

    color:var(--text-secondary);

}

.progress-bar{

    width:100%;

    height:10px;

    border-radius:30px;

    overflow:hidden;

    background:#2b2b2b;

}

.progress-fill{

    width:35%;

    height:100%;

    border-radius:30px;

    background:linear-gradient(90deg,var(--fire1,#ffb64a),var(--fire2,#ff7b22));

    box-shadow:0 0 14px var(--glow,rgba(255,123,34,.25));

    transition:.5s;

}

.streak-progress p{

    margin-top:10px;

    font-size:13px;

    color:var(--text-secondary);

    line-height:1.5;

}

.streak-message{

    margin-top:26px;

    padding:18px;

    border-radius:18px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.05);

}

.streak-message i{

    font-size:26px;

    color:var(--fire1,#ffb64a);

    margin-bottom:10px;

    text-shadow:0 0 16px var(--glow,rgba(255,123,34,.20));

}

.streak-message p{

    font-size:14px;

    line-height:1.6;

    color:#d8d8d8;

}

.streak-modal .close-modal-btn{

    position:absolute;

    right:14px;

    top:14px;

    width:34px;

    height:34px;

    border-radius:50%;

    border:none;

    background:rgba(255,255,255,.08);

    color:white;

    cursor:pointer;

    transition:.2s;

    z-index:10;

}

.streak-modal .close-modal-btn:hover{

    background:rgba(255,255,255,.14);

}

.streak-modal .close-modal-btn:active{

    transform:scale(.92);

}