/* Wallet modal styles (old, to be replaced) */
.wallet-profile-section {
        padding: 24px 18px 18px 18px;
        background: var(--background-light);
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        border: 1.5px solid var(--border);
        max-width: 400px;
        margin: 0 auto;
}
/* Wallet Modal - harmonized with multiplier modal */
.wallet-modal-content {
        background: var(--background-light);
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.45);
        border: 1.5px solid var(--border);
        padding: 0 0 24px 0;
        max-width: 420px;
        margin: 0 auto;
        animation: modalFadeIn 0.22s cubic-bezier(.4,1.4,.6,1) 1;
}

@media (max-width: 600px) {
    .wallet-modal-content {
        max-width: 98vw;
        padding: 0 0 16px 0;
    }
}
/* ========================================
   Profile Page
   ======================================== */

/* ========== Sticky Profile Navbar ========== */
.profile-sticky-navbar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 900;
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.profile-sticky-navbar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    top: 80px;
}

.profile-sticky-navbar .sticky-navbar-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.profile-sticky-navbar .sticky-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-sticky-navbar .sticky-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-sticky-navbar .sticky-username {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.profile-sticky-navbar .sticky-stats {
   display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
}

.profile-sticky-navbar .sticky-stat {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color:var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-sticky-navbar .sticky-stat.multiplier {
    color: #a78bfa;
    background:var(--background);
    border-color: rgba(167, 139, 250, 0.2);
}

.profile-sticky-navbar .sticky-stat.multiplier:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.profile-sticky-navbar .sticky-stat.coins {
    color: #fbbf24;
    background:var(--background);
    border-color: rgba(234, 179, 8, 0.2);
}

.profile-sticky-navbar .sticky-stat.coins:hover {
    background: rgba(234, 179, 8, 0.25);
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Header compression animation */
.profile-header {
    --compress-progress: 0;
    transition: transform 0.1s ease-out,
        opacity 0.1s ease-out;
    background: var(--background-light);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.profile-header.header-compressing {
    transform: scale(calc(1 - var(--compress-progress) * 0.05));
    opacity: calc(1 - var(--compress-progress) * 0.3);
}

.profile-header.header-compressed {
    transform: scale(0.95);
    opacity: 0.7;
}

/* Responsive sticky navbar */
@media (max-width: 768px) {
    .profile-sticky-navbar {
        top: 56px;
    }

    .profile-sticky-navbar.visible {
        top: 79px;
    }

    .profile-sticky-navbar .sticky-navbar-content {
        padding: 10px 16px;
        gap: 8px;
    }

    .profile-sticky-navbar .sticky-username {
        font-size: 0.95rem;
    }

    .profile-sticky-navbar .sticky-stat {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .profile-sticky-navbar .sticky-username {
        display: none;
    }

    .profile-sticky-navbar .sticky-avatar {
        width: 32px;
        height: 32px;
    }
}

.profile {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
}

/* Steem Post Banner */
.steem-post-banner {
    display: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    animation: bannerSlideIn 0.5s ease;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 48px;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(26, 94, 204, 0.3));
}

.banner-text {
    flex: 1;
    min-width: 250px;
}

.banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #fff;
    font-weight: 700;
}

.banner-text p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.btn-share-steem {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--text-primary);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.btn-share-steem:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-share-steem:active {
    transform: translateY(-1px);
}

.btn-share-steem .btn-icon {
    font-size: 20px;
}

.btn-share-steem .btn-cost {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
}

.btn-share-steem.disabled,
.btn-share-steem:disabled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-share-steem.disabled:hover,
.btn-share-steem:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-icon {
        font-size: 64px;
    }

    .banner-text {
        min-width: unset;
    }

    .btn-share-steem {
        width: 100%;
        justify-content: center;
    }
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
}

.profile-header > * {
    position: relative;
    z-index: 2;
}

.profile-avatar,
.profile-info,
.profile-stats-quick,
.stat-badge {
    position: relative;
    z-index: 2;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-icon {
    font-size: 4rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    flex: 1;
    color: white;
}

.profile-username {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.profile-type {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Cur8 × Steem Social Profile Link */
.steem-profile-link {
    display: none; /* hidden by default, shown via JS for steem users */
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    width: fit-content;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.12) 0%, rgba(99, 102, 241, 0.12) 50%, rgba(6, 167, 125, 0.12) 100%);
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.steem-profile-link-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.steem-profile-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(99, 102, 241, 0.08), rgba(6, 167, 125, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.steem-profile-link:hover {
    border-color: rgba(0, 200, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 200, 255, 0.2), 0 0 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.steem-profile-link:hover::before {
    opacity: 1;
}

.steem-profile-link-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.steem-profile-link-cur8 {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.steem-profile-link-x {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.steem-profile-link-steem {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.steem-profile-link-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 0 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.steem-profile-link-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.steem-profile-link-url {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 1px 6px rgba(0, 212, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steem-profile-link-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.steem-profile-link:hover .steem-profile-link-arrow {
    transform: translateX(4px);
    color: #00d4ff;
}

.steem-profile-link.visible {
    display: flex;
}

@media (max-width: 480px) {
    .steem-profile-link {
        padding: 8px 12px;
        gap: 10px;
    }
    .steem-profile-link-cur8 {
        width: 22px;
        height: 22px;
    }
    .steem-profile-link-steem {
        width: 20px;
        height: 20px;
    }
    .steem-profile-link-url {
        font-size: 0.8rem;
    }
}

.profile-stats-quick {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-badge .stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
}

.stat-badge .stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Daily Rewards Badge specific styles */
#dailyRewardsBadge .stat-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* ── Invite Friends Button ─────────────────────── */

.btn-invite-friend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(255, 107, 0, 0.12));
    border: 1px solid rgba(0, 217, 255, 0.40);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-invite-friend::before {
    content: '🤝';
    font-size: 1rem;
}

.btn-invite-friend:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.22), rgba(255, 107, 0, 0.22));
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

.btn-invite-friend:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .btn-invite-friend {
        width: 100%;
        justify-content: center;
        order: 3;
    }
}

/* Pulse animation for available rewards */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(139, 92, 246, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .profile-stats-quick {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .stat-badge {
        min-width: 0;
        min-height: 90px;
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .stat-badge .stat-label {
        font-size: 0.8rem;
        white-space: normal;
        text-align: center;
        width: 100%;
    }

    .stat-badge .stat-value {
        font-size: 1.4rem;
    }

    #dailyRewardsBadge {
        order: -1;
    }
}

.profile-content {
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.profile-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-content h3:first-child {
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stats-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.stats-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.level-card-container {
    width: 100%;
    max-width: 400px;
}

.stat-card {
    background: var(--surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 1.8rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.activity-list {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border);
}

.activity-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-game {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.high-scores-list {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border);
}

.high-score-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.high-score-item:hover {
    background: rgba(255, 117, 24, 0.05);
    transform: translateX(4px);
}

.high-score-item:last-child {
    border-bottom: none;
}

.high-score-game {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.high-score-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--border);
}

.high-score-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.high-score-game-name {
    font-weight: 600;
    color: var(--text-primary);
}

.high-score-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 217, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

.settings-section {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border);
}

.setting-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.setting-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.setting-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.text-muted {
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-lg);
}

.loading-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-lg);
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .profile {
        padding-top: 130px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-left {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: var(--spacing-lg);
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
    }
    
    .avatar-icon {
        font-size: 2.5rem;
    }
    
    .profile-username {
        font-size: 1.5rem;
    }
    
    .profile-content {
        padding: var(--spacing-md);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Public User Profile Page
   ======================================== */

.user-public-profile .avatar-img-full {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-back-btn-container {
    margin-bottom: var(--spacing-lg);
}

.user-profile-back-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-back-btn:hover {
    background: rgba(0, 217, 255, 0.12);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ─── Weekly Standings Section ─── */
.weekly-standings-section h3 {
    margin-bottom: var(--spacing-md);
}

.ws-container {
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ws-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.06));
    border-bottom: 1px solid var(--border);
}

.ws-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ws-days-left {
    font-size: 0.85rem;
    font-weight: 700;
    color: #eab308;
    background: var(--background);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.ws-table {
    width: 100%;
}

.ws-row {
    display: grid;
    grid-template-columns: 60px 1fr 90px 150px;
    gap: var(--spacing-sm);
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.ws-row:last-child {
    border-bottom: none;
}

.ws-row:not(.ws-row-header):hover {
    background: rgba(255, 255, 255, 0.03);
}

.ws-row-header {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 18px;
}

.ws-rank-col {
    text-align: center;
}

.ws-rank {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
}

.ws-rank-1 { font-size: 1.3rem; }
.ws-rank-2 { font-size: 1.2rem; }
.ws-rank-3 { font-size: 1.1rem; }

.ws-game-col {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-score-col {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ws-rewards-col {
    display: flex;
    justify-content: center;
}

.ws-rewards {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.ws-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.ws-badge-steem {
    color: #3fa7ff;
    background: var(--background);
    border: 1px solid rgba(0, 150, 255, 0.25);
}

.ws-badge-coin {
    color: #eab308;
    background: var(--background);
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.ws-badge-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.ws-badge-lg {
    font-size: 0.95rem;
    padding: 5px 12px;
}

.ws-badge-lg .ws-badge-icon {
    width: 18px;
    height: 18px;
}

.ws-no-reward {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ws-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    border-top: 1px solid var(--border);
}

.ws-totals-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.ws-totals-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .ws-row {
        grid-template-columns: 45px 1fr 65px 90px;
        padding: 8px 12px;
        gap: 4px;
    }

    .ws-row-header {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .ws-header {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 10px 14px;
    }

    .ws-game-col {
        font-size: 0.88rem;
    }

    .ws-score-col {
        font-size: 0.9rem;
    }

    .ws-rewards {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .ws-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .ws-badge-icon {
        width: 12px;
        height: 12px;
    }

    .ws-totals {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 14px;
    }
}
