.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;
    box-shadow: 0 0 0 2px var(--aura-color, transparent), 0 0 10px 2px var(--aura-glow, transparent) !important;
}
.avatar-aura--pink { --aura-color: #ff7eb3; --aura-glow: rgba(255,126,179,0.7); }
.avatar-aura--gold { --aura-color: #ffd24d; --aura-glow: rgba(255,210,77,0.7); }
.avatar-aura--cyan { --aura-color: #4dd6ff; --aura-glow: rgba(77,214,255,0.7); }
.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;
}
.mios-subcat {
    font-size: 10px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: var(--sp-2) 0 4px;
}
.mio-sell {
    border: 1px solid rgba(250,204,21,0.5); border-radius: 99px;
    padding: 5px 12px; font-size: var(--fs-xs); font-weight: var(--fw-bold);
    cursor: pointer; background: rgba(250,204,21,0.12); color: #facc15;
    transition: all var(--tr-fast); flex-shrink: 0; white-space: nowrap;
}
.mio-sell:hover:not(:disabled) { background: rgba(250,204,21,0.25); }
.mio-sell:disabled { opacity: 0.4; cursor: not-allowed; }
.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) !important;
    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) !important; }
    to   { box-shadow: 0 0 0 2px #ff6ec7, 0 0 18px 4px rgba(255,110,199,0.85) !important; }
}
.avatar-aura--black { --aura-color: #1c1522; --aura-glow: rgba(130,70,170,0.65); }
.avatar-aura--gray { --aura-color: #93a0ae; --aura-glow: rgba(120,150,190,0.6); }
.avatar-aura--brown { --aura-color: #8b5a2b; --aura-glow: rgba(139,90,43,0.7); }
.avatar-aura--white { --aura-color: #fffdf5; --aura-glow: rgba(255,225,140,0.65); }
.avatar-aura--red { --aura-color: #ff2d2d; --aura-glow: rgba(255,45,45,0.7); }
.avatar-aura--orange { --aura-color: #ff8c1a; --aura-glow: rgba(255,140,26,0.7); }
.avatar-aura--yellow { --aura-color: #ffe14d; --aura-glow: rgba(255,225,77,0.7); }
.avatar-aura--green { --aura-color: #2ee66b; --aura-glow: rgba(46,230,107,0.7); }
.avatar-aura--blue { --aura-color: #2f7bff; --aura-glow: rgba(47,123,255,0.7); }
.avatar-aura--purple { --aura-color: #a24dff; --aura-glow: rgba(162,77,255,0.7); }
.avatar-aura--silver { --aura-color: #dbe6f2; --aura-glow: rgba(120,190,255,0.6); }
.avatar-aura--teal { --aura-color: #14d1c1; --aura-glow: rgba(20,209,193,0.7); }
.avatar-aura--electric { box-shadow: 0 0 0 2px #38c8ff, 0 0 14px 3px rgba(56,200,255,0.85) !important; animation: auraElectric 0.9s ease-in-out infinite alternate; }
@keyframes auraElectric { from { box-shadow: 0 0 0 2px #38c8ff, 0 0 8px 2px rgba(56,200,255,0.6); } to { box-shadow: 0 0 0 2px #b8f0ff, 0 0 20px 5px rgba(120,220,255,1); } }
.avatar-aura--sunset { box-shadow: 0 0 0 2px #ff7a3d, 0 0 12px 3px rgba(255,122,61,0.75) !important; animation: auraSunset 5s linear infinite; }
@keyframes auraSunset { 0%,100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(50deg); } }
.nick-grad--mint { background-image: linear-gradient(90deg, #00f5a0,#a8ffce,#00d9a5,#00f5a0); }
.nick-grad--sunset { background-image: linear-gradient(90deg, #ff512f,#f09819,#dd2476,#ff512f); }
.nick-grad--lavender { background-image: linear-gradient(90deg, #b490ff,#e0c3fc,#8ec5fc,#b490ff); }
.nick-grad--aurora { background-image: linear-gradient(90deg, #00ff87,#60efff,#a855f7,#00ff87); }
.nick-grad--cherry { background-image: linear-gradient(90deg, #ff0844,#ff5f7e,#b3001b,#ff0844); }
.nick-grad--emerald { background-image: linear-gradient(90deg, #00b09b,#96c93d,#0f9b0f,#00b09b); }
.nick-grad--ice { background-image: linear-gradient(90deg, #e0f7ff,#89dcff,#ffffff,#e0f7ff); }
.nick-grad--lava { background-image: linear-gradient(90deg, #ff1e00,#ff7a00,#8b0000,#ff1e00); }
.nick-grad--sakura { background-image: linear-gradient(90deg, #ffc1d9,#ff8fb8,#ffe3ee,#ffc1d9); }
.nick-grad--midnight { background-image: linear-gradient(90deg, #0f2027,#2c5364,#7b2ff7,#0f2027); }
.nick-grad--cotton { background-image: linear-gradient(90deg, #a1c4fd,#fbc2eb,#c2e9fb,#a1c4fd); }
.nick-grad--toxic { background-image: linear-gradient(90deg, #b6ff00,#f7ff00,#39ff14,#b6ff00); }
.nick-grad--bronze { background-image: linear-gradient(90deg, #cd7f32,#f0b67f,#8c5a2b,#cd7f32); }
.nick-grad--silver { background-image: linear-gradient(90deg, #bdc3c7,#ffffff,#8e9eab,#bdc3c7); }
.nick-fx--neonpink { text-shadow: 0 0 4px #ff2bd6, 0 0 10px #ff2bd6, 0 0 18px #ff2bd6; }
.nick-fx--neonblue { text-shadow: 0 0 4px #2b8cff, 0 0 10px #2b8cff, 0 0 18px #2b8cff; }
.nick-fx--neongreen { text-shadow: 0 0 4px #2bff6a, 0 0 10px #2bff6a, 0 0 18px #2bff6a; }
.nick-fx--neonred { text-shadow: 0 0 4px #ff2b2b, 0 0 10px #ff2b2b, 0 0 18px #ff2b2b; }
.nick-fx--goldglow { text-shadow: 0 0 5px #ffd24d, 0 0 12px #ffb300; }
.nick-fx--iceglow { text-shadow: 0 0 5px #bdefff, 0 0 12px #58c8ff; }
.nick-fx--hardshadow { text-shadow: 2px 2px 0 rgba(0,0,0,0.85); }
.nick-fx--outline { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 6px currentColor; }
.nick-fx--blink { animation: nickBlink 1.4s ease-in-out infinite; }
@keyframes nickBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.anim-paused .nick-fx, .anim-paused .avatar-aura--electric, .anim-paused .avatar-aura--sunset { animation-play-state: paused !important; }


