/* ═══════════════════════════════════════════════════════════════════
   🏘️ HOOD v6.0 - Premium Styles with Animations
   ENFORCER MINI APP 🔫
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   GREETING - Animated Header
   ═══════════════════════════════════════════════════════════════════ */

.hood-greeting {
    position: relative;
    text-align: center;
    padding: 25px 20px 20px;
    margin: -20px -20px 15px -20px;
    overflow: hidden;
}

.hg-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
    z-index: 0;
}

.hg-content {
    position: relative;
    z-index: 1;
}

.hg-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 3px solid var(--accent);
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.hg-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hg-avatar-emoji {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hg-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.hg-name {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hg-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

.hg-rank-emoji {
    font-size: 16px;
}

.hg-rank-name {
    color: var(--accent);
    font-weight: 700;
}

.hg-rank-sep {
    color: #444;
}

.hg-rank-level {
    color: #888;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS CARD
   ═══════════════════════════════════════════════════════════════════ */

.status-card {
    background: linear-gradient(145deg, #181818 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
}

.sc-header {
    font-size: 10px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-align: center;
}

.sc-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 16px;
}

.sc-stat {
    text-align: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s;
    flex: 1;
}

.sc-stat:active {
    background: rgba(255,255,255,0.05);
    transform: scale(0.95);
}

.sc-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #333, transparent);
}

.sc-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.sc-val {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
}

.sc-val.pos { color: var(--accent); }
.sc-val.neg { color: var(--negative); }

.sc-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Progress Bar */
.sc-progress {
    padding: 14px;
    background: #111;
    border-radius: 12px;
    margin-bottom: 12px;
}

.sc-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sc-progress-level {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
}

.sc-progress-xp {
    font-size: 11px;
    color: #666;
}

.sc-progress-bar {
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #4ade80 100%);
    border-radius: 4px;
    position: relative;
    transition: width 0.5s ease;
}

.sc-progress-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.sc-progress-next {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #555;
}

/* Rank Position */
.sc-rank-position {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-rank-position:active {
    transform: scale(0.98);
    border-color: var(--gold);
}

.sc-rp-icon {
    font-size: 18px;
}

.sc-rp-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

.sc-rp-arrow {
    font-size: 18px;
    color: var(--gold);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════
   DAILY CARD
   ═══════════════════════════════════════════════════════════════════ */

.daily-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.daily-card.claimable {
    border-color: rgba(34, 197, 94, 0.6);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15), inset 0 0 30px rgba(34, 197, 94, 0.05);
}

.daily-card.claimable:active {
    transform: scale(0.97);
}

.dc-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, transparent 50%, rgba(34, 197, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.daily-card.claimable .dc-bg {
    opacity: 1;
}

.dc-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(34, 197, 94, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.daily-card.claimable .dc-glow {
    opacity: 1;
    animation: dailyGlow 2.5s ease-in-out infinite;
}

@keyframes dailyGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Shine sweep effect */
.dc-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: dcShineSweep 3s ease-in-out infinite;
}

@keyframes dcShineSweep {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* Floating particles */
.dc-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.dc-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 12px;
    opacity: 0;
    animation: dcFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes dcFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; transform: translateY(-5px) scale(1); }
    80% { opacity: 1; transform: translateY(-15px) scale(1); }
    100% { opacity: 0; transform: translateY(-20px) scale(0.5); }
}

.dc-left {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1;
}

.dc-icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-icon {
    font-size: 34px;
    z-index: 1;
    animation: dcIconBounce 2s ease-in-out infinite;
}

.daily-card.claimable .dc-icon {
    animation: dcIconBounce 1.5s ease-in-out infinite;
}

@keyframes dcIconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}

.dc-pulse {
    position: absolute;
    inset: -2px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: dcPulse 2s ease-out infinite;
}

.dc-pulse-2 {
    animation-delay: 0.5s;
}

@keyframes dcPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.dc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dc-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.daily-card.claimable .dc-title {
    background: linear-gradient(90deg, #fff 0%, #4ade80 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dcTitleShine 3s linear infinite;
}

@keyframes dcTitleShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.dc-sub {
    font-size: 12px;
    color: #888;
}

.dc-sub b {
    color: var(--accent);
    font-weight: 700;
}

.dc-right {
    z-index: 1;
}

.dc-btn {
    position: relative;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
    background-size: 200% 200%;
    color: #000;
    font-size: 14px;
    font-weight: 900;
    padding: 12px 24px;
    border-radius: 12px;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(34, 197, 94, 0.4),
        0 0 30px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    overflow: hidden;
    animation: dcBtnPulse 2s ease-in-out infinite;
}

@keyframes dcBtnPulse {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4), 0 0 30px rgba(34, 197, 94, 0.2);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.3);
    }
}

.dc-btn-text {
    position: relative;
    z-index: 1;
}

.dc-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: dcBtnShine 2s ease-in-out infinite;
}

@keyframes dcBtnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.dc-streak-badge {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   STREAK CARD
   ═══════════════════════════════════════════════════════════════════ */

.streak-card {
    background: linear-gradient(145deg, #181818 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.stk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.stk-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stk-fire {
    font-size: 20px;
    animation: firePulse 1s ease-in-out infinite;
}

@keyframes firePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.stk-days {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
}

.stk-label {
    font-size: 13px;
    color: #888;
}

.stk-status {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.stk-bar {
    position: relative;
    height: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    margin-bottom: 14px;
    overflow: visible;
}

.stk-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, var(--gold) 100%);
    border-radius: 5px;
    position: relative;
    transition: width 0.5s ease;
}

.stk-glow {
    position: absolute;
    right: 0;
    top: -2px;
    bottom: -2px;
    width: 4px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold);
}

.stk-mark {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #222;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.stk-mark.done {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.stk-mark-day {
    display: none;
}

.stk-rewards {
    display: flex;
    justify-content: space-between;
}

.stk-reward {
    text-align: center;
    padding: 8px 10px;
    background: #111;
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.3s;
}

.stk-reward.earned {
    opacity: 1;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stk-reward.close {
    opacity: 0.8;
    animation: closeFlash 2s ease-in-out infinite;
}

@keyframes closeFlash {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.stk-r-day {
    display: block;
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.stk-r-bonus {
    display: block;
    font-size: 12px;
    color: var(--gold);
    font-weight: 800;
    margin-top: 2px;
}

.stk-reward.earned .stk-r-bonus {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════
   WEATHER CARD
   ═══════════════════════════════════════════════════════════════════ */

.weather-card {
    position: relative;
    background: linear-gradient(145deg, #181818 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.wc-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    transition: all 0.5s;
}

.wc-bg.cold {
    background: linear-gradient(135deg, #1e3a5f 0%, transparent 70%);
}

.wc-bg.mild {
    background: linear-gradient(135deg, #3d5a3d 0%, transparent 70%);
}

.wc-bg.warm {
    background: linear-gradient(135deg, #5a4a1f 0%, transparent 70%);
}

.wc-bg.hot {
    background: linear-gradient(135deg, #5a1f1f 0%, transparent 70%);
    animation: hotPulse 3s ease-in-out infinite;
}

@keyframes hotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.wc-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.wc-live {
    margin-left: auto;
    font-size: 9px;
    color: var(--accent);
    animation: liveBlink 2s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.wc-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
}

.wc-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
}

.wc-icon {
    font-size: 40px;
    animation: weatherBounce 3s ease-in-out infinite;
}

@keyframes weatherBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-3deg); }
    75% { transform: scale(1.05) rotate(3deg); }
}

.wc-info {
    flex: 1;
}

.wc-name {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.wc-phrase {
    font-size: 13px;
    color: #888;
    font-style: italic;
    line-height: 1.3;
}

.wc-stats {
    position: relative;
    display: flex;
    justify-content: space-around;
}

.wc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wc-stat-icon {
    font-size: 16px;
}

.wc-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.wc-stat-label {
    font-size: 9px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #555;
    font-size: 13px;
}

.wc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wc-error {
    text-align: center;
    padding: 30px;
    color: #555;
}

/* ═══════════════════════════════════════════════════════════════════
   GRIND CARD
   ═══════════════════════════════════════════════════════════════════ */

.grind-card {
    background: linear-gradient(145deg, #181818 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.gc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.gc-stats {
    display: flex;
    justify-content: space-around;
}

.gc-stat {
    text-align: center;
    padding: 10px;
}

.gc-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.gc-val {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.gc-val.pos { color: var(--accent); }
.gc-val.neg { color: var(--negative); }

.gc-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   FEED SECTION
   ═══════════════════════════════════════════════════════════════════ */

.feed-section {
    background: linear-gradient(145deg, #181818 0%, #0f0f0f 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Old feed styles removed - see new styles below */

.feed-empty {
    text-align: center;
    padding: 30px 20px;
}

.feed-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.feed-empty-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.feed-empty-sub {
    font-size: 12px;
    color: #444;
    margin-top: 4px;
}

.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #555;
    font-size: 13px;
}

.feed-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   DAILY MODAL - Animated Gift Opening
   ═══════════════════════════════════════════════════════════════════ */

.daily-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.daily-modal.active {
    opacity: 1;
    pointer-events: all;
}

.dm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.dm-content {
    position: relative;
    width: 90%;
    max-width: 340px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.daily-modal.active .dm-content {
    transform: scale(1);
}

/* Opening Animation */
.dm-content.opening {
    background: transparent;
    border: none;
}

.dm-box {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.dm-box-base {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 80px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    border-radius: 12px;
    overflow: hidden;
}

.dm-box-lid {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border-radius: 8px 8px 0 0;
    transform-origin: bottom center;
    transition: transform 0.5s ease;
}

.dm-content.explode .dm-box-lid {
    transform: rotateX(-120deg) translateY(-50px);
}

.dm-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.dm-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dm-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    opacity: 0;
}

.dm-content.explode .dm-particle {
    animation: particle-burst 0.8s ease-out forwards;
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes particle-burst {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% { 
        transform: translate(
            calc(-50% + cos(var(--i) * 30deg) * 80px), 
            calc(-50% + sin(var(--i) * 30deg) * 80px)
        ) scale(0);
        opacity: 0;
    }
}

.dm-content.shake {
    animation: box-shake 0.5s ease-in-out;
}

@keyframes box-shake {
    0%, 100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.05) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    75% { transform: scale(1.05) rotate(-2deg); }
}

.dm-text {
    color: #888;
    font-size: 14px;
    animation: pulse 1s ease-in-out infinite;
}

/* Rewards View */
.dm-content.rewards {
    padding: 24px 20px;
}

.dm-header {
    margin-bottom: 20px;
}

.dm-milestone {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.dm-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.dm-streak {
    font-size: 14px;
    color: #ff6b35;
    font-weight: 600;
}

.dm-rewards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.dm-reward {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px 14px;
    animation: reward-pop 0.4s ease-out backwards;
}

@keyframes reward-pop {
    0% { 
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }
    100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.dm-reward.cash { border-color: #22c55e33; background: linear-gradient(90deg, #22c55e11 0%, transparent 100%); }
.dm-reward.bonus { border-color: #ff6b3533; background: linear-gradient(90deg, #ff6b3511 0%, transparent 100%); }
.dm-reward.xp { border-color: #ffd70033; background: linear-gradient(90deg, #ffd70011 0%, transparent 100%); }
.dm-reward.scrap { border-color: #8b8b8b33; background: linear-gradient(90deg, #8b8b8b11 0%, transparent 100%); }
.dm-reward.item { border-color: #3b82f633; background: linear-gradient(90deg, #3b82f611 0%, transparent 100%); }
.dm-reward.gear { border-color: #a855f733; background: linear-gradient(90deg, #a855f711 0%, transparent 100%); }
.dm-reward.milestone { border-color: #ffd70055; background: linear-gradient(90deg, #ffd70022 0%, transparent 100%); }

.dm-r-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.dm-r-info {
    flex: 1;
    text-align: left;
}

.dm-r-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.dm-r-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #111;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #888;
}

.dm-balance {
    font-size: 18px;
    font-weight: 800;
    color: #22c55e;
}

.dm-close {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.dm-close:active {
    transform: scale(0.97);
    filter: brightness(0.9);
}

/* ═══════════════════════════════════════════════════════════════════
   IMPROVED FEED ITEMS
   ═══════════════════════════════════════════════════════════════════ */

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: transform 0.15s, border-color 0.15s;
}

.feed-item:active {
    transform: scale(0.98);
}

.fi-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fi-icon {
    font-size: 22px;
    z-index: 1;
}

.fi-icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0.3;
}

.feed-item.level .fi-icon-glow { background: radial-gradient(circle, #22c55e 0%, transparent 70%); }
.feed-item.rank .fi-icon-glow { background: radial-gradient(circle, #ffd700 0%, transparent 70%); }
.feed-item.jackpot .fi-icon-glow { background: radial-gradient(circle, #ffd700 0%, transparent 70%); }
.feed-item.mod .fi-icon-glow { background: radial-gradient(circle, #ef4444 0%, transparent 70%); }
.feed-item.milestone .fi-icon-glow { background: radial-gradient(circle, #f59e0b 0%, transparent 70%); }
.feed-item.achievement .fi-icon-glow { background: radial-gradient(circle, #a855f7 0%, transparent 70%); }
.feed-item.giveaway .fi-icon-glow { background: radial-gradient(circle, #ec4899 0%, transparent 70%); }
.feed-item.rare .fi-icon-glow { background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); }
.feed-item.mission .fi-icon-glow { background: radial-gradient(circle, #3b82f6 0%, transparent 70%); }
.feed-item.pvp .fi-icon-glow { background: radial-gradient(circle, #ef4444 0%, transparent 70%); }
.feed-item.boss .fi-icon-glow { background: radial-gradient(circle, #dc2626 0%, transparent 70%); }

.feed-item.level { border-color: #22c55e33; }
.feed-item.rank { border-color: #ffd70033; }
.feed-item.jackpot { border-color: #ffd70033; }
.feed-item.mod { border-color: #ef444433; }
.feed-item.milestone { border-color: #f59e0b33; }
.feed-item.achievement { border-color: #a855f733; }
.feed-item.giveaway { border-color: #ec489933; }
.feed-item.rare { border-color: #8b5cf633; }
.feed-item.mission { border-color: #3b82f633; }
.feed-item.pvp { border-color: #ef444433; }
.feed-item.boss { border-color: #dc262633; }

.fi-content {
    flex: 1;
    min-width: 0;
}

.fi-main {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-sub {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-time {
    font-size: 10px;
    color: #444;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .hg-name { font-size: 22px; }
    .hg-avatar { width: 52px; height: 52px; }
    .hg-avatar-emoji { font-size: 26px; }
    
    .sc-val { font-size: 17px; }
    .sc-icon { font-size: 20px; }
    
    .wc-icon { font-size: 34px; }
    .wc-name { font-size: 18px; }
    .wc-stat-val { font-size: 14px; }
    
    .stk-days { font-size: 20px; }
    
    .gc-val { font-size: 16px; }
    
    .dm-content { padding: 20px 16px; }
    .dm-title { font-size: 20px; }
    .dm-r-text { font-size: 16px; }
}


/* Clickable name in feed */
.fi-name-link {
    cursor: pointer;
    color: #22c55e;
    transition: color 0.2s;
}
.fi-name-link:hover {
    color: #4ade80;
    text-decoration: underline;
}
.fi-name-link:active {
    color: #16a34a;
}
