.modal-body:has(.shop-modal) {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.shop-modal { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; min-height: 0; }
.shop-balance {
    align-self: center;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px 16px;
    font-weight: var(--fw-bold);
    color: #fbbf24;
    font-size: var(--fs-sm);
    flex-shrink: 0;
}
.shop-tabs { display: flex; gap: var(--sp-2); flex-shrink: 0; }
.shop-tab-btn {
    flex: 1;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all var(--tr-fast);
}
.shop-tab-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white; border-color: transparent;
}
.shop-body { flex: 1; min-height: 0; overflow-y: auto; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: var(--sp-3);
}
.shop-item {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-2);
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    text-align: center;
    position: relative;
    transition: transform var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.shop-item:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.shop-item-emoji { font-size: 34px; line-height: 1; }
.shop-item-name { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-primary); }
.shop-item-meta { font-size: 10px; color: var(--text-muted); }
.shop-item-price { font-size: var(--fs-xs); color: #fbbf24; font-weight: var(--fw-bold); display: flex; align-items: center; gap: 3px; }
.shop-rarity { font-size: 9px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.04em; }
.shop-rarity--comun      { color: var(--text-muted); }
.shop-rarity--raro       { color: #38bdf8; }
.shop-rarity--legendario { color: #fbbf24; }
.shop-item--raro       { border-color: rgba(56,189,248,0.4); }
.shop-item--legendario {
    border-color: rgba(251,191,36,0.5);
    box-shadow: 0 0 14px rgba(251,191,36,0.18);
}
.shop-item--legendario:hover { box-shadow: 0 0 22px rgba(251,191,36,0.32); }
.shop-note { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: var(--sp-3); }
.gift-send { display: flex; flex-direction: column; gap: var(--sp-2); }
.gift-send-preview {
    display: flex; align-items: center; gap: var(--sp-3);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3);
}
.gift-send-emoji { font-size: 40px; }
.gift-label { font-size: var(--fs-xs); color: var(--text-secondary); font-weight: var(--fw-semibold); margin-top: 4px; }
.vitrina-body { min-height: 120px; }
.vitrina-loading { text-align: center; padding: var(--sp-5); color: var(--text-muted); font-size: 22px; }
.vitrina-empty { text-align: center; padding: var(--sp-5) var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.vitrina-count { font-size: var(--fs-xs); color: var(--text-secondary); margin-bottom: var(--sp-3); font-weight: var(--fw-semibold); }
.vitrina-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: var(--sp-2);
    max-height: 50vh; overflow-y: auto;
}
.vitrina-item {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-2);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-align: center;
}
.vitrina-emoji { font-size: 28px; }
.vitrina-from { font-size: 9px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vitrina-item--raro       { border-color: rgba(56,189,248,0.45); }
.vitrina-item--legendario {
    border-color: rgba(251,191,36,0.5);
    box-shadow: 0 0 12px rgba(251,191,36,0.2);
}
.whois-gifts-row {
    cursor: pointer;
    transition: background var(--tr-fast);
    border-radius: var(--r-sm);
}
.whois-gifts-row:hover { background: var(--bg-hover); }
.whois-gifts-row .wgr-mini { display: inline-flex; gap: 2px; margin-left: auto; }
.gift-float {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-size: 90px;
    z-index: 3000;
    pointer-events: none;
    animation: giftFloatBig 3.2s ease-out forwards;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
}
.gift-float--legendario { animation-duration: 3.6s; }
@keyframes giftFloatBig {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-15deg); }
    18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(8deg); }
    32%  { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    70%  { opacity: 1; transform: translate(-50%, -60%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(0.85); }
}
.avatar-aura { position: relative; }
.avatar-aura--pink { box-shadow: 0 0 0 2px #ff7eb3, 0 0 10px 2px rgba(255,126,179,0.7) !important; }
.avatar-aura--gold { box-shadow: 0 0 0 2px #ffd24d, 0 0 10px 2px rgba(255,210,77,0.7) !important; }
.avatar-aura--cyan { box-shadow: 0 0 0 2px #4dd6ff, 0 0 10px 2px rgba(77,214,255,0.7) !important; }
.nick-badge { font-size: 13px; margin-left: 3px; flex-shrink: 0; }
.nick-grad {
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
    font-weight: var(--fw-bold);
    animation: gradShift 4s linear infinite;
}
@keyframes gradShift { to { background-position: 200% 0; } }
.nick-grad--rainbow { background-image: linear-gradient(90deg, #ff5f6d, #ffc371, #47e891, #4d9fff, #d966ff, #ff5f6d); }
.nick-grad--fire    { background-image: linear-gradient(90deg, #ff4d00, #ff9a00, #ffd000, #ff4d00); }
.nick-grad--ocean   { background-image: linear-gradient(90deg, #00c6ff, #0072ff, #00e1d4, #00c6ff); }
.nick-grad--gold    { background-image: linear-gradient(90deg, #bf953f, #fcf6ba, #f7d774, #bf953f); }
.nick-grad--candy   { background-image: linear-gradient(90deg, #ff6ec7, #ff9ff3, #c56cf0, #ff6ec7); }
.nick-grad--galaxy  { background-image: linear-gradient(90deg, #7b2ff7, #4d6cfa, #f72f9e, #7b2ff7); }
.nick-glow {
    text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
    animation: nickPulse 2s ease-in-out infinite;
}
@keyframes nickPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.75; } }
.nick-rainbow {
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #47e891, #4d9fff, #d966ff, #ff5f6d);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowShift 4s linear infinite;
}
@keyframes rainbowShift { to { background-position: 300% 0; } }
.shop-item--locked {
    cursor: not-allowed;
}
.shop-item--locked .shop-item-name,
.shop-item--locked .shop-item-desc,
.shop-item--locked .shop-item-meta {
    opacity: 0.55;
}
.shop-item--locked .shop-item-preview { opacity: 1; }
.shop-item--locked:hover { transform: none; border-color: var(--border); box-shadow: none; }
.shop-price--no { color: #ef4444 !important; }
.shop-lock {
    position: absolute; top: 6px; right: 6px;
    font-size: 11px; color: var(--text-muted);
}
.ec-confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 4000;
    padding: var(--sp-4);
    animation: ecFadeIn 0.2s ease;
}
.ec-confirm-overlay.hidden { display: none; }
@keyframes ecFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ec-confirm-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    width: 100%; max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: ecPop 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes ecPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ec-confirm-emoji { font-size: 48px; line-height: 1; margin-bottom: var(--sp-2); }
.ec-confirm-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-primary); }
.ec-confirm-text { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: var(--sp-2); line-height: 1.5; }
.ec-confirm-price {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: var(--sp-3);
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: 99px; padding: 5px 14px;
    color: #fbbf24; font-weight: var(--fw-bold); font-size: var(--fs-sm);
}
.ec-confirm-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.ec-confirm-cancel, .ec-confirm-ok {
    flex: 1; padding: 10px; border-radius: var(--r-md);
    font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
    cursor: pointer; border: none;
    transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.ec-confirm-cancel { background: var(--bg-raised); color: var(--text-secondary); border: 1px solid var(--border); }
.ec-confirm-ok { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; }
.ec-confirm-cancel:hover, .ec-confirm-ok:hover { transform: scale(1.04); }
.shop-cat-sep {
    font-size: var(--fs-xs); font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--accent);
    margin: var(--sp-3) 0 var(--sp-2);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.shop-cat-sep:first-child { margin-top: 0; }
.shop-item-desc {
    font-size: 10px; color: var(--text-muted);
    line-height: 1.3; margin-top: 2px;
}
.mios-loading { text-align: center; padding: var(--sp-5); color: var(--text-muted); font-size: 22px; }
.mios-empty { text-align: center; padding: var(--sp-5) var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.mios-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.mio-item {
    display: flex; align-items: center; gap: var(--sp-3);
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3);
}
.mio-emoji { font-size: 26px; }
.mio-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mio-name { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-primary); }
.mio-days { font-size: 10px; color: var(--text-muted); }
.mio-toggle {
    border: 1px solid var(--border); border-radius: 99px;
    padding: 5px 14px; font-size: var(--fs-xs); font-weight: var(--fw-bold);
    cursor: pointer; background: var(--bg-input); color: var(--text-muted);
    transition: all var(--tr-fast); flex-shrink: 0;
}
.mio-toggle.on {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white; border-color: transparent;
}
.avatar-aura--fire {
    box-shadow: 0 0 0 2px #ff7a00, 0 0 14px 3px rgba(255,90,0,0.75) !important;
    animation: auraPulse 1s ease-in-out infinite alternate;
}
@keyframes auraPulse {
    from { opacity: 0.82; }
    to   { opacity: 1; }
}
.avatar-aura--rainbow {
    box-shadow: 0 0 0 2px #ff5f6d, 0 0 13px 3px rgba(255,95,109,0.7) !important;
    animation: auraHue 4s linear infinite;
}
@keyframes auraHue {
    to { filter: hue-rotate(360deg); }
}
.nick-neon {
    text-shadow: 0 0 4px currentColor, 0 0 8px currentColor, 0 0 14px var(--accent);
}
.anim-paused .nick-grad,
.anim-paused .nick-glow,
.anim-paused .nick-neon,
.anim-paused .avatar-aura,
.anim-paused.nick-grad,
.anim-paused.avatar-aura {
    animation-play-state: paused !important;
}
.gift-recv-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 4200; padding: var(--sp-4);
    animation: ecFadeIn 0.2s ease;
}
.gift-recv-overlay.hidden { display: none; }
.gift-recv-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: var(--sp-5) var(--sp-4);
    width: 100%; max-width: 320px; text-align: center;
    box-shadow: var(--shadow-lg);
    animation: ecPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.gift-recv--raro       { border-color: rgba(56,189,248,0.5); box-shadow: 0 0 30px rgba(56,189,248,0.25); }
.gift-recv--legendario { border-color: rgba(251,191,36,0.55); box-shadow: 0 0 36px rgba(251,191,36,0.3); }
.gift-recv-emoji { font-size: 72px; line-height: 1; animation: giftBounce 0.6s ease; }
@keyframes giftBounce { 0%{transform:scale(0.3);} 60%{transform:scale(1.2);} 100%{transform:scale(1);} }
.gift-recv-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--accent); margin-top: var(--sp-2); }
.gift-recv-name { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text-primary); margin-top: var(--sp-2); }
.gift-recv-from { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 4px; }
.gift-recv-msg {
    font-size: var(--fs-sm); color: var(--text-primary); font-style: italic;
    background: var(--bg-raised); border-radius: var(--r-md);
    padding: var(--sp-3); margin-top: var(--sp-3); line-height: 1.5;
}
.gift-recv-ok {
    margin-top: var(--sp-4); width: 100%; padding: 11px;
    border: none; border-radius: var(--r-md); cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white; font-weight: var(--fw-bold); font-size: var(--fs-sm);
}
.rp-share-btn {
    background: var(--bg-raised); border: 1px solid var(--border);
    color: var(--accent); cursor: pointer;
    width: 38px; height: 38px; border-radius: var(--r-md); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all var(--tr-fast);
}
.rp-share-btn:hover { background: var(--accent); color: white; transform: scale(1.05); }
.shop-item-preview {
    display: flex; align-items: center; justify-content: center;
    min-height: 44px; margin-bottom: 6px;
}
.shop-prev {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 8px; border-radius: 99px;
    background: var(--bg-input);
}
.shop-prev-av {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 700;
    background: var(--bg-active); color: var(--text-secondary);
    flex-shrink: 0;
}
.shop-prev-nick {
    font-size: 13px; font-weight: 700; color: var(--text-primary);
}
.nick-grad--strawberry {
    background-image: linear-gradient(90deg, #ff0050, #ff6eb4, #ffb3d1, #ff6eb4, #ff0050);
    animation: gradShift 3s linear infinite;
}
.avatar-aura--rose {
    box-shadow: 0 0 0 2px #ff0080, 0 0 10px 2px rgba(255,0,128,0.5);
    animation: auraRosePulse 1.4s ease-in-out infinite alternate;
}
@keyframes auraRosePulse {
    from { box-shadow: 0 0 0 2px #ff0080, 0 0 10px 2px rgba(255,0,128,0.5); }
    to   { box-shadow: 0 0 0 2px #ff6ec7, 0 0 18px 4px rgba(255,110,199,0.85); }
}
