
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


@media (max-width: 768px) {
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1s !important;
        animation-delay: 0s !important;
    }
    
    
    .recap-container,
    .leaderboard-table tbody tr,
    .leaderboard-table tbody tr:hover,
    .leaderboard-table tbody tr:hover .img-avatar {
        animation: none !important;
    }
    
    
    .header-logo,
    .img-avatar,
    .leaderboard-table tbody tr:hover .img-avatar {
        filter: none !important;
    }
    
   
    .leaderboard-button,
    .leaderboard-table tbody tr {
        transition: background-color 0.1s ease !important;
    }
    
   
    .leaderboard-button::before {
        display: none !important;
    }
}


body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #f5f5dc;
    color: #333333;
    line-height: 1.4;
    font-size: 14px;
}


.recap-container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #ffffff;
    border: 3px solid #000000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}


.recap-header {
    background-color: #f8f8f8;
    border-bottom: 2px solid #000000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.title-container h1 {
    font-size: 1.8em;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    width: auto;
    margin-left: 1px;
    vertical-align: top;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    transform: translateY(-12px);
}

.header-logo:hover {
    transform: scale(1.1);
}

.subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-style: italic;
    color: #8B4513;
    letter-spacing: 0.3px;
    opacity: 0.85;
    font-weight: 400;
    margin-top: 1px;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.1);
    line-height: 1.2;
}


.center-section {
    display: flex;
    justify-content: center;
}


.leaderboard-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5dc;
    color: #8B4513;
    text-decoration: none;
    border: 2px solid #8B4513;
    border-radius: 0;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.leaderboard-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(139, 69, 19, 0.1) 1px,
        rgba(139, 69, 19, 0.1) 2px
    );
    pointer-events: none;
}

.leaderboard-button:hover {
    background: #8B4513;
    color: #f5f5dc;
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 3px 6px rgba(0,0,0,0.3);
}

.leaderboard-button:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        0 1px 2px rgba(0,0,0,0.2);
}

.date {
    font-size: 0.9em;
    color: #666666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date i {
    color: #8b4513;
}


.table-section {
    border: 2px solid #000000;
    background-color: #ffffff;
    margin: 20px;
    display: flex;
    flex-direction: column;
}

.section-header {
    background-color: #f0f0f0;
    border-bottom: 1px solid #000000;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1em;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header i {
    color: #8b4513;
    font-size: 0.9em;
}


.table-container {
    overflow-x: auto;
    background-color: #ffffff;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: Georgia, 'Times New Roman', serif;
}

.leaderboard-table thead {
    background-color: #f8f8f8;
    border-bottom: 2px solid #000000;
}


.leaderboard-table th {
    background-color: #f8f8f8;
    border: 1px solid #000000;
    padding: 15px 12px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    color: #000000;
    text-align: center;        
    vertical-align: middle;
    position: relative;
    cursor: default;
    border-right: 1px solid #ddd;
}

.leaderboard-table th:last-child {
    border-right: none;
}

.leaderboard-table th.sortable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}


.leaderboard-table th.sortable-cell {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.leaderboard-table th.sortable-cell:hover {
    background-color: #e8e8e8;
}

.leaderboard-table th.sortable:hover {
    background-color: #f0f0f0;
    color: #8b4513;
}


.leaderboard-table th.sortable-cell i {
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.leaderboard-table th.sortable-cell:hover i {
    opacity: 1;
}


.leaderboard-table th.sortable i {
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.leaderboard-table th.sortable:hover i {
    opacity: 1;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: #f8f9fa;
}

.leaderboard-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.leaderboard-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}


.leaderboard-table td {
    padding: 12px 15px;
    border-right: 1px solid #f0f0f0;
    color: #333333;
    vertical-align: middle;
    font-size: 16px;
    font-weight: 600;
    text-align: center;        
}

.leaderboard-table td:last-child {
    border-right: none;
}


.leaderboard-table td.user-cell {
    text-align: left;         
    display: flex;
    align-items: center;
    gap: 12px;
}


.leaderboard-table td.sortable-cell {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.leaderboard-table td.sortable-cell:hover {
    background-color: #f8f8f8;
}


.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.img-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #333333;
    object-fit: cover;
    background-color: #f0f0f0;
}

.user-name {
    font-weight: 700;
    color: #000000;
    text-transform: capitalize;
}


.leaderboard-table td[data-label="Rank"] {
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    color: #000000;
}


.action-buttons {
    display: flex;
    align-items: center; 
    gap: 8px;
    justify-content: center;
}


.btn-review-me, .ethos-link, .twitter-link {
    padding: 6px 12px;
    border-radius: 0;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 32px;           
    font-family: 'Times New Roman', serif;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 1px 2px rgba(0,0,0,0.2);
    vertical-align: middle; 
    line-height: 1;         
}

.btn-review-me {
    background: #f5f5dc;
    border: 2px solid #8B4513;
    color: #8B4513;
    cursor: pointer;
}

.btn-review-me:hover {
    background: #8B4513;
    color: #f5f5dc;
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 2px 4px rgba(0,0,0,0.3);
}

.ethos-link {
    background: #f5f5dc;
    border: 2px solid #4A90E2;
    color: #4A90E2;
}

.ethos-link:hover {
    background: #4A90E2;
    color: #f5f5dc;
    transform: translateY(-1px);
}

.twitter-link {
    background: #f5f5dc;
    border: 2px solid #1DA1F2;
    color: #1DA1F2;
}

.twitter-link:hover {
    background: #1DA1F2;
    color: #f5f5dc;
    transform: translateY(-1px);
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border: 3px solid #000000;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    font-family: Georgia, 'Times New Roman', serif;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #000000;
    background-color: #f8f8f8;
}

.modal-header h2 {
    margin: 0;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    text-transform: l;
    letter-spacing: 1px;
}

.close-btn {
    background: #f5f5dc;
    border: 2px solid #8B4513;
    color: #8B4513;
    font-size: 16px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #8B4513;
    color: #f5f5dc;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.missing-reviews-list {
    margin-top: 15px;
}

.missing-review-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    transition: all 0.2s ease;
}

.missing-review-item:hover {
    background-color: #f0f0f0;
    border-color: #8B4513;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #333333;
    object-fit: cover;
    background-color: #f0f0f0;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-weight: 700;
    color: #000000;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-rank {
    font-size: 12px;
    color: #8b4513;
    font-weight: 600;
}

.user-actions {
    margin-left: 15px;
}

.btn-ethos {
    background: #f5f5dc;
    border: 2px solid #4A90E2;
    color: #4A90E2;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    font-family: 'Times New Roman', serif;
}

.btn-ethos:hover {
    background: #4A90E2;
    color: #f5f5dc;
}

.no-missing-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #8b4513;
    font-size: 16px;
    font-weight: 600;
}


@media (max-width: 768px) {
    .recap-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .title-container h1 {
        font-size: 1.5em;
    }
    
    .header-logo {
        height: 30px;
    }
    
    .table-section {
        margin: 15px;
    }
    
    .leaderboard-table {
        font-size: 12px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 10px;
    }
    
    .btn-review-me {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}


.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #999999;
    font-style: italic;
    text-align: center;
}



@media (max-width: 768px) {
    .recap-container {
        margin: 10px;
    }
    
    .recap-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .title-container h1 {
        font-size: 1.5em;
    }
    
    .header-logo {
        height: 30px;
    }
    
    .table-section {
        margin: 15px;
    }
    
 
    .table-container {
        overflow: visible;
    }
    
    .leaderboard-table {
        min-width: auto;
        width: 100%;
    }
    
    .leaderboard-table, 
    .leaderboard-table thead, 
    .leaderboard-table tbody, 
    .leaderboard-table th, 
    .leaderboard-table td, 
    .leaderboard-table tr {
        display: block;
    }
    
    .leaderboard-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .leaderboard-table tr {
        background: #ffffff;
        border: 2px solid #000000;
        margin: 16px 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .leaderboard-table td {
        border: none;
        position: relative;
        padding: 12px 0 12px 45%;
        text-align: left;
        display: flex;
        align-items: center;
        font-size: 14px;
    }
    
    .leaderboard-table td.user-cell {
        display: flex !important;
        align-items: center !important;
        gap: 8px;
        padding: 12px 0 12px 45%;
    }
    
    .leaderboard-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        width: 40%;
        text-align: left;
        font-weight: 700;
        color: #000000;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .leaderboard-table td.user-cell:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        width: 40%;
        text-align: left;
        font-weight: 700;
        color: #000000;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    
    .leaderboard-table td[data-label="Ethos"], 
    .leaderboard-table td[data-label="X Profile"], 
    .leaderboard-table td[data-label="Review Me Please"] {
        justify-content: flex-start;
    }
    
    .btn-review-me,
    .ethos-link,
    .twitter-link {
        min-width: 100px;
        height: 32px;
        font-size: 10px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .img-avatar {
        width: 32px;
        height: 32px;
    }
    
    
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .missing-review-item {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .missing-review-item .avatar-small {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .user-actions {
        margin-left: 0;
    }
    
    .btn-ethos {
        font-size: 10px;
        padding: 6px 12px;
    }
}



.recap-container {
    animation: gentleFlip 0.6s ease-out;
}

@keyframes gentleFlip {
    0% {
        transform: rotateY(30deg) translateX(20px);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg) translateX(0);
        opacity: 1;
    }
}


.leaderboard-button {
    transition: all 0.2s ease;
    position: relative;
}

.leaderboard-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.leaderboard-button:hover::before {
    transform: translateX(100%);
}

.leaderboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.leaderboard-button:active {
    transform: scale(0.95);
}


.recap-header {
    background-color: #f8f8f8;
    border-bottom: 2px solid #000000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.date-ranking-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    gap: 5px;
    min-width: 200px; 
}

.date {
    font-size: 0.9em;
    color: #666666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Georgia, 'Times New Roman', serif;
}

.date i {
    color: #8b4513;
}


.ranking-system-container {
    position: relative;
    display: inline-block;
    align-self: flex-end;
}

.ranking-system-text {
    font-size: 12px; 
    color: #666666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Georgia, 'Times New Roman', serif;
    white-space: nowrap; 
}

.ranking-system-text:hover {
    color: #8b4513;
    transform: translateY(-1px);
}

.ranking-system-text i {
    color: #8b4513;
    font-size: 0.8em;
}


.ranking-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 3px solid #000000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: Georgia, 'Times New Roman', serif;
    margin-top: 8px;
}

.ranking-system-container:hover .ranking-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.tooltip-header {
    background-color: #f8f8f8;
    border-bottom: 2px solid #000000;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tooltip-header i {
    color: #8b4513;
    font-size: 0.9em;
}


.tooltip-content {
    padding: 15px;
    background-color: #ffffff;
}

.tooltip-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85em;
    position: relative;
}

.tooltip-line:last-child {
    border-bottom: none;
}


.tooltip-line:first-child .points-value {
    color: #8b4513;
    font-weight: 900;
    position: relative;
}

.tooltip-line:first-child .points-value::after {
    margin-left: 5px;
    font-size: 0.8em;
}

.action-type {
    color: #333333;
    font-weight: 600;
    font-family: Georgia, 'Times New Roman', serif;
}

.points-value {
    color: #8b4513;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
}


.tooltip-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 10px 15px;
    text-align: center;
    font-size: 0.8em;
    color: #8b4513;
    font-style: italic;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tooltip-footer i {
    color: #8b4513;
    font-size: 0.8em;
}


.ranking-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #000000;
}

.ranking-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
}


@media (max-width: 768px) {
    .recap-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .date-ranking-container {
        align-items: center;
        gap: 8px;
        min-width: auto;
    }
    
    .ranking-system-container {
        align-self: center;
        position: relative;
    }
    
    .ranking-system-text {
        outline: none;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        display: inline-block;
    }
    
    
    .ranking-system-container.tooltip-active .ranking-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%);
    }
    
    
    .ranking-tooltip {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 320px !important;
        z-index: 9999 !important;
        margin-top: 8px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        border: 2px solid #8B4513 !important;
    }
    
    
    .ranking-tooltip::before,
    .ranking-tooltip::after {
        display: none !important;
    }
    
    
    .ranking-tooltip {
        transition: all 0.3s ease;
    }
    
    
    .ranking-tooltip {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .tooltip-header {
        font-size: 14px !important;
        padding: 12px !important;
    }
    
    .tooltip-content {
        padding: 10px 12px !important;
    }
    
    .tooltip-line {
        margin-bottom: 8px !important;
    }
    
    .tooltip-footer {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}



@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ranking-system-container:hover .ranking-tooltip {
    animation: tooltipFadeIn 0.3s ease-out;
}

.rank-gold {
    color: #FFD700 !important;
    font-weight: 900 !important;
}

.rank-silver {
    color: #C0C0C0 !important;
    font-weight: 900 !important;
}

.rank-bronze {
    color: #CD7F32 !important;
    font-weight: 900 !important;
}


@media (max-width: 768px) {
    .header-logo {
        height: 30px; 
        transform: translateY(-8px); 
    }
    
    .title-container h1 {
        font-size: 1.4em; 
        align-items: flex-start; 
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
   
    .header-logo {
        height: 25px;
        transform: translateY(-4px);
        margin-left: 0;
    }
}


@media (max-width: 768px) {
    
    .ranking-system-container {
        position: relative;
        cursor: pointer;
    }
    
    
    .ranking-system-container:active .ranking-tooltip,
    .ranking-system-container:focus .ranking-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
   
    .ranking-tooltip {
        position: fixed; 
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        width: 90vw;
        max-width: 320px;
        z-index: 9999;
    }
    
    
    .ranking-tooltip::before,
    .ranking-tooltip::after {
        display: none;
    }
}


.leaderboard-table tbody tr:hover {
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc6 50%, #f5f1e8 100%) !important;
    border: 1px solid #d4af37 !important;
    box-shadow: 
        0 4px 8px rgba(139, 69, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.3) !important;
    animation: vintage-highlight 3s ease-in-out infinite;
    transform: translateY(-1px) !important;
}

@keyframes vintage-highlight {
    0% { 
        background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc6 50%, #f5f1e8 100%);
        box-shadow: 
            0 4px 8px rgba(139, 69, 19, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(212, 175, 55, 0.3);
    }
    50% { 
        background: linear-gradient(135deg, #f0ead6 0%, #e0d4b7 50%, #f0ead6 100%);
        box-shadow: 
            0 6px 12px rgba(139, 69, 19, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 0 1px rgba(212, 175, 55, 0.5);
    }
    100% { 
        background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc6 50%, #f5f1e8 100%);
        box-shadow: 
            0 4px 8px rgba(139, 69, 19, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 1px rgba(212, 175, 55, 0.3);
    }
}


.leaderboard-table tbody tr:hover .img-avatar {
    animation: vintage-avatar 2s ease-in-out infinite;
    border: 2px solid #d4af37 !important;
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.2),
        0 2px 4px rgba(139, 69, 19, 0.3) !important;
    filter: sepia(0.2) contrast(1.1) brightness(1.05) !important;
}

@keyframes vintage-avatar {
    0% { 
        transform: scale(1);
        box-shadow: 
            0 0 0 3px rgba(212, 175, 55, 0.2),
            0 2px 4px rgba(139, 69, 19, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 0 4px rgba(212, 175, 55, 0.3),
            0 4px 8px rgba(139, 69, 19, 0.4);
    }
    100% { 
        transform: scale(1);
        box-shadow: 
            0 0 0 3px rgba(212, 175, 55, 0.2),
            0 2px 4px rgba(139, 69, 19, 0.3);
    }
}


.leaderboard-table tbody tr:hover .user-name {
    color: #8b4513 !important;
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3) !important;
    font-weight: bold !important;
}


.leaderboard-table tbody tr:hover .btn-review-me,
.leaderboard-table tbody tr:hover .ethos-link,
.leaderboard-table tbody tr:hover .twitter-link {
    border-color: #d4af37 !important;
    color: #8b4513 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    text-shadow: 0.5px 0.5px 1px rgba(212, 175, 55, 0.2) !important;
}


.leaderboard-table tbody tr:hover td[data-label="Rank"] {
    color: #8b4513 !important;
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3) !important;
    font-weight: 900 !important;
}


.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.search-container {
    position: relative;
}

.search-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5dc;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 0;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.search-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(139, 69, 19, 0.1) 1px,
        rgba(139, 69, 19, 0.1) 2px
    );
    pointer-events: none;
}

.search-input-wrapper:focus-within {
    background: #8B4513;
    color: #f5f5dc;
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 3px 6px rgba(0,0,0,0.3);
}

.search-icon {
    color: inherit;
    font-size: 12px;
    z-index: 1;
}

.search-input {
    background: transparent;
    border: none;
    color: inherit;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    outline: none;
    flex: 1;
    z-index: 1;
   
    line-height: 1.2;
    height: 20px; 
}


.search-input::placeholder {
    color: inherit;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-input-wrapper:focus-within .search-input::placeholder {
    color: #f5f5dc;
}

.clear-search-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px;
    border-radius: 0;
    transition: all 0.2s ease;
    z-index: 1;
    font-size: 12px;
}

.clear-search-btn:hover {
    background: rgba(139, 69, 19, 0.2);
}

.search-input-wrapper:focus-within .clear-search-btn:hover {
    background: rgba(245, 245, 220, 0.2);
}


.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f5f5dc;
    border: 2px solid #8B4513;
    border-top: none;
    border-radius: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    color: #8B4513;
    font-family: 'Times New Roman', serif;
}

.search-result-item:hover {
    background: rgba(139, 69, 19, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #8B4513;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    color: #8B4513;
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 14px;
}

.search-result-rank {
    color: #8B4513;
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .search-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5dc;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 0;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    
    height: 44px; 
    min-width: 200px; 
    box-sizing: border-box;
}

}


.table-row-highlight {
    background-color: rgba(139, 69, 19, 0.1) !important;
    border: 2px solid #8B4513 !important;
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { background-color: rgba(139, 69, 19, 0.1); }
    50% { background-color: rgba(139, 69, 19, 0.2); }
}
