/* ============================================================
   Shop, Diamonds, Avatar Frames, Name Colors & Stickers Styles
   iliyaworld.ir
   ============================================================ */

/* Diamond Badge in Header & UI */
.diamond-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(2, 132, 199, 0.28));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
    transition: all 0.25s ease;
}
.diamond-badge:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(2, 132, 199, 0.45));
    border-color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}
.diamond-badge .dm-icon {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px #38bdf8);
}

/* ============================================================
   Avatar Wrapper & Frames
   ============================================================ */
.u-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}

.u-avatar-wrap img.u-avatar-img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Sizes */
.u-avatar-wrap.size-xs { width: 26px; height: 26px; }
.u-avatar-wrap.size-sm { width: 34px; height: 34px; }
.u-avatar-wrap.size-md { width: 44px; height: 44px; }
.u-avatar-wrap.size-lg { width: 64px; height: 64px; }
.u-avatar-wrap.size-xl { width: 96px; height: 96px; }
.u-avatar-wrap.size-2xl { width: 120px; height: 120px; }

/* 1. Frame: Red (قرمز - 13 الماس) */
.u-avatar-wrap.frame-red {
    border: 2px solid #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.75), inset 0 0 5px rgba(239, 68, 68, 0.4);
    animation: frameRedPulse 2.4s infinite alternate;
}
@keyframes frameRedPulse {
    0% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.6), inset 0 0 3px rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.95), inset 0 0 7px rgba(239, 68, 68, 0.55); }
}

/* 2. Frame: White Window (پنجره سفید - 24 الماس) */
.u-avatar-wrap.frame-white-window {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.35);
    padding: 2px;
}
.u-avatar-wrap.frame-white-window img.u-avatar-img {
    border-radius: 10px;
}

/* 3. Frame: Neon Green (سبز نئون - 32 الماس) */
.u-avatar-wrap.frame-neon-green {
    border: 2px solid #22c55e;
    box-shadow: 0 0 12px #22c55e, inset 0 0 6px #22c55e;
    animation: frameNeonGreen 2s infinite ease-in-out;
}
@keyframes frameNeonGreen {
    0%, 100% { box-shadow: 0 0 8px #22c55e, inset 0 0 4px #22c55e; }
    50% { box-shadow: 0 0 18px #4ade80, 0 0 26px rgba(34, 197, 94, 0.4), inset 0 0 8px #4ade80; }
}

/* 4. Frame: Golden Window (پنجره طلایی - 43 الماس) */
.u-avatar-wrap.frame-golden-window {
    border-radius: 14px;
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.3));
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.7), inset 0 0 7px rgba(255, 215, 0, 0.4);
    padding: 2px;
}
.u-avatar-wrap.frame-golden-window img.u-avatar-img {
    border-radius: 11px;
}

/* 5. Frame: Golden Mirror (آینه طلایی - 56 الماس) */
.u-avatar-wrap.frame-golden-mirror {
    border: 3px double #e6b31e;
    box-shadow: 0 0 16px rgba(230, 179, 30, 0.8), inset 0 0 8px rgba(230, 179, 30, 0.5);
    background: radial-gradient(circle, rgba(230, 179, 30, 0.25) 0%, rgba(26, 26, 36, 0.8) 100%);
    position: relative;
}
.u-avatar-wrap.frame-golden-mirror::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 223, 94, 0.7);
    pointer-events: none;
    animation: mirrorRotate 14s linear infinite;
}
@keyframes mirrorRotate {
    100% { transform: rotate(360deg); }
}

/* 6. Frame: Black Window with Amethyst (پنجره سیاه با 1 الماس آمتیست در بالا - 67 الماس) */
.u-avatar-wrap.frame-black-amethyst {
    border-radius: 14px;
    border: 2px solid #0f0b18;
    outline: 2px solid #a855f7;
    background: #09060e;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.7), inset 0 0 10px rgba(168, 85, 247, 0.35);
    padding: 3px;
    position: relative;
}
.u-avatar-wrap.frame-black-amethyst img.u-avatar-img {
    border-radius: 11px;
}
/* Amethyst Gem on Top */
.u-avatar-wrap.frame-black-amethyst::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 50%, #6b21a8 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 10px #c084fc;
    z-index: 5;
    animation: amethystGleam 2.2s infinite ease-in-out;
}
@keyframes amethystGleam {
    0%, 100% { filter: drop-shadow(0 0 3px #c084fc); transform: translateX(-50%) scale(1); }
    50% { filter: drop-shadow(0 0 9px #e879f9); transform: translateX(-50%) scale(1.15); }
}

/* ============================================================
   Username Colors
   ============================================================ */
.u-name {
    transition: color 0.2s ease;
}
/* یخ: D6E7EC */
.uname-color-ice {
    color: #D6E7EC !important;
    text-shadow: 0 0 8px rgba(214, 231, 236, 0.65);
    font-weight: 700;
}
/* آتش: EF820D */
.uname-color-fire {
    color: #EF820D !important;
    text-shadow: 0 0 9px rgba(239, 130, 13, 0.7);
    font-weight: 700;
}
/* طلا: E6B31E */
.uname-color-gold {
    color: #E6B31E !important;
    text-shadow: 0 0 9px rgba(230, 179, 30, 0.75);
    font-weight: 700;
}
/* الماس: 89CFEF */
.uname-color-diamond {
    color: #89CFEF !important;
    text-shadow: 0 0 11px rgba(137, 207, 239, 0.85);
    font-weight: 700;
}
/* یاقوت سبز: 3BB143 */
.uname-color-emerald {
    color: #3BB143 !important;
    text-shadow: 0 0 9px rgba(59, 177, 67, 0.75);
    font-weight: 700;
}
/* آمتیست: FF2400 */
.uname-color-amethyst {
    color: #FF2400 !important;
    text-shadow: 0 0 11px rgba(255, 36, 0, 0.85);
    font-weight: 700;
}

/* ============================================================
   Username Badges (نشانه‌های کنار اسم)
   ============================================================ */
.u-name-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 4px;
    line-height: 1;
    position: relative;
}
.u-badge-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.u-name-badge:hover .u-badge-icon {
    transform: scale(1.25) rotate(6deg);
}

/* Specific Badge Animations & Special Glows */
.u-name-badge.badge-check .u-badge-icon {
    filter: drop-shadow(0 0 4px #0284c7);
}
.u-name-badge.badge-star .u-badge-icon {
    filter: drop-shadow(0 0 5px #eab308);
    animation: badgeStarTwinkle 2.5s infinite alternate ease-in-out;
}
@keyframes badgeStarTwinkle {
    0% { filter: drop-shadow(0 0 3px #eab308) brightness(1); }
    100% { filter: drop-shadow(0 0 8px #fef08a) brightness(1.2); }
}
.u-name-badge.badge-billiard-8 .u-badge-icon {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
}
.u-name-badge.badge-fire .u-badge-icon {
    filter: drop-shadow(0 0 5px #ea580c);
    animation: badgeFireFlicker 1.8s infinite alternate ease-in-out;
}
@keyframes badgeFireFlicker {
    0% { transform: scale(1); filter: drop-shadow(0 0 3px #ea580c); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 8px #facc15); }
}
.u-name-badge.badge-diamond .u-badge-icon {
    filter: drop-shadow(0 0 6px #38bdf8);
    animation: badgeDiamondShine 3s infinite ease-in-out;
}
@keyframes badgeDiamondShine {
    0%, 100% { filter: drop-shadow(0 0 4px #38bdf8); }
    50% { filter: drop-shadow(0 0 9px #bae6fd); }
}
.u-name-badge.badge-paradox-prism .u-badge-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.7));
    animation: badgeParadoxPrism 2.4s infinite alternate ease-in-out;
}
@keyframes badgeParadoxPrism {
    0% { filter: drop-shadow(0 0 4px #c084fc) hue-rotate(0deg); }
    100% { filter: drop-shadow(0 0 10px #f43f5e) hue-rotate(45deg); transform: scale(1.1); }
}

/* ============================================================
   Big Chat Stickers
   ============================================================ */
.chat-msg .bubble.sticker-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
}
.chat-sticker-img {
    width: 76px;
    height: 76px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: stickerPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-sticker-img:hover {
    transform: scale(1.18) rotate(4deg);
}
@keyframes stickerPop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Chat Media (عکس و ویدیو در چت) */
.chat-media-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #38bdf8;
    font-size: 19px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.chat-media-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    transform: scale(1.05);
}
.chat-media-btn.uploading {
    opacity: 0.5;
    pointer-events: none;
}
.chat-msg .bubble.chat-media-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px !important;
}
.chat-media-img {
    max-width: min(320px, 62vw);
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}
.chat-media-img:hover {
    transform: scale(1.02);
}
.chat-media-video {
    max-width: min(360px, 66vw);
    max-height: 340px;
    width: auto;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    background: #000;
}

/* Chat Sticker Picker Popover */
.chat-sticker-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffd700;
    font-size: 20px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chat-sticker-btn:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: #ffd700;
    transform: scale(1.05);
}

/* Chat Sticker Tray (always visible above input or toggled without overflow clip) */
.chat-sticker-tray {
    background: #111526;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    display: block;
    animation: traySlide 0.2s ease;
}
@keyframes traySlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.sticker-tray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}
.sticker-tray-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.sticker-tray-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sticker-tray-btn.owned:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    transform: scale(1.15) translateY(-2px);
}
.sticker-tray-btn img {
    width: 44px;
    height: 44px;
    display: block;
}
.sticker-tray-btn.locked {
    opacity: 0.45;
    cursor: pointer;
}
.sticker-tray-btn .lock-tag {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}
.chat-sticker-picker {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #141724;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    padding: 14px;
    z-index: 100;
    display: none;
    backdrop-filter: blur(12px);
}
.chat-sticker-picker.open {
    display: block;
    animation: stickerPickerFade 0.2s ease;
}
@keyframes stickerPickerFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.sticker-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}
.sticker-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.sticker-picker-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.sticker-picker-item:hover:not(.locked) {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    transform: translateY(-2px);
}
.sticker-picker-item img {
    width: 48px;
    height: 48px;
}
.sticker-picker-item.locked {
    opacity: 0.55;
    cursor: default;
}
.sticker-picker-item .lock-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #0f172a;
    border-radius: 6px;
    font-size: 10px;
    padding: 2px 4px;
    color: #94a3b8;
}

/* Mouse Highlight: متن داخل ایموجی موش بزرگ و قرمز */
.chat-mouse-highlight {
    display: inline-block;
    color: #ef4444 !important;
    font-size: 1.35em !important;
    font-weight: 900 !important;
    text-shadow: 0 0 14px rgba(239, 68, 68, 0.65), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    letter-spacing: 0.5px;
    padding: 2px 4px;
    vertical-align: middle;
    transform-origin: center;
    transition: transform 0.2s ease;
}
.chat-mouse-highlight:hover {
    transform: scale(1.08);
}

/* ============================================================
   Shop Page UI
   ============================================================ */
.shop-hero {
    background: linear-gradient(135deg, #0d1326 0%, #151d38 50%, #0d1326 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.shop-hero-text h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}
.shop-hero-text p {
    color: #94a3b8;
    margin: 0;
    font-size: 14px;
}
.shop-balance-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.shop-balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
}
.shop-balance-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Preview Box in Shop */
.shop-preview-card {
    background: rgba(20, 26, 46, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Tabs */
.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}
.shop-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.shop-tab-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #f8fafc;
}
.shop-tab-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* Grid of Items */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}
.shop-card {
    background: #141a2e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.shop-card.owned {
    border-color: rgba(34, 197, 94, 0.4);
}
.shop-card.equipped {
    border-color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}
.shop-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.badge-equipped {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid #38bdf8;
}
.badge-owned {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid #22c55e;
}
.shop-card-preview {
    width: 100px;
    height: 100px;
    margin: 14px 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.shop-card-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
    min-height: 32px;
}
.shop-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 14px;
}
.shop-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.shop-btn-buy {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.shop-btn-buy:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}
.shop-btn-equip {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid #38bdf8;
}
.shop-btn-equip:hover {
    background: #38bdf8;
    color: #0f172a;
}
.shop-btn-unequip {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid #ef4444;
}
.shop-btn-unequip:hover {
    background: #ef4444;
    color: #ffffff;
}
.shop-btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

/* Floating Game Playtime Timer Widget */
#playtime-tracker-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
#playtime-tracker-widget .timer-ring {
    width: 32px;
    height: 32px;
    position: relative;
}
#playtime-tracker-widget .timer-circle {
    width: 32px;
    height: 32px;
    transform: rotate(-90deg);
}

/* Copy link black button */
.btn-copy-black {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.2s ease !important;
}
.btn-copy-black:hover {
    background: #1c1c24 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px);
}

/* Copy link input black */
.ref-link-input-black {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.ref-link-input-black:focus {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================
   Interactive Gift Box Modal & Opening Animation
   ============================================================ */
.gift-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 15, 0.88);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: giftFadeIn 0.35s ease;
}
@keyframes giftFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gift-modal-card {
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 70%, #090d16 100%);
    border: 2px solid rgba(244, 63, 94, 0.5);
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8);
    border-radius: 28px;
    max-width: 440px;
    width: 100%;
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: giftCardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes giftCardPop {
    0% { transform: scale(0.65) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Animated Gift Box */
.gift-box-stage {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    cursor: pointer;
    user-select: none;
}
.gift-box-stage:hover .gift-box-img {
    transform: scale(1.08) rotate(3deg);
}
.gift-box-img {
    width: 130px;
    height: 130px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 24px rgba(239, 68, 68, 0.6));
    animation: giftBounce 2s infinite ease-in-out;
    transition: transform 0.25s ease;
}
@keyframes giftBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.04); filter: drop-shadow(0 18px 30px rgba(234, 179, 8, 0.7)); }
}

/* Click to open badge */
.gift-click-hint {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
    animation: giftPulse 1.6s infinite ease-in-out;
    margin-bottom: 8px;
    cursor: pointer;
}
@keyframes giftPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5); }
    50% { transform: scale(1.06); box-shadow: 0 6px 22px rgba(245, 158, 11, 0.8); }
}

/* Gift Opening Explosion Effect */
.gift-box-stage.opening .gift-box-img {
    animation: giftExplode 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
}
@keyframes giftExplode {
    0% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.25) rotate(-10deg); }
    60% { transform: scale(1.35) rotate(10deg); }
    100% { transform: scale(0) rotate(720deg); opacity: 0; }
}

/* Revealed Reward Container */
.gift-revealed-content {
    animation: rewardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes rewardReveal {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.gift-reward-preview {
    width: 100px;
    height: 100px;
    margin: 10px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.gift-reward-preview img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px #facc15);
    animation: rewardFloat 2.5s infinite ease-in-out;
}
@keyframes rewardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.gift-reward-title {
    font-size: 22px;
    font-weight: 900;
    color: #fef08a;
    margin-bottom: 6px;
    text-shadow: 0 0 16px rgba(250, 204, 21, 0.6);
}
.gift-reward-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================================
   Name Frames (فریم اسم) — همان جزئیات فریم‌های آواتار
   ============================================================ */
.u-name-frame {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 10px 2px;
    border-radius: 10px;
    vertical-align: middle;
    line-height: 1.85;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    max-width: 100%;
}

/* 1. Red */
.u-name-frame.name-frame-red {
    border: 2px solid #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.75), inset 0 0 5px rgba(239, 68, 68, 0.4);
    animation: frameRedPulse 2.4s infinite alternate;
}

/* 2. White Window */
.u-name-frame.name-frame-white-window {
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.35);
    padding: 1px 10px 2px;
}

/* 3. Neon Green */
.u-name-frame.name-frame-neon-green {
    border: 2px solid #22c55e;
    box-shadow: 0 0 12px #22c55e, inset 0 0 6px #22c55e;
    animation: frameNeonGreen 2s infinite ease-in-out;
}

/* 4. Golden Window */
.u-name-frame.name-frame-golden-window {
    border-radius: 14px;
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.3));
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.7), inset 0 0 7px rgba(255, 215, 0, 0.4);
}

/* 5. Golden Mirror */
.u-name-frame.name-frame-golden-mirror {
    border: 3px double #e6b31e;
    box-shadow: 0 0 16px rgba(230, 179, 30, 0.8), inset 0 0 8px rgba(230, 179, 30, 0.5);
    background: radial-gradient(circle, rgba(230, 179, 30, 0.25) 0%, rgba(26, 26, 36, 0.8) 100%);
    position: relative;
}
.u-name-frame.name-frame-golden-mirror::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 223, 94, 0.7);
    pointer-events: none;
    animation: nameMirrorRotate 14s linear infinite;
}
@keyframes nameMirrorRotate {
    100% { transform: rotate(360deg); }
}

/* 6. Black Window with Amethyst */
.u-name-frame.name-frame-black-amethyst {
    border-radius: 14px;
    border: 2px solid #0f0b18;
    outline: 2px solid #a855f7;
    background: #09060e;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.7), inset 0 0 10px rgba(168, 85, 247, 0.35);
    padding: 2px 12px 3px;
    position: relative;
}
.u-name-frame.name-frame-black-amethyst::after {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 50%, #6b21a8 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 10px #c084fc;
    z-index: 5;
    animation: amethystGleam 2.2s infinite ease-in-out;
}



