/* =================================================================
   RANKINGS TABLE COMPONENT STYLES
   Enhanced & Modern Design for Event Rankings Table
   ================================================================= */

/* Container Styles */
.other-players-section {
    margin-bottom: 3rem;
}

.players-table-container {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 41, 59, 0.95) 50%,
        rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 1rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(147, 51, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

/* Animated Background Effects */
.players-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.1) 0%,
        rgba(79, 70, 229, 0.1) 25%,
        rgba(139, 69, 19, 0.05) 50%,
        rgba(147, 51, 234, 0.1) 75%,
        rgba(79, 70, 229, 0.1) 100%);
    border-radius: inherit;
    z-index: -1;
    animation: subtle-gradient-shift 8s ease-in-out infinite;
}

@keyframes subtle-gradient-shift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Header Section */
.players-table-container .header-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(51, 65, 85, 0.8) 50%,
        rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(15px);
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-title i {
    color: rgb(196 181 253);
    filter: drop-shadow(0 0 8px rgba(147, 51, 234, 0.6));
}

.sync-indicator {
    font-size: 0.875rem;
    color: rgba(196, 181, 253, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sync-indicator:hover {
    background-color: rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-1px);
}

.sync-indicator i {
    color: rgb(196 181 253);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(147, 51, 234, 0.6)); }
    50% { filter: drop-shadow(0 0 12px rgba(147, 51, 234, 0.9)); }
}

/* Table Styles */
.players-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

/* Smooth transition between header section and table */
.header-section + .overflow-x-auto .players-table {
    margin-top: 0;
}

.header-section + .overflow-x-auto {
    border-top: none;
}

/* Table Header */
.table-header th {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.95) 50%,
        rgba(30, 41, 59, 0.95) 100%);
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    position: relative;
}

.table-header th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(147, 51, 234, 0.1) 0%,
        rgba(79, 70, 229, 0.05) 50%,
        rgba(147, 51, 234, 0.1) 100%);
    z-index: -1;
}

.table-header th:hover {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.95) 0%,
        rgba(75, 85, 99, 0.95) 50%,
        rgba(51, 65, 85, 0.95) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(147, 51, 234, 0.2);
}

.table-header th:first-child {
    border-top-left-radius: 0;
}

.table-header th:last-child {
    border-top-right-radius: 0;
}

/* Table Rows */
.table-row {
    transition: all 0.3s ease-in-out;
    background: linear-gradient(90deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.4) 50%,
        rgba(30, 41, 59, 0.3) 100%);
    border-bottom: 1px solid rgba(147, 51, 234, 0.15);
    position: relative;
}

.table-row:hover {
    background: linear-gradient(90deg,
        rgba(147, 51, 234, 0.15) 0%,
        rgba(79, 70, 229, 0.15) 50%,
        rgba(147, 51, 234, 0.15) 100%);
    transform: translateX(4px);
    box-shadow:
        4px 0 12px rgba(147, 51, 234, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.table-row:nth-child(even) {
    background: linear-gradient(90deg,
        rgba(51, 65, 85, 0.25) 0%,
        rgba(75, 85, 99, 0.35) 50%,
        rgba(51, 65, 85, 0.25) 100%);
}

/* Table Cells */
.table-cell {
    padding: 1rem 1.5rem;
    color: white;
    vertical-align: middle;
    position: relative;
}

/* ================================================================
   OWNED CHARACTER ELEGANT GOLDEN STYLES - REFINED & SUBTLE
   Focused on cells only, no layout impact
   ================================================================ */

/* Subtle Golden Background Highlight for Owned Row */
tbody tr.table-row.my-hero-row {
    background: linear-gradient(90deg,
        rgba(245, 158, 11, 0.04) 0%,
        rgba(251, 191, 36, 0.08) 50%,
        rgba(245, 158, 11, 0.04) 100%) !important;
    border-left: 3px solid rgba(251, 191, 36, 0.4) !important;
}

tbody tr.table-row.my-hero-row:hover {
    background: linear-gradient(90deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(251, 191, 36, 0.12) 50%,
        rgba(245, 158, 11, 0.08) 100%) !important;
    border-left-color: rgba(251, 191, 36, 0.7) !important;
}

/* Premium Golden Rank Badge */
.my-hero-rank {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgb(245, 158, 11) 0%,
        rgb(217, 119, 6) 100%);
    border: 2px solid rgba(252, 211, 77, 0.6);
    box-shadow:
        0 0 15px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Subtle pulse on rank */
.my-hero-rank::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.3);
    animation: hero-rank-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes hero-rank-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

/* Crown Icon */
.my-hero-crown {
    margin-left: 0.5rem;
    color: rgb(252, 211, 77);
    font-size: 0.875rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.6));
    animation: hero-crown-glow 2s ease-in-out infinite;
}

@keyframes hero-crown-glow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.6));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.9));
    }
}

/* Premium Avatar with Elegant Golden Glow */
.my-hero-avatar {
    border: 2px solid rgba(245, 158, 11, 0.7) !important;
    box-shadow:
        0 0 12px rgba(245, 158, 11, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3) !important;
    position: relative;
}

.my-hero-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(245, 158, 11, 0.4),
        rgba(252, 211, 77, 0.5),
        rgba(245, 158, 11, 0.4)
    );
    animation: hero-avatar-rotate 4s linear infinite;
    z-index: -1;
}

@keyframes hero-avatar-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Star Badge */
.my-hero-star {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 1.125rem;
    height: 1.125rem;
    background: linear-gradient(135deg,
        rgb(245, 158, 11) 0%,
        rgb(217, 119, 6) 100%);
    border: 2px solid rgb(30, 41, 59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.5rem;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(245, 158, 11, 0.5);
    z-index: 2;
    animation: hero-star-twinkle 1.5s ease-in-out infinite;
}

@keyframes hero-star-twinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Premium Name with Golden Glow */
.my-hero-name {
    color: rgb(253, 224, 71) !important;
    font-weight: 600 !important;
    text-shadow:
        0 0 10px rgba(245, 158, 11, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Elegant Golden Label Badge */
.my-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.15) 0%,
        rgba(245, 158, 11, 0.2) 100%);
    color: rgb(252, 211, 77);
    font-size: 0.625rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 9999px;
    padding: 0.1875rem 0.5rem;
    margin-top: 0.125rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.my-hero-label i {
    font-size: 0.5rem;
}

/* Card View Styles */
.my-hero-card {
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(245, 158, 11, 0.12) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow:
        0 4px 12px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.my-hero-card:hover {
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow:
        0 8px 20px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Mobile Card */
.my-hero-mobile {
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.1) 0%,
        rgba(245, 158, 11, 0.15) 100%) !important;
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow:
        0 4px 16px rgba(245, 158, 11, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Rank Badge for Cards */
.my-hero-rank-special {
    background: linear-gradient(135deg,
        rgb(245, 158, 11) 0%,
        rgb(217, 119, 6) 100%) !important;
    border-color: rgba(252, 211, 77, 0.7) !important;
    box-shadow:
        0 0 15px rgba(245, 158, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Ensure no layout shifts - CRITICAL for column stability */
tbody tr.table-row.my-hero-row > td {
    position: relative;
}

/* Force all cells to remain visible */
tbody tr.table-row.my-hero-row .rewards-cell {
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Rank Cell */
.rank-cell {
    font-weight: bold;
    font-size: 1.125rem;
    text-align: center;
    min-width: 80px;
}

.rank-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(147, 51, 234) 0%, rgb(107, 33, 168) 100%);
    border: 2px solid rgba(147, 51, 234, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.rank-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        rgba(147, 51, 234, 0.6),
        rgba(79, 70, 229, 0.6),
        rgba(147, 51, 234, 0.6));
    border-radius: inherit;
    z-index: -1;
    animation: rank-glow 2s ease-in-out infinite alternate;
}

@keyframes rank-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Player Info */
.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Player Info */

.player-small-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(147, 51, 234, 0.5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: all 0.3s ease;
}

.player-small-avatar-clickable {
    cursor: pointer;
}

.player-small-avatar-clickable:hover {
    transform: scale(1.1);
    border-color: rgb(196 181 253);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.player-name-wrapper {
    display: flex;
    flex-direction: column;
}

.player-name-container {
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-name-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.player-name-clickable:hover {
    color: rgb(221 214 254) !important;
    text-shadow: 0 0 8px rgba(147, 51, 234, 0.6);
    transform: translateX(2px);
}

.player-avatar-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.player-avatar-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.player-small-avatar-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.player-small-avatar-clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

/* Job Badges */
.job-badge-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.job-badge-with-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.job-no-job {
    background-color: rgba(55, 65, 81, 0.5);
    color: rgb(209 213 219);
    border-color: rgba(75, 85, 99, 0.5);
}

.job-trader {
    background-color: rgba(4, 120, 87, 0.5);
    color: rgb(167 243 208);
    border-color: rgba(5, 150, 105, 0.5);
}

.job-thief {
    background-color: rgba(185, 28, 28, 0.5);
    color: rgb(252 165 165);
    border-color: rgba(220, 38, 38, 0.5);
}

.job-hunter {
    background-color: rgba(29, 78, 216, 0.5);
    color: rgb(147 197 253);
    border-color: rgba(37, 99, 235, 0.5);
}

/* Points Cell */
.points-cell {
    font-weight: bold;
    font-size: 1.125rem;
    color: rgb(221 214 254);
    background: linear-gradient(90deg, transparent 0%, rgba(88, 28, 135, 0.2) 100%);
    border-left: 2px solid rgba(147, 51, 234, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Rewards Container */
.rewards-container {
    width: 100%;
    min-height: 4rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.rewards-container.rewards-compact {
    min-height: 3.5rem;
}

.rewards-list {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force center alignment for rewards in table cells */
.rewards-cell .rewards-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.rewards-cell .rewards-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Premium Reward Boxes - Luxury Design */
.reward-box {
    position: relative;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    overflow: hidden;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reward-box.reward-compact {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    min-height: 3rem;
}

.reward-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.reward-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.reward-name {
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

.reward-box.reward-compact .reward-label {
    font-size: 0.625rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.reward-box.reward-compact .reward-name {
    font-weight: 600;
}

/* Premium Hover Effects */
.reward-box.reward-hover {
    transform: translateY(-3px) scale(1.02);
}

/* Backward Compatibility */
.reward-display {
    max-width: 12rem;
}

/* Enhanced Reward Items - Base Styles */
.reward-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reward-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.reward-item:hover::before {
    left: 100%;
}

.reward-item:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reward-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.reward-item:hover .reward-icon {
    transform: scale(1.2) rotate(5deg);
}

.reward-content {
    position: relative;
    z-index: 2;
}

.reward-text {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Beautiful Reward Boxes - Enhanced Visual Design */

/* Gold Rewards - Luxury Golden Treasury */
.reward-gold {
    background: linear-gradient(145deg,
        rgba(255, 215, 0, 0.12) 0%,
        rgba(255, 193, 7, 0.15) 35%,
        rgba(255, 235, 59, 0.10) 65%,
        rgba(255, 215, 0, 0.08) 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    box-shadow:
        0 4px 15px rgba(255, 193, 7, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 193, 7, 0.1);
    position: relative;
}

.reward-gold::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(255, 245, 157, 0.05) 0%,
        transparent 50%,
        rgba(255, 235, 59, 0.03) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-gold .reward-label {
    color: rgb(255, 152, 0);
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
    font-weight: 700;
}

.reward-gold .reward-name {
    color: rgb(230, 81, 0);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.reward-gold.reward-hover {
    background: linear-gradient(145deg,
        rgba(255, 215, 0, 0.18) 0%,
        rgba(255, 193, 7, 0.22) 35%,
        rgba(255, 235, 59, 0.15) 65%,
        rgba(255, 215, 0, 0.12) 100%);
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow:
        0 8px 25px rgba(255, 193, 7, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

/* Silk Rewards - Elegant Rose Garden */
.reward-silk {
    background: linear-gradient(145deg,
        rgba(255, 20, 147, 0.10) 0%,
        rgba(255, 105, 180, 0.13) 35%,
        rgba(255, 182, 193, 0.08) 65%,
        rgba(255, 20, 147, 0.06) 100%);
    border: 2px solid rgba(255, 105, 180, 0.45);
    box-shadow:
        0 4px 15px rgba(255, 105, 180, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 105, 180, 0.1);
    position: relative;
}

.reward-silk::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(255, 228, 225, 0.06) 0%,
        transparent 50%,
        rgba(255, 182, 193, 0.04) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-silk .reward-label {
    color: rgb(255, 20, 147);
    text-shadow: 0 1px 2px rgba(255, 105, 180, 0.3);
    font-weight: 700;
}

.reward-silk .reward-name {
    color: rgb(199, 21, 133);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.reward-silk.reward-hover {
    background: linear-gradient(145deg,
        rgba(255, 20, 147, 0.15) 0%,
        rgba(255, 105, 180, 0.20) 35%,
        rgba(255, 182, 193, 0.12) 65%,
        rgba(255, 20, 147, 0.10) 100%);
    border-color: rgba(255, 105, 180, 0.65);
    box-shadow:
        0 8px 25px rgba(255, 105, 180, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(255, 105, 180, 0.15);
    transform: translateY(-2px);
}

/* Donate/4T Rewards - Royal Purple Majesty (Site Signature) */
.reward-donate {
    background: linear-gradient(145deg,
        rgba(138, 43, 226, 0.12) 0%,
        rgba(147, 51, 234, 0.15) 35%,
        rgba(168, 85, 247, 0.10) 65%,
        rgba(138, 43, 226, 0.08) 100%);
    border: 2px solid rgba(147, 51, 234, 0.5);
    box-shadow:
        0 4px 15px rgba(147, 51, 234, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(147, 51, 234, 0.12);
    position: relative;
}

.reward-donate::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(196, 181, 253, 0.06) 0%,
        transparent 50%,
        rgba(168, 85, 247, 0.04) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-donate .reward-label {
    color: rgb(138, 43, 226);
    text-shadow: 0 1px 2px rgba(147, 51, 234, 0.4);
    font-weight: 700;
}

.reward-donate .reward-name {
    color: rgb(109, 40, 217);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.reward-donate.reward-hover {
    background: linear-gradient(145deg,
        rgba(138, 43, 226, 0.18) 0%,
        rgba(147, 51, 234, 0.22) 35%,
        rgba(168, 85, 247, 0.15) 65%,
        rgba(138, 43, 226, 0.12) 100%);
    border-color: rgba(147, 51, 234, 0.7);
    box-shadow:
        0 8px 25px rgba(147, 51, 234, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(147, 51, 234, 0.18);
    transform: translateY(-2px);
}

/* Skill Rewards - Mystical Emerald Forest */
.reward-skill {
    background: linear-gradient(145deg,
        rgba(0, 250, 154, 0.10) 0%,
        rgba(52, 211, 153, 0.13) 35%,
        rgba(34, 197, 94, 0.08) 65%,
        rgba(0, 250, 154, 0.06) 100%);
    border: 2px solid rgba(52, 211, 153, 0.45);
    box-shadow:
        0 4px 15px rgba(52, 211, 153, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(52, 211, 153, 0.1);
    position: relative;
}

.reward-skill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(167, 243, 208, 0.06) 0%,
        transparent 50%,
        rgba(110, 231, 183, 0.04) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-skill .reward-label {
    color: rgb(16, 185, 129);
    text-shadow: 0 1px 2px rgba(52, 211, 153, 0.3);
    font-weight: 700;
}

.reward-skill .reward-name {
    color: rgb(5, 150, 105);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.reward-skill.reward-hover {
    background: linear-gradient(145deg,
        rgba(0, 250, 154, 0.15) 0%,
        rgba(52, 211, 153, 0.20) 35%,
        rgba(34, 197, 94, 0.12) 65%,
        rgba(0, 250, 154, 0.10) 100%);
    border-color: rgba(52, 211, 153, 0.65);
    box-shadow:
        0 8px 25px rgba(52, 211, 153, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(52, 211, 153, 0.15);
    transform: translateY(-2px);
}

/* Package Rewards - Celestial Azure Sky */
.reward-package {
    background: linear-gradient(145deg,
        rgba(30, 144, 255, 0.10) 0%,
        rgba(59, 130, 246, 0.13) 35%,
        rgba(96, 165, 250, 0.08) 65%,
        rgba(30, 144, 255, 0.06) 100%);
    border: 2px solid rgba(59, 130, 246, 0.45);
    box-shadow:
        0 4px 15px rgba(59, 130, 246, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(59, 130, 246, 0.1);
    position: relative;
}

.reward-package::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(191, 219, 254, 0.06) 0%,
        transparent 50%,
        rgba(147, 197, 253, 0.04) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-package .reward-label {
    color: rgb(37, 99, 235);
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.reward-package .reward-name {
    color: rgb(30, 58, 138);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.reward-package.reward-hover {
    background: linear-gradient(145deg,
        rgba(30, 144, 255, 0.15) 0%,
        rgba(59, 130, 246, 0.20) 35%,
        rgba(96, 165, 250, 0.12) 65%,
        rgba(30, 144, 255, 0.10) 100%);
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Item Rewards - Crystal Ocean Depths */
.reward-item {
    background: linear-gradient(145deg,
        rgba(0, 191, 255, 0.10) 0%,
        rgba(6, 182, 212, 0.13) 35%,
        rgba(34, 211, 238, 0.08) 65%,
        rgba(0, 191, 255, 0.06) 100%);
    border: 2px solid rgba(6, 182, 212, 0.45);
    box-shadow:
        0 4px 15px rgba(6, 182, 212, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(6, 182, 212, 0.1);
    position: relative;
}

.reward-item::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(207, 250, 254, 0.06) 0%,
        transparent 50%,
        rgba(165, 243, 252, 0.04) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-item .reward-label {
    color: rgb(8, 145, 178);
    text-shadow: 0 1px 2px rgba(6, 182, 212, 0.3);
    font-weight: 700;
}

.reward-item .reward-name {
    color: rgb(7, 89, 133);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.reward-item.reward-hover {
    background: linear-gradient(145deg,
        rgba(0, 191, 255, 0.15) 0%,
        rgba(6, 182, 212, 0.20) 35%,
        rgba(34, 211, 238, 0.12) 65%,
        rgba(0, 191, 255, 0.10) 100%);
    border-color: rgba(6, 182, 212, 0.65);
    box-shadow:
        0 8px 25px rgba(6, 182, 212, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

/* No Reward - Elegant Neutral Sophistication */
.reward-none {
    background: linear-gradient(145deg,
        rgba(156, 163, 175, 0.08) 0%,
        rgba(107, 114, 128, 0.10) 35%,
        rgba(75, 85, 99, 0.06) 65%,
        rgba(156, 163, 175, 0.04) 100%);
    border: 2px solid rgba(107, 114, 128, 0.3);
    box-shadow:
        0 4px 15px rgba(107, 114, 128, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(107, 114, 128, 0.05);
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: fit-content !important;
    min-width: 100px !important;
}

.reward-none::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg,
        rgba(229, 231, 235, 0.04) 0%,
        transparent 50%,
        rgba(209, 213, 219, 0.03) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.reward-none .reward-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.reward-none .reward-label {
    color: rgb(107, 114, 128);
    text-shadow: 0 1px 2px rgba(107, 114, 128, 0.2);
    font-weight: 600;
    text-align: center !important;
}

.reward-none .reward-name {
    color: rgb(75, 85, 99);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    text-align: center !important;
}

.reward-none.reward-hover {
    background: linear-gradient(145deg,
        rgba(156, 163, 175, 0.12) 0%,
        rgba(107, 114, 128, 0.15) 35%,
        rgba(75, 85, 99, 0.10) 65%,
        rgba(156, 163, 175, 0.08) 100%);
    border-color: rgba(107, 114, 128, 0.45);
    box-shadow:
        0 8px 25px rgba(107, 114, 128, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(107, 114, 128, 0.08);
    transform: translateY(-2px);
}

/* Compact Mode Adjustments */
.reward-item.reward-compact {
    min-height: 2.25rem;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.reward-item.reward-compact .reward-icon {
    font-size: 0.875rem;
}

.reward-item.reward-compact .reward-text {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Special Effects for Multiple Rewards */
.rewards-list .reward-item + .reward-item {
    margin-top: 0.375rem;
}

.rewards-container:not(.rewards-compact) .rewards-list {
    gap: 0.5rem;
}

/* Floating Animation for Rewards */
@keyframes rewardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.reward-item {
    animation: rewardFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

/* Sparkle Effect */
.reward-item::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reward-item:hover::after {
    opacity: 1;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
}

/* Premium Visual Effects */

/* Shimmer Effect */
.reward-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 100%);
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.reward-box.reward-hover::before {
    left: 100%;
}

/* Elegant Floating Animation */
@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-1px) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(0deg);
    }
    75% {
        transform: translateY(-1px) rotate(0deg);
    }
}

.reward-box {
    animation: premiumFloat 6s ease-in-out infinite;
}

.reward-box:nth-child(1) { animation-delay: 0s; }
.reward-box:nth-child(2) { animation-delay: 2s; }
.reward-box:nth-child(3) { animation-delay: 4s; }

/* Magical Border Glow */
@keyframes borderGlow {
    0%, 100% {
        border-color: inherit;
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.reward-box:hover {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Premium Shadow Effects */
.reward-box {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Legacy compatibility */
.no-reward {
    opacity: 0.6;
}

.no-reward:hover {
    opacity: 0.8;
}

/* =================================================================
   RESPONSIVE DESIGN - ENHANCED FOR ALL SCREEN SIZES
   ================================================================= */

/* Large Tablets and Small Desktops (1024px and down) */
@media (max-width: 1024px) {
    .players-table-container .header-section {
        padding: 1.25rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .table-header th {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
    }

    .table-cell {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .player-small-avatar {
        width: 2.75rem;
        height: 2.75rem;
    }

    .rank-wrapper {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9375rem;
    }

    .job-badge-with-icon {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Enhanced Reward Boxes for Tablets */
    .rewards-container {
        max-width: 16rem;
        min-height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .rewards-container.rewards-compact {
        max-width: 14rem;
        min-height: 3rem;
    }

    .reward-box {
        border-radius: 10px;
        padding: 0.625rem 0.875rem;
    }

    .reward-box.reward-compact {
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
    }

    .reward-label {
        font-size: 0.625rem;
    }

    .reward-name {
        font-size: 0.8125rem;
    }

    /* Simplified animations for better tablet performance */
    .reward-box {
        animation: none;
    }

    .reward-box.reward-hover {
        transform: translateY(-1px);
    }

    .reward-display {
        max-width: 10rem;
    }
}

/* Standard Tablets (768px and down) */
@media (max-width: 768px) {
    .players-table-container {
        margin: 0 0.5rem;
        border-radius: 0.75rem;
    }

    .players-table-container .header-section {
        padding: 1rem;
    }

    .header-title {
        font-size: 1.125rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .sync-indicator {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .sync-indicator span {
        font-size: 0.6875rem;
    }

    /* Table adjustments */
    .table-header th {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .table-cell {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .player-info {
        gap: 0.75rem;
    }

    .player-small-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .rank-wrapper {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .job-badge-with-icon {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .points-cell {
        font-size: 1rem;
    }

    /* Enhanced Reward Boxes for Standard Tablets */
    .rewards-container {
        max-width: 14rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        min-height: 3rem;
    }

    .rewards-container.rewards-compact {
        max-width: 12rem;
        min-height: 2.75rem;
    }

    .reward-box {
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
    }

    .reward-box.reward-compact {
        padding: 0.375rem 0.625rem;
        border-radius: 6px;
    }

    .reward-label {
        font-size: 0.6875rem;
    }

    .reward-name {
        font-size: 0.75rem;
    }

    /* Minimal hover effects for tablets */
    .reward-box.reward-hover {
        transform: scale(1.02);
    }

    .reward-display {
        max-width: none;
    }

    /* Hide job column on tablets */
    .table-header th:nth-child(3),
    .table-row td:nth-child(3) {
        display: none;
    }
}

/* Large Mobile (640px and down) */
@media (max-width: 640px) {
    .players-table-container {
        margin: 0 0.25rem;
        border-radius: 0.5rem;
    }

    .players-table-container .header-section {
        padding: 0.875rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-section .flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .header-title {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .sync-indicator {
        font-size: 0.6875rem;
        padding: 0.375rem 0.5rem;
    }

    .sync-indicator span {
        display: none;
    }

    /* Compact table design */
    .table-header th {
        padding: 0.625rem 0.75rem;
        font-size: 0.6875rem;
        letter-spacing: 0.025em;
    }

    .table-cell {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .player-info {
        gap: 0.5rem;
    }

    .player-small-avatar {
        width: 2.25rem;
        height: 2.25rem;
    }

    .rank-wrapper {
        width: 1.875rem;
        height: 1.875rem;
        font-size: 0.8125rem;
    }

    .points-cell {
        font-size: 0.9375rem;
    }

    /* Mobile-optimized Reward Boxes */
    .rewards-container {
        max-width: 100%;
        min-height: 3rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .rewards-container.rewards-compact {
        max-width: 100%;
        min-height: 2.5rem;
    }

    .rewards-list {
        flex-direction: column;
        gap: 0.375rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reward-box {
        border-radius: 6px;
        padding: 0.375rem 0.625rem;
        min-height: 2rem;
        border-width: 1px;
    }

    .reward-box.reward-compact {
        padding: 0.25rem 0.5rem;
        min-height: 1.75rem;
    }

    .reward-label {
        font-size: 0.625rem;
        margin-bottom: 0.125rem;
    }

    .reward-name {
        font-size: 0.6875rem;
        font-weight: 500;
    }

    /* Disable animations on mobile for performance */
    .reward-box {
        animation: none;
    }

    .reward-box.reward-hover {
        transform: none;
    }

    .reward-box::before {
        display: none;
    }

    /* Hide rewards column on large mobile */
    .table-header th:nth-child(5),
    .table-row td:nth-child(5) {
        display: none;
    }

    /* Player name adjustments */
    .player-name-wrapper {
        min-width: 0;
        flex: 1;
    }

    .your-character-badge {
        font-size: 0.625rem;
        padding: 0.1875rem 0.375rem;
    }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
    .other-players-section {
        margin-bottom: 2rem;
    }

    .players-table-container {
        margin: 0;
        border-radius: 0.375rem;
    }

    .players-table-container .header-section {
        padding: 0.75rem;
    }

    .header-title {
        font-size: 0.9375rem;
    }

    .sync-indicator {
        padding: 0.25rem 0.375rem;
    }

    /* Ultra compact table */
    .table-header th {
        padding: 0.5rem 0.625rem;
        font-size: 0.625rem;
    }

    .table-cell {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }

    .player-small-avatar {
        width: 2rem;
        height: 2rem;
    }

    .rank-wrapper {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .points-cell {
        font-size: 0.875rem;
        font-weight: 600;
    }

    /* Stack player info vertically on very small screens */
    .player-info {
        gap: 0.375rem;
    }

    .player-name-wrapper {
        overflow: hidden;
    }

    .player-name-container span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
        display: inline-block;
    }
}

/* Extra Small Mobile (360px and down) */
@media (max-width: 360px) {
    .players-table-container .header-section {
        padding: 0.625rem;
    }

    .header-title {
        font-size: 0.875rem;
    }

    .table-header th {
        padding: 0.375rem 0.5rem;
        font-size: 0.5625rem;
    }

    .table-cell {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
    }

    .player-small-avatar {
        width: 1.75rem;
        height: 1.75rem;
    }

    .rank-wrapper {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.6875rem;
    }

    .player-name-container span {
        max-width: 80px;
    }

    .points-cell {
        font-size: 0.8125rem;
    }

    .your-character-badge {
        display: none; /* Hide badge on very small screens */
    }
}

/* Mobile Card Layout Styles */
.mobile-player-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.90) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(147, 51, 234, 0.1) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.mobile-player-card:hover::before {
    left: 100%;
}

.mobile-player-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(147, 51, 234, 0.2);
}

/* Mobile card rank badge */
.mobile-player-card .rank-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    font-weight: bold;
}

/* Mobile view toggle buttons */
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.view-toggle-buttons {
    display: flex;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 0.5rem;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
}

.view-toggle-button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.view-toggle-button.active {
    background: linear-gradient(135deg, rgb(147, 51, 234) 0%, rgb(107, 33, 168) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(147, 51, 234, 0.3);
}

.view-toggle-button:not(.active) {
    color: rgb(196, 181, 253);
}

.view-toggle-button:not(.active):hover {
    color: white;
    background: rgba(147, 51, 234, 0.2);
}

/* Mobile reward display */
.reward-display-mobile {
    width: 100%;
}

.reward-display-mobile > div {
    width: 100%;
    justify-content: flex-start;
}

/* Animation for mobile cards */
.mobile-player-card {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delay for cards */
.mobile-player-card:nth-child(1) { animation-delay: 0.1s; }
.mobile-player-card:nth-child(2) { animation-delay: 0.2s; }
.mobile-player-card:nth-child(3) { animation-delay: 0.3s; }
.mobile-player-card:nth-child(4) { animation-delay: 0.4s; }
.mobile-player-card:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced Reward Boxes for Mobile Cards */
.mobile-player-card .rewards-container {
    max-width: 100%;
    min-height: auto;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-player-card .rewards-container.rewards-compact {
    margin-top: 0.375rem;
}

.mobile-player-card .rewards-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.mobile-player-card .reward-box {
    flex: 0 1 auto;
    min-width: fit-content;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    border-width: 1px;
}

.mobile-player-card .reward-label {
    font-size: 0.5625rem;
    margin-bottom: 0.125rem;
}

.mobile-player-card .reward-name {
    font-size: 0.6875rem;
    white-space: nowrap;
}

/* Mobile specific responsive adjustments */
@media (max-width: 480px) {
    .mobile-player-card {
        padding: 0.875rem;
        margin-bottom: 0.625rem;
    }

    .mobile-player-card .rank-wrapper {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9375rem;
    }

    .view-toggle-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Extra compact reward boxes for small screens */
    .mobile-player-card .reward-box {
        padding: 0.1875rem 0.375rem;
        min-height: 1.5rem;
    }

    .mobile-player-card .reward-label {
        font-size: 0.5rem;
        margin-bottom: 0.0625rem;
    }

    .mobile-player-card .reward-name {
        font-size: 0.625rem;
    }
}

@media (max-width: 360px) {
    .mobile-player-card {
        padding: 0.75rem;
    }

    .mobile-player-card .rank-wrapper {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

/* Hide mobile view toggle on desktop */
@media (min-width: 641px) {
    .view-toggle-container {
        display: none;
    }
}

/* Loading and transition states */
.table-loading {
    opacity: 0.6;
    pointer-events: none;
}

.table-loading .table-row {
    animation: pulse 2s infinite;
}

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

/* Accessibility improvements */
.table-row:focus {
    outline: 2px solid rgba(147, 51, 234, 0.5);
    outline-offset: 2px;
}

.view-toggle-button:focus {
    outline: 2px solid rgba(147, 51, 234, 0.5);
    outline-offset: 2px;
}

/* View transition animations */
.rankings-container {
    transition: all 0.3s ease-in-out;
}

.rankings-container.loading {
    opacity: 0.7;
}

.rankings-container.animate-transition {
    transform: scale(0.98);
}

.table-view-container {
    animation: slideInFromRight 0.4s ease-out;
}

.mobile-cards-container {
    animation: slideInFromLeft 0.4s ease-out;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced responsive table behavior */
.table-view-container .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, 0.5) transparent;
}

.table-view-container .overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.table-view-container .overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
}

.table-view-container .overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.7);
    border-radius: 3px;
}

.table-view-container .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.9);
}

/* Reward Display Styles */
.reward-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.reward-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.reward-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.reward-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.reward-text {
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
}

/* Simplified Reward Colors */
.reward-yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    color: rgb(254, 240, 138);
}

.reward-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(190, 24, 93, 0.15) 100%);
    border-color: rgba(236, 72, 153, 0.3);
    color: rgb(251, 207, 232);
}

.reward-purple {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(109, 40, 217, 0.15) 100%);
    border-color: rgba(147, 51, 234, 0.3);
    color: rgb(196, 181, 253);
}

.reward-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: rgb(187, 247, 208);
}

.reward-indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: rgb(199, 210, 254);
}

.reward-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: rgb(191, 219, 254);
}

.reward-none {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.15) 0%, rgba(55, 65, 81, 0.15) 100%);
    border-color: rgba(75, 85, 99, 0.3);
    color: rgb(209, 213, 219);
}

/* Compact Reward Display */
.reward-compact .reward-item {
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
}

.reward-compact .reward-icon {
    width: 1rem;
    height: 1rem;
}

.reward-compact .reward-label {
    font-size: 0.6875rem;
}

.reward-compact .reward-amount {
    font-size: 0.625rem;
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Screen size specific optimizations */
@media (max-width: 1024px) {
    .table-view .table {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .table-view .table {
        font-size: 0.8125rem;
    }

    .cards-view .grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 640px) {
    .table-view {
        display: none !important;
    }

    .cards-view .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .reward-item {
        padding: 0.375rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .players-table {
        border: 1px solid #000;
        background: white !important;
        color: black !important;
        min-width: auto !important;
    }

    .table-header, .table-row {
        background: white !important;
        color: black !important;
    }

    .view-toggle-container {
        display: none;
    }

    .mobile-player-card, .mobile-cards-container {
        display: none;
    }

    .table-view-container {
        display: block !important;
    }
}

/* Loading States */
.table-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(147, 51, 234, 0.3);
    border-top: 3px solid rgb(147, 51, 234);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Alpine.js specific enhancements */
[x-cloak] {
    display: none !important;
}

.alpine-tooltip {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced hover states for Alpine.js interactions */
.table-row[x-data]:hover,
tr.table-row:hover {
    background: linear-gradient(90deg,
        rgba(147, 51, 234, 0.1) 0%,
        rgba(79, 70, 229, 0.1) 50%,
        rgba(147, 51, 234, 0.1) 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Fix for table rows with Alpine.js */
tbody tr.table-row {
    background: transparent;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
    transition: all 0.2s ease;
}

tbody tr.table-row:hover {
    background: rgba(147, 51, 234, 0.05) !important;
    transform: none !important;
}

/* Responsive Table Layout */
.table-view table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse;
    min-width: 600px;
}

/* Force column distribution */
.table-view table thead th,
.table-view table tbody td {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Explicit column widths to prevent clustering */
.table-view table thead th:nth-child(1),
.table-view table tbody td:nth-child(1) {
    width: 12% !important;
    max-width: 12% !important;
    min-width: 80px !important;
}

.table-view table thead th:nth-child(2),
.table-view table tbody td:nth-child(2) {
    width: 25% !important;
    max-width: 25% !important;
    min-width: 150px !important;
}

.table-view table thead th:nth-child(3),
.table-view table tbody td:nth-child(3) {
    width: 18% !important;
    max-width: 18% !important;
    min-width: 110px !important;
}

.table-view table thead th:nth-child(4),
.table-view table tbody td:nth-child(4) {
    width: 18% !important;
    max-width: 18% !important;
    min-width: 110px !important;
}

.table-view table thead th:nth-child(5),
.table-view table tbody td:nth-child(5) {
    width: 27% !important;
    max-width: 27% !important;
    min-width: 150px !important;
}

.table-view thead th,
.table-view tbody td {
    vertical-align: middle;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: table-cell !important;
    float: none !important;
    position: relative !important;
}

.table-view thead th:nth-child(4),
.table-view tbody td:nth-child(4),
.table-view thead th:nth-child(5),
.table-view tbody td:nth-child(5) {
    text-align: center;
}

/* Content Fitting in Cells */
.table-view .player-name-clickable {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.table-view .job-badge-with-icon {
    max-width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

.table-view .rewards-container {
    max-width: 100%;
    margin: 0 auto;
}

.table-view .rewards-container.rewards-compact {
    max-width: 100%;
}

.table-view .reward-box {
    max-width: 100%;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Responsive Column Adjustments */
@media (max-width: 768px) {
    .table-view thead th:nth-child(1),
    .table-view tbody td:nth-child(1) {
        width: 12% !important;
    }

    .table-view thead th:nth-child(2),
    .table-view tbody td:nth-child(2) {
        width: 28% !important;
    }

    .table-view thead th:nth-child(3),
    .table-view tbody td:nth-child(3) {
        width: 20% !important;
    }

    .table-view thead th:nth-child(4),
    .table-view tbody td:nth-child(4) {
        width: 18% !important;
    }

    .table-view thead th:nth-child(5),
    .table-view tbody td:nth-child(5) {
        width: 22% !important;
    }
}

@media (max-width: 640px) {
    .table-view thead th:nth-child(1),
    .table-view tbody td:nth-child(1) {
        width: 10% !important;
    }

    .table-view thead th:nth-child(2),
    .table-view tbody td:nth-child(2) {
        width: 25% !important;
    }

    .table-view thead th:nth-child(3),
    .table-view tbody td:nth-child(3) {
        width: 22% !important;
    }

    .table-view thead th:nth-child(4),
    .table-view tbody td:nth-child(4) {
        width: 20% !important;
    }

    .table-view thead th:nth-child(5),
    .table-view tbody td:nth-child(5) {
        width: 23% !important;
    }
}

/* Alpine.js loading states */
.alpine-loading {
    background: linear-gradient(90deg,
        rgba(147, 51, 234, 0.1) 0%,
        rgba(147, 51, 234, 0.2) 50%,
        rgba(147, 51, 234, 0.1) 100%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s ease-in-out infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced reward display for Alpine.js */
.reward-display[x-data] {
    position: relative;
    overflow: hidden;
}

.reward-display[x-data]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.reward-display[x-data]:hover::before {
    left: 100%;
}

/* Alpine.js transition helpers */
.alpine-fade-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.alpine-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

.alpine-scale-enter {
    opacity: 0;
    transform: scale(0.95);
}

.alpine-scale-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.2s ease-out;
}

/* Enhanced sync indicator with Alpine.js */
.sync-indicator[x-data] {
    position: relative;
    overflow: hidden;
}

.sync-indicator[x-data]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(147, 51, 234, 0.2) 50%,
        transparent 100%);
    animation: sync-pulse 3s ease-in-out infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Disable Alpine.js animations for reduced motion */
    [x-transition] {
        transition: none !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .players-table-container {
        border-color: rgba(147, 51, 234, 0.4);
    }

    .table-row {
        border-bottom-color: rgba(147, 51, 234, 0.3);
    }
}

/* Print styles */
@media print {
    .players-table-container {
        background: white;
        border: 1px solid #e5e7eb;
        box-shadow: none;
    }

    .table-header th {
        background: #f3f4f6;
        color: black;
    }

    .table-row {
        background: white;
        color: black;
    }

    .sync-indicator {
        display: none;
    }
}

/* =================================================================
   RANKINGS TABLE FIXED LAYOUT SYSTEM - CRITICAL OVERRIDES
   ================================================================= */

/* Table Structure Force Reset */
.rankings-table-fixed {
    width: 100% !important;
    table-layout: fixed !important;
    min-width: 500px !important;
    max-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    display: table !important;
}

/* Force Table Elements Display */
.rankings-table-fixed thead {
    display: table-header-group !important;
    width: 100% !important;
}

.rankings-table-fixed tbody {
    display: table-row-group !important;
    width: 100% !important;
}

.rankings-table-fixed tr {
    display: table-row !important;
    width: 100% !important;
}

.rankings-table-fixed th,
.rankings-table-fixed td {
    display: table-cell !important;
    vertical-align: middle !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Column Width Distribution - OPTIMIZED FOR SCREEN FIT */
.rank-col, .rank-cell {
    width: 10% !important;
    min-width: 60px !important;
    max-width: 10% !important;
}

.player-col, .player-cell {
    width: 30% !important;
    min-width: 120px !important;
    max-width: 30% !important;
}

.job-col, .job-cell {
    width: 15% !important;
    min-width: 80px !important;
    max-width: 15% !important;
}

.points-col, .points-cell {
    width: 20% !important;
    min-width: 80px !important;
    max-width: 20% !important;
}

.rewards-col, .rewards-cell {
    width: 25% !important;
    min-width: 120px !important;
    max-width: 25% !important;
}

/* Header Styling */
.rank-col, .player-col, .job-col, .points-col, .rewards-col {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: rgb(196, 181, 253) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2) !important;
}

.player-col {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.points-col, .rewards-col {
    text-align: center !important;
}

/* Cell Styling */
.rank-cell, .player-cell, .job-cell, .points-cell, .rewards-cell {
    padding: 0.75rem 0.5rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.player-cell {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.points-cell, .rewards-cell {
    text-align: center !important;
}

/* Special handling for rewards cell */
.rewards-cell {
    white-space: normal !important;
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: center !important;
    overflow: visible !important;
}

.rewards-cell > * {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.rewards-cell .reward-box {
    font-size: 0.6875rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 6px !important;
    min-height: auto !important;
    max-width: 100% !important;
}

.rewards-cell .reward-label {
    font-size: 0.5625rem !important;
    margin-bottom: 0.125rem !important;
}

.rewards-cell .reward-name {
    font-size: 0.625rem !important;
    line-height: 1.2 !important;
}

/* CRITICAL: Force rewards cell content to stay inside */
.rewards-cell {
    overflow: hidden !important;
    position: relative !important;
}

.rewards-cell .rewards-container {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Simple No Reward for Compact Mode */
.no-reward-simple {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    padding: 0.375rem 0.625rem !important;
    background: rgba(71, 85, 105, 0.12) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-radius: 8px !important;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    color: rgb(148, 163, 184) !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

/* Inline Rewards Layout for Table */
.rewards-inline .rewards-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    justify-content: center !important;
    align-items: center !important;
}

.rewards-inline .reward-box {
    font-size: 0.5rem !important;
    padding: 0.125rem 0.25rem !important;
    border-radius: 3px !important;
    min-height: auto !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    max-width: 60px !important;
    line-height: 1.2 !important;
}

.rewards-inline .reward-label {
    display: none !important; /* Hide labels in inline mode */
}

.rewards-inline .reward-name {
    font-size: 0.5rem !important;
    line-height: 1.1 !important;
    color: white !important; /* White text for better visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important; /* Shadow for contrast */
}

/* Force white text for all reward content in inline mode */
.rewards-inline .reward-content {
    color: white !important;
}

.rewards-inline .reward-content * {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.rewards-inline .no-reward-simple {
    font-size: 0.5rem !important;
    padding: 0.125rem 0.25rem !important;
    gap: 0.125rem !important;
    color: rgb(148, 163, 184) !important; /* Keep original color for no-reward */
}

.rewards-inline .no-reward-simple i {
    font-size: 0.4375rem !important;
    color: rgb(148, 163, 184) !important;
}

/* Enhanced text visibility for all reward types in inline mode */
.rewards-inline .reward-package .reward-name,
.rewards-inline .reward-skill .reward-name,
.rewards-inline .reward-item .reward-name,
.rewards-inline .reward-gold .reward-name,
.rewards-inline .reward-silk .reward-name,
.rewards-inline .reward-donate .reward-name {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* Ensure labels are also white when shown */
.rewards-inline .reward-label {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Override any inherited colors */
.rewards-inline .reward-box * {
    color: white !important;
}

.no-reward-simple i {
    font-size: 0.625rem !important;
    color: rgb(148, 163, 184) !important;
    opacity: 0.7 !important;
}

/* Ensure No Reward stays inside cell */
.rewards-cell .no-reward-modern {
    max-width: 95% !important;
    overflow: hidden !important;
}

.rewards-cell .no-reward-simple {
    max-width: 90% !important;
    font-size: 0.625rem !important;
    padding: 0.1875rem 0.375rem !important;
}

.rewards-cell .no-reward-simple i {
    font-size: 0.5625rem !important;
}

/* Anti-Flexbox Override */
.rankings-table-fixed * {
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
}

/* Anti-Grid Override */
.rankings-table-fixed,
.rankings-table-fixed * {
    grid-column: unset !important;
    grid-row: unset !important;
    grid-area: unset !important;
}

/* Simple No Reward Display */
.no-reward-display {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 50px !important;
    text-align: center !important;
}

.no-reward-text {
    color: rgb(156, 163, 175) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    background: linear-gradient(145deg,
        rgba(156, 163, 175, 0.08) 0%,
        rgba(107, 114, 128, 0.10) 35%,
        rgba(75, 85, 99, 0.06) 65%,
        rgba(156, 163, 175, 0.04) 100%) !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Mobile Reward Wrapper */
.mobile-reward-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 50px !important;
}

.mobile-reward-wrapper .rewards-container {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-reward-wrapper .rewards-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

.mobile-reward-wrapper .reward-box {
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 120px !important;
    max-width: 200px !important;
}

.mobile-no-reward {
    color: rgb(156, 163, 175) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    background: linear-gradient(145deg,
        rgba(156, 163, 175, 0.08) 0%,
        rgba(107, 114, 128, 0.10) 35%,
        rgba(75, 85, 99, 0.06) 65%,
        rgba(156, 163, 175, 0.04) 100%) !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* Modern No Reward Design */
.no-reward-modern {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    background: linear-gradient(135deg,
        rgba(71, 85, 105, 0.15) 0%,
        rgba(100, 116, 139, 0.12) 35%,
        rgba(148, 163, 184, 0.08) 65%,
        rgba(71, 85, 105, 0.10) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.15) !important;
    width: fit-content !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.no-reward-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(148, 163, 184, 0.05) 50%,
        transparent 100%);
    z-index: -1;
}

.no-reward-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
    border-color: rgba(148, 163, 184, 0.35);
}

.no-reward-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    background: linear-gradient(135deg,
        rgba(148, 163, 184, 0.2) 0%,
        rgba(100, 116, 139, 0.25) 100%) !important;
    border-radius: 50% !important;
    color: rgb(148, 163, 184) !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
}

.no-reward-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.no-reward-title {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: rgb(148, 163, 184) !important;
    margin-bottom: 0.125rem !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

.no-reward-subtitle {
    font-size: 0.625rem !important;
    font-weight: 400 !important;
    color: rgb(100, 116, 139) !important;
    opacity: 0.8 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* Compact Version */
.no-reward-compact {
    padding: 0.25rem 0.375rem !important;
    gap: 0.25rem !important;
    border-radius: 6px !important;
    max-width: 90% !important;
    font-size: 0.75rem !important;
}

.no-reward-compact .no-reward-icon {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 0.5rem !important;
}

.no-reward-compact .no-reward-title {
    font-size: 0.625rem !important;
    margin-bottom: 0 !important;
}

.no-reward-compact .no-reward-subtitle {
    font-size: 0.5rem !important;
}

/* Full Version */
.no-reward-full {
    padding: 0.625rem 1rem !important;
    gap: 0.75rem !important;
    border-radius: 12px !important;
}

.no-reward-full .no-reward-icon {
    width: 2rem !important;
    height: 2rem !important;
    font-size: 0.875rem !important;
}

.no-reward-full .no-reward-title {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
}

.no-reward-full .no-reward-subtitle {
    font-size: 0.75rem !important;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .no-reward-modern {
        flex-direction: column !important;
        gap: 0.25rem !important;
        padding: 0.5rem !important;
    }

    .no-reward-text {
        align-items: center !important;
        text-align: center !important;
    }

    .no-reward-compact {
        flex-direction: row !important;
        gap: 0.375rem !important;
    }
}
