/* ========================================
   REGISTER PAGE STYLES
   ======================================== */

/* Custom Body Scrollbar - Global */
html,
body {
    scrollbar-width: thin !important;
    scrollbar-color: #fbbf24 #f8fafc !important;
}

/* Webkit browsers (Chrome, Safari, Edge) - Body Scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f8fafc !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #fbbf24 !important;
    border-radius: 4px !important;
    transition: background 0.3s ease !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #f97316 !important;
}

/* Standardized Font Sizes for Register Page */
/* Labels: 14px (text-sm) */
/* Inputs/Selects/Placeholders: 16px (text-base) */

/* Ensure all input placeholders use consistent font size */
input::placeholder,
select::placeholder,
textarea::placeholder {
    font-size: 16px !important;
    color: #9ca3af;
}

/* Ensure all inputs and selects have consistent font size */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    font-size: 16px !important;
}

/* Custom select dropdown arrow (exclude Select2 country dropdown) */
select.form-input:not(#country) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5c6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}
select.form-input:not(#country)::-ms-expand {
    display: none;
}

/* Select2 Styling to match Tailwind */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid rgb(203 213 225) !important;
    border-radius: 4px !important;
    background-color: rgb(248 250 252) !important;
    min-height: 56px !important;
    padding: 12px 20px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: rgb(15 23 42) !important;
    font-size: 16px !important;
    line-height: 32px !important;
    padding-left: 0 !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: rgb(251 191 36) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1) !important;
}

/* Select2 Error State */
.select2-container--bootstrap-5.select2-container--error .select2-selection {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.select2-dropdown {
    border: 2px solid rgb(203 213 225) !important;
    border-radius: 4px !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid rgb(203 213 225) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
    font-size: 16px !important;
    color: #9ca3af;
}

/* Custom Scrollbar for Select2 Dropdown */
.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.select2-results__option {
    font-size: 16px !important;
    padding: 8px 12px !important;
}

.select2-results__option--highlighted {
    background-color: rgb(251 191 36) !important;
    color: rgb(15 23 42) !important;
}

/* ========================================
   NAVIGATION STYLES (Global)
   ======================================== */
/* Mobile menu button hamburger animation */
#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   REGISTER BUTTON ANIMATION
   ======================================== */
.register-button {
    position: relative;
    overflow: hidden !important;
}

.register-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.register-button:hover::before {
    left: 100%;
}

.register-button span {
    position: relative;
    z-index: 2;
    display: block;
}

/* ========================================
   FOOTER STYLES (Global)
   ======================================== */
/* Footer is now styled with Tailwind CSS - keeping this section for any additional custom styles if needed */

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */
/* Login Button Animation */
.login-button {
    position: relative;
    overflow: hidden !important;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.login-button:hover::before {
    left: 100%;
}

.login-button span {
    position: relative;
    z-index: 2;
    display: block;
}

/* Back Button Animation (How to Play Page) */
.back-button {
    position: relative;
    overflow: hidden !important;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.back-button:hover::before {
    left: 100%;
}

.back-button span {
    position: relative;
    z-index: 2;
    display: block;
}

/* How to Play Page - List Bullets with Right Arrow */
.howtoplay-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.howtoplay-list li {
    display: flex !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.howtoplay-list li::before {
    content: '→' !important;
    color: #4a5c6e !important;
    font-weight: bold !important;
    margin-right: 0.5rem !important;
    margin-top: 0.125rem !important;
    flex-shrink: 0 !important;
}

/* Settings Page Button Animation */
.settings-button {
    position: relative;
    overflow: hidden !important;
}

.settings-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.settings-button:hover::before {
    left: 100%;
}

.settings-button span {
    position: relative;
    z-index: 2;
    display: block;
}

/* CAPTCHA Styles */
.captcha-container {
    background: #f8fafc;
    border: 2px solid rgb(203 213 225);
    border-radius: 8px;
    padding: 15px;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgb(203 213 225);
}

.captcha-math {
    font-size: 24px;
    font-weight: 700;
    color: rgb(15 23 42);
    font-family: 'Courier New', monospace;
    text-align: center;
    flex: 1;
    margin-right: 10px;
    padding: 10px;
    background: rgb(255 251 235);
    border-radius: 4px;
    border: 2px solid rgb(251 191 36);
}

.refresh-captcha {
    background: #fbbf24;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgb(15 23 42);
}

.refresh-captcha:hover {
    background: #f97316;
    transform: scale(1.05);
}

.captcha-input {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.captcha-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.captcha-input.valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.captcha-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Loading state */
.captcha-loading {
    opacity: 0.6;
    pointer-events: none;
}

.captcha-loading .refresh-captcha {
    animation: spin 1s linear infinite;
}

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

/* Honeypot field */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-modal-slide {
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal Message Styles */
.email-modal-message,
.password-reset-message {
    padding: 15px;
    font-weight: 600;
}

.email-modal-message.success,
.password-reset-message.success {
    background: #10b981;
    color: white;
}

.email-modal-message.error,
.password-reset-message.error {
    background: #ef4444;
    color: white;
}

/* Toastr Custom Styling (Optional - to match our design) */
#toast-container {
    top: 100px !important;
    right: 20px !important;
}

#toast-container > div {
    border-radius: 4px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    font-size: 16px !important;
    padding: 16px 20px !important;
    min-width: 380px !important;
    max-width: 450px !important;
    color: #1e293b !important;
}

#toast-container > .toast-success {
    background-color: #10b981 !important;
    border-left: 4px solid #059669 !important;
    color: white !important;
}

#toast-container > .toast-error {
    background-color: #ef4444 !important;
    border-left: 4px solid #dc2626 !important;
    color: white !important;
}

#toast-container > .toast-info {
    background-color: #3b82f6 !important;
    border-left: 4px solid #2563eb !important;
    color: white !important;
}

#toast-container > .toast-warning {
    background-color: #f59e0b !important;
    border-left: 4px solid #d97706 !important;
    color: white !important;
}

/* Toastr Close Button Styling */
#toast-container .toast-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-shadow: none !important;
    opacity: 1 !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}

#toast-container .toast-close-button:hover {
    color: white !important;
    opacity: 1 !important;
}

#toast-container .toast-close-button:focus {
    outline: none !important;
}

/* Toastr Message Text Styling */
#toast-container .toast-message {
    color: white !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding-right: 25px !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Toastr Icon Styling - Fix spacing and prevent overlap */
/* Toastr uses :before pseudo-element for icons - this is the key! */
#toast-container > .toast-success:before,
#toast-container > .toast-error:before,
#toast-container > .toast-info:before,
#toast-container > .toast-warning:before {
    margin-right: 15px !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    float: left !important;
    font-size: 24px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure proper spacing for toast content */
#toast-container > div {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Message text spacing - add padding-left to push text away from icon */
#toast-container .toast-message {
    margin-left: 0 !important;
    margin-right: 30px !important;
    padding-left: 35px !important;
    padding-right: 25px !important;
    display: block !important;
    word-wrap: break-word !important;
}

/* Button Loader Styles */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    z-index: 10;
}

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

.button-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.button-loading .btn-loader {
    z-index: 10;
    position: relative;
}

/* Modal Button Shimmer Effect */
.modal-submit-btn,
.modal-cancel-btn {
    position: relative;
    overflow: hidden !important;
}

.modal-submit-btn::before,
.modal-cancel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.modal-submit-btn:hover::before,
.modal-cancel-btn:hover::before {
    left: 100%;
}

.modal-submit-btn span,
.modal-cancel-btn span {
    position: relative;
    z-index: 2;
    display: block;
}

/* Navigation Button Shimmer Effect */
.nav-register-btn {
    position: relative;
    overflow: hidden !important;
}

.nav-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-register-btn:hover::before {
    left: 100%;
}

.nav-register-btn span {
    position: relative;
    z-index: 2;
}

.nav-login-btn {
    position: relative;
    overflow: hidden !important;
}

.nav-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(251, 191, 36, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-login-btn:hover::before {
    left: 100%;
}

/* Profile Icon Button - Match Register Button Design */
.nav-profile-btn {
    position: relative;
    overflow: hidden !important;
}

.nav-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-profile-btn:hover::before {
    left: 100%;
}

.nav-profile-btn .shimmer-text {
    position: relative;
    z-index: 2;
}

/* Profile Dropdown Items - Text Color Only, Background on Hover */
.profile-dropdown-item {
    color: #1e293b;
    background: transparent;
}

.profile-dropdown-item:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.profile-dropdown-item:last-child {
    color: #dc2626;
}

.profile-dropdown-item:last-child:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* ========================================
   ADD MORE PAGE STYLES BELOW
   ======================================== */

/* ========================================
   CONTESTS PAGE STYLES
   ======================================== */

/* Filter Controls */
.filter-controls {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(120,180,255,0.1);
    position: relative;
    z-index: 40; /* Lower than navigation (z-50) */
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-controls:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 30px rgba(251,191,36,0.2), 0 0 0 1px rgba(251,191,36,0.1);
    transform: translateY(-2px);
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.filter-input {
    padding: 14px 15px;
    border: 2px solid rgba(120,180,255,0.2);
    border-radius: 4px;
    font-size: 14px;
    background: linear-gradient(135deg, #f7faff 0%, #e0eafc 100%);
    transition: all 0.3s ease;
    color: #4a5c6e;
    min-height: 52px;
    height: 52px;
    box-sizing: border-box;
    line-height: 1.5;
    overflow: visible;
}

.filter-input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.filter-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}

/* Select dropdown specific styling */
.filter-input select,
select.filter-input {
    background: linear-gradient(135deg, #f7faff 0%, #e0eafc 100%);
    color: #4a5c6e;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5c6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 45px;
    padding-left: 15px;
    min-width: 180px;
    width: auto;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-input select option,
select.filter-input option {
    background: linear-gradient(135deg, #f7faff 0%, #e0eafc 100%);
    color: #4a5c6e;
    padding: 12px 15px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
    overflow: visible;
}

.filter-input select option:hover,
select.filter-input option:hover {
    background: linear-gradient(135deg, #e0eafc 0%, #d1e7ff 100%);
    color: #2c3e50;
}

.filter-input select option:checked,
select.filter-input option:checked {
    background: linear-gradient(135deg, #eebbc3 0%, #f7b7a3 100%);
    color: #232946;
    font-weight: 600;
}

.filter-input select:hover,
select.filter-input:hover {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251,191,36,0.1);
}

.filter-input select:focus,
select.filter-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}

.filter-btn {
    padding: 14px 20px;
    background: #fbbf24;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 52px;
    box-sizing: border-box;
    height: 52px;
    white-space: nowrap;
    line-height: 1.5;
    flex-shrink: 0;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: #f97316;
    box-shadow: 0 10px 40px rgba(251,191,36,0.3);
}

.filter-btn:active {
    opacity: 0.9;
}

.filter-btn span {
    position: relative;
    z-index: 2;
}

/* Contests Grid */
.contests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch;
    justify-content: start;
}

.contest-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgb(203 213 225);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contest-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contest-title {
    font-size: 18px;
    font-weight: bold;
    color: #232946;
    margin: 0;
    line-height: 1.3;
}

.contest-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.contest-status.status-upcoming,
.status-upcoming {
    background: rgba(255,214,160,0.2);
    color: #8b5a2b;
}

.contest-status.status-active,
.status-active {
    background: rgba(184,224,210,0.2);
    color: #2d5a4a;
}

.contest-status.status-ended,
.status-ended {
    background: rgba(255,214,160,0.2);
    color: #cc0000;
}

.status-draft {
    background: rgba(120,180,255,0.2);
    color: #4a5c6e;
}

.contest-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Contest card details - ensure grid layout for contests page */
.contests-grid .contest-card .contest-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    flex: 1;
}

/* Keep the old rule for backward compatibility but lower specificity */
.contest-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    flex: 1;
}

.detail-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    gap: 4px;
    padding: 2px 0;
}

.detail-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
}

.detail-value {
    font-size: 13px;
    color: #1e293b;
    width: 100%;
    max-width: 100%;
    font-weight: 600;
    line-height: 1.5;
    word-break: normal;
    white-space: normal;
}

.contest-participants-section {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contest-participants-section .detail-label,
.contest-participants-section .contest-detail-label {
    margin-bottom: 4px;
}

.contest-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.contest-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.contest-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contest-btn:hover::before {
    left: 100%;
}

.contest-btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: #fbbf24;
    color: #ffffff;
    font-weight: 700;
}

.btn-primary:hover {
    background: #f59e0b;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-primary:active {
    opacity: 0.9;
}

.btn-secondary {
    background: #6b7280;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: #4b5563;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.btn-secondary:active {
    opacity: 0.9;
}

.btn-danger {
    background: rgba(255,0,0,0.1);
    color: #cc0000;
}

.btn-danger:hover {
    background: rgba(255,0,0,0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 15px;
    background: rgba(120,180,255,0.1);
    border-radius: 4px;
    text-decoration: none;
    color: #232946;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(120,180,255,0.2);
}

.page-link.active {
    background: #fbbf24;
    color: #232946;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #232946;
}

/* Progress Bar Styles */
.participants-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.progress-bar {
    width: 100%;
    max-width: 100%;
    height: 20px;
    background: rgba(251,191,36,0.15);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid rgba(251,191,36,0.3);
}

.progress-bar.progress-full {
    background: rgba(184,224,210,0.2);
    border: 1px solid rgba(184,224,210,0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ea580c 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(251,191,36,0.4);
}

.progress-fill.progress-fill-full {
    background: linear-gradient(135deg, #2d5a4a 0%, #2d5a4a 100%);
    border-radius: 4px;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 1.5s ease-in-out infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    border-radius: 4px;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(251,191,36,0.3) 0%, transparent 70%);
    opacity: 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

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

.progress-text {
    font-size: 12px;
    color: #232946;
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
    background: rgba(120,180,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(120,180,255,0.2);
}

.progress-text.progress-text-full {
    color: #2d5a4a;
    background: rgba(184,224,210,0.1);
    border: 1px solid rgba(184,224,210,0.2);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #232946;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.progress-fill.progress-fill-full .progress-percentage {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Nearly full contests (80%+) */
.progress-fill.progress-nearly-full {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #fbbf24 100%);
    animation: pulse-progress 2s ease-in-out infinite;
}

@keyframes pulse-progress {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Prizes display */
.prizes-display {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.total-prize-pool {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.prize-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Old prize-item style - kept for backward compatibility with prize breakdown sections */
.prizes-section .prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #232946;
}

.prize-rank {
    font-weight: bold;
    color: #232946;
    font-size: 12px;
}

.prize-amount {
    font-weight: bold;
    color: #232946;
    font-size: 12px;
}

/* Countdown Timer Styles */
.countdown-timer {
    display: inline-block;
    font-size: 12px;
    color: #dc2626;
    font-weight: bold;
    margin-top: 4px;
    animation: pulse-countdown 2s infinite;
}

.countdown-timer.urgent {
    color: #dc2626;
    animation: urgent-pulse 1s infinite;
}

.countdown-value {
    font-weight: bold;
    color: #dc2626;
}

.countdown-timer.urgent .countdown-value {
    color: #dc2626;
}

.end-countdown-timer {
    display: inline-block;
    font-size: 13px;
    color: #dc2626;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.5;
    /* Removed blinking/pulse animation - just dynamic countdown */
}

.end-countdown-timer .countdown-value {
    color: #dc2626;
    font-weight: 700;
    font-size: 13px;
    /* Smooth transition for number changes */
    transition: none;
}

.end-countdown-timer.urgent {
    color: #dc2626;
    /* Removed blinking animation even for urgent */
}

.end-countdown-timer.urgent .countdown-value {
    color: #dc2626;
    font-weight: 700;
}

@keyframes pulse-countdown {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes urgent-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-left: 4px solid #fbbf24;
    max-width: 450px;
    min-width: 380px;
    pointer-events: auto;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon {
    font-size: 20px;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: normal;
}

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

.toast-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.4;
}

.toast-message {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.error {
    border-left-color: #ef4444;
}

/* Mobile Responsive Styles for Toast */
@media (max-width: 640px) {
    .toast {
        min-width: auto;
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        margin: 0 auto 10px;
    }
    
    .toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

/* Mobile Responsive Styles for Contests */
@media (max-width: 1024px) {
    .contests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .filter-controls {
        padding: 15px;
        margin-bottom: 20px;
        width: 100%;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .filter-input,
    .filter-btn {
        width: 100%;
        padding: 16px 15px;
        font-size: 16px;
        min-height: 52px;
        box-sizing: border-box;
    }
    
    /* Fix select dropdown text on mobile */
    .filter-input select,
    select.filter-input {
        width: 100% !important;
        min-width: 100% !important;
        min-height: 56px !important;
        height: 56px !important;
        padding-right: 45px !important;
        padding-left: 15px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        box-sizing: border-box !important;
    }

    .contests-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contest-card {
        padding: 18px;
    }

    .contest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contest-title {
        font-size: 20px;
    }

    .contest-status {
        align-self: flex-start;
    }

    .contest-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .contests-grid .contest-card .contest-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .contest-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .detail-item {
        padding: 8px 12px;
    }

    .detail-label {
        font-size: 11px;
    }

    .detail-value {
        font-size: 13px;
    }

    .contest-actions {
        flex-direction: column;
        gap: 10px;
    }

    .contest-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }

    .end-countdown-timer {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contest-card {
        padding: 16px;
    }

    .contest-title {
        font-size: 18px;
    }

    .contest-description {
        font-size: 13px;
    }

    .detail-item {
        padding: 6px 10px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 12px;
    }

    .contest-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .filter-btn:hover {
        transform: none;
    }
}

/* ========================================
   CONTEST DETAILS PAGE STYLES
   ======================================== */

.page-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #232946;
    margin-bottom: 10px;
}

.contest-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contest-info-card {
    background: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: none;
    border: 2px solid rgb(203 213 225);
    transition: all 0.3s ease;
}

.contest-info-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.action-card {
    background: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: none;
    height: fit-content;
    border: 2px solid rgb(203 213 225);
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.contest-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}

.detail-value {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.5;
    word-break: normal;
    white-space: normal;
}

.contest-header-details {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.contest-header-details .contest-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.contest-header-details .contest-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Prize Item Highlighting */
.prize-item {
    border-radius: 6px;
    padding: 8px 12px;
    margin: 2px 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.prize-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease;
    z-index: 1;
}

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

.prize-item .detail-label,
.prize-item .contest-detail-label,
.prize-item .detail-value,
.prize-item .contest-detail-value {
    position: relative;
    z-index: 2;
}

.prize-item.prize-rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 223, 0, 0.1) 100%);
    border-left: 3px solid #ffd700;
}

.prize-item.prize-rank-1 .detail-label,
.prize-item.prize-rank-1 .contest-detail-label {
    color: #b8860b;
    font-weight: 700;
}

.prize-item.prize-rank-1 .detail-value,
.prize-item.prize-rank-1 .contest-detail-value {
    color: #8b6914;
    font-weight: 700;
}

.prize-item.prize-rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(211, 211, 211, 0.1) 100%);
    border-left: 3px solid #c0c0c0;
}

.prize-item.prize-rank-2 .detail-label,
.prize-item.prize-rank-2 .contest-detail-label {
    color: #808080;
    font-weight: 700;
}

.prize-item.prize-rank-2 .detail-value,
.prize-item.prize-rank-2 .contest-detail-value {
    color: #696969;
    font-weight: 700;
}

.prize-item.prize-rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-left: 3px solid #cd7f32;
}

.prize-item.prize-rank-3 .detail-label,
.prize-item.prize-rank-3 .contest-detail-label {
    color: #8b4513;
    font-weight: 700;
}

.prize-item.prize-rank-3 .detail-value,
.prize-item.prize-rank-3 .contest-detail-value {
    color: #654321;
    font-weight: 700;
}

.contest-title {
    font-size: 22px;
    font-weight: bold;
    color: #232946;
    margin-bottom: 15px;
}

.contest-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.contest-rules {
    background: rgba(251,191,36,0.1);
    padding: 20px;
    border-radius: 4px;
    margin-top: 25px;
    border: 2px solid rgba(251,191,36,0.2);
    position: relative;
    overflow: hidden;
}

.contest-rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(251, 191, 36, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 0;
    transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contest-rules:hover::before {
    left: 100%;
}

.contest-rules > * {
    position: relative;
    z-index: 1;
}

.rules-title {
    font-weight: bold;
    color: #232946;
    margin-bottom: 0;
    margin-top: 0;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    display: block;
    padding: 8px 0 2px 0;
}

.rules-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(251, 191, 36, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.rules-title:hover::before {
    left: 100%;
}

.rules-title span {
    position: relative;
    z-index: 2;
}

.rules-content {
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
    margin-top: 0;
    padding-top: 0;
}

.action-title {
    font-size: 18px;
    font-weight: bold;
    color: #232946;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn span {
    position: relative;
    z-index: 2;
}

.action-btn.btn-primary {
    background: #fbbf24;
    color: #ffffff;
}

.action-btn.btn-primary:hover {
    background: #f97316;
    box-shadow: 0 10px 40px rgba(251,191,36,0.3);
}

.action-btn.btn-primary:active {
    opacity: 0.9;
}

.action-btn.btn-secondary {
    background: rgba(251,191,36,0.2);
    color: #232946;
}

.action-btn.btn-secondary:hover {
    background: rgba(251,191,36,0.3);
}

.action-btn.btn-danger {
    background: rgba(255,0,0,0.1);
    color: #cc0000;
}

.action-btn.btn-danger:hover {
    background: rgba(255,0,0,0.2);
}

.action-btn.btn-disabled {
    background: rgba(200,200,200,0.2);
    color: #999;
    cursor: not-allowed;
}

.action-btn.btn-disabled:hover {
    background: rgba(200,200,200,0.2);
    transform: none;
    box-shadow: none;
}

.action-btn.btn-disabled::before {
    display: none;
}

.action-btn.btn-already-played {
    background: rgba(255,107,107,0.2);
    color: #cc0000;
    cursor: not-allowed;
}

.action-btn.btn-already-played:hover {
    background: rgba(255,107,107,0.2);
    transform: none;
    box-shadow: none;
}

.action-btn.btn-already-played::before {
    display: none;
}

#countdown-timer {
    font-weight: bold;
    color: #ff6b6b;
    animation: pulse-countdown 2s infinite;
}

@keyframes pulse-countdown {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* End Countdown Timer Styles */
.end-countdown-timer {
    display: inline-block;
    font-size: 12px;
    color: #dc2626;
    font-weight: bold;
    margin-top: 4px;
    /* Removed blinking animation - just dynamic countdown */
}

.end-countdown-timer.urgent {
    color: #dc2626;
    /* Removed blinking animation even for urgent */
}

.end-countdown-timer.urgent .countdown-value {
    color: #dc2626;
}

@keyframes urgent-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.reloading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 4px;
    z-index: 9999;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message.success {
    background: rgba(0, 255, 0, 0.1);
    color: #006600;
    border-left: 4px solid #006600;
}

.message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #cc0000;
    border-left: 4px solid #cc0000;
}

/* Contest Details Page Prizes Section */
.contest-details-page .prizes-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contest-details-page .total-prize-pool {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    background: #fbbf24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.contest-details-page .total-prize-pool::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contest-details-page .total-prize-pool:hover::before {
    left: 100%;
}

.contest-details-page .total-prize-pool span {
    position: relative;
    z-index: 2;
}

.contest-details-page .prize-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contest-details-page .prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(251,191,36,0.1);
    border-radius: 4px;
    border: 2px solid rgba(251,191,36,0.2);
}

.contest-details-page .prize-rank {
    font-weight: bold;
    color: #232946;
    font-size: 14px;
}

.contest-details-page .prize-amount {
    font-weight: bold;
    color: #232946;
    font-size: 14px;
}

/* Rank Icon Styles */
.rank-icon {
    display: inline-block;
    font-size: 20px;
    text-align: center;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    animation: rank-glow 2s ease-in-out infinite;
}

.rank-1-crown {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: crown-sparkle 3s ease-in-out infinite;
}

.rank-2-cup {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
    animation: cup-shine 2.5s ease-in-out infinite;
}

.rank-3-cup {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
    animation: cup-shine 2s ease-in-out infinite;
}

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

@keyframes cup-shine {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

/* Custom Confirmation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.confirmation-modal {
    max-width: 450px;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(251,191,36,0.2);
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #232946;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(251,191,36,0.1);
    color: #232946;
}

.confirmation-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.confirmation-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.confirmation-message {
    font-size: 16px;
    color: #232946;
    line-height: 1.5;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid rgba(251,191,36,0.2);
}

/* Equal width buttons on mobile */
@media screen and (max-width: 768px) {
    .confirmation-actions {
        flex-wrap: nowrap;
        justify-content: stretch;
    }
    
    .confirmation-actions .btn-danger,
    .confirmation-actions .btn-secondary,
    .confirmation-actions button {
        flex: 1 1 50% !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box;
    }
}

.confirmation-modal .btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.confirmation-modal .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.confirmation-modal .btn-danger:hover::before {
    left: 100%;
}

.confirmation-modal .btn-danger:hover {
    box-shadow: 0 10px 40px rgba(255,107,107,0.3);
}

.confirmation-modal .btn-danger span {
    position: relative;
    z-index: 2;
}

.confirmation-modal .btn-secondary {
    background: rgba(251,191,36,0.2);
    color: #232946;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.confirmation-modal .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.confirmation-modal .btn-secondary:hover::before {
    left: 100%;
}

.confirmation-modal .btn-secondary:hover {
    background: rgba(251,191,36,0.3);
}

.confirmation-modal .btn-secondary span {
    position: relative;
    z-index: 2;
}

/* Confirmation Types */
.confirmation-delete .confirmation-icon {
    color: #ff6b6b;
}

.confirmation-warning .confirmation-icon {
    color: #ffa726;
}

.confirmation-info .confirmation-icon {
    color: #78b8e8;
}

/* Responsive Styles for Contest Details */
@media (max-width: 1024px) {
    .contest-details-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contest-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .contest-details-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contest-details-grid {
        grid-template-columns: 1fr;
    }
    
    .contest-info-card,
    .action-card {
        padding: 25px;
    }
    
    .action-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: none;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .contest-info-card,
    .action-card {
        padding: 20px;
    }
    
    .action-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* ========================================
   LEADER BOARD PAGE STYLES
   ======================================== */

.leaderboard-main {
    margin-top: 112px;
    width: 100%;
    max-width: 1400px;
    display: flex;
    gap: 32px;
    padding: 0 24px;
}

.sidebar {
    width: 280px;
    background: #fff;
    border-radius: 4px;
    box-shadow: none;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 104px;
    border: 2px solid rgb(203 213 225);
    transition: all 0.3s ease;
}

.sidebar:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #232946;
    margin-bottom: 20px;
    text-align: center;
}

.time-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-btn {
    padding: 12px 16px;
    background: #f7faff;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #4a5c6e;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.filter-btn:hover {
    background: #e0eafc;
    border-color: #fbbf24;
}

.filter-btn.active {
    background: #232946;
    color: #fbbf24;
    border-color: #fbbf24;
}

.mode-filter {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.filter-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #232946;
    margin-bottom: 12px;
    text-align: center;
}

.mode-filter-btn {
    margin-bottom: 8px;
}

.champions-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.champions-title {
    font-size: 18px;
    font-weight: bold;
    color: #232946;
    margin-bottom: 16px;
    text-align: center;
}

.champion-card {
    background: #fbbf24;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(251,191,36,0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.champion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

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

.champion-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251,191,36,0.4);
    transform: translateY(-2px);
}

.champion-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.champion-name:hover {
    background: rgba(255, 255, 255, 0.15);
}

.champion-name::after {
    content: '👁️ View';
    font-size: 11px;
    opacity: 1;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    position: static;
    transform: none;
}

.champion-name:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

.champion-score {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.champion-mode {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-top: 4px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.leaderboard-container {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    box-shadow: none;
    padding: 32px;
    border: 2px solid rgb(203 213 225);
    transition: all 0.3s ease;
    position: relative;
    z-index: 0;
    overflow: visible;
}

/* Ensure header doesn't clip dropdowns */
.leaderboard-header {
    overflow: visible;
    position: relative;
}

.leaderboard-container:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Ensure table wrapper doesn't create new stacking context that clips dropdowns */
.leaderboard-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-top: 16px;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
    position: relative;
    z-index: 1;
}

.leaderboard-title {
    font-size: 22px;
    font-weight: bold;
    color: #232946;
    letter-spacing: 1px;
}

.period-indicator {
    background: #fbbf24;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Leaderboard Type Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.leaderboard-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    position: relative;
}

.leaderboard-tab:hover {
    color: #232946;
    background: rgba(251, 191, 36, 0.1);
}

.leaderboard-tab.active {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
    background: transparent;
}

/* Leaderboard Header Section - Separated from table */
.leaderboard-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    z-index: 100;
}

/* Filter Controls Layout - Leaderboard page specific */
.leaderboard-page .filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 100;
}

/* Filter Dropdown Styles */
.filter-dropdown {
    position: relative;
    display: inline-block;
    z-index: 100;
}

/* Dropdown wrapper - positioned outside table context */
.filter-dropdowns-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1000;
}

/* Hide checkbox */
.filter-dropdown-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Pure CSS Dropdown - Show on checkbox checked (click) */
.filter-dropdown-toggle:checked ~ .filter-dropdown-header .filter-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown content visibility - controlled by JavaScript */
.filter-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-dropdown-header {
    background: #fbbf24;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(251,191,36,0.2);
    position: relative;
    min-height: 52px;
    box-sizing: border-box;
    overflow: hidden;
}

.filter-dropdown-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.filter-dropdown-header:hover::before {
    left: 100%;
}

.filter-dropdown-header span {
    position: relative;
    z-index: 2;
}

.filter-dropdown-header:hover {
    background: #f97316;
    box-shadow: 0 6px 20px rgba(251,191,36,0.25);
}

.filter-dropdown-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.filter-dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.filter-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(35,41,70,0.15);
    border: 2px solid #fbbf24;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    z-index: 99999;
    min-width: 280px;
    pointer-events: none;
}

.filter-section {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(251,191,36,0.2);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #4a5c6e;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: #4a5c6e;
    background: rgba(251,191,36,0.1);
    border: 2px solid transparent;
}

.filter-option:hover {
    background: rgba(251,191,36,0.2);
    border-color: #fbbf24;
}

.filter-option.active {
    background: #fbbf24;
    color: #ffffff;
    border-color: #f97316;
}

.leaderboard-table-wrapper::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(120,180,255,0.07);
    table-layout: fixed;
    position: relative;
    z-index: 1;
}


.leaderboard-table thead {
    background: #fbbf24;
    width: 100%;
    position: relative;
    z-index: 1;
}

.leaderboard-table thead tr {
    display: table-row;
    width: 100%;
}

.leaderboard-table tbody {
    background: #fff;
    width: 100%;
}

.leaderboard-table th {
    background: #fbbf24;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.leaderboard-table th.action-cell {
    text-align: right;
}

.leaderboard-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.leaderboard-table th:hover::before {
    left: 100%;
}

.leaderboard-table th > * {
    position: relative;
    z-index: 2;
}

.leaderboard-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    position: relative;
    background-color: transparent;
    overflow: visible;
}

.leaderboard-table td.action-cell {
    padding-right: 12px;
    overflow: visible;
    text-align: right;
}

.leaderboard-table tr:hover {
    background: #f7faff;
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.clickable-row:hover {
    background: rgba(251,191,36,0.1) !important;
    box-shadow: 0 1px 4px rgba(251,191,36,0.15);
}

.action-cell {
    text-align: right;
    padding: 16px 12px;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

.leaderboard-table th.action-cell {
    text-align: right;
    padding: 14px 12px;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

.view-button {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
    color: #f97316;
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.clickable-row:hover .view-button {
    opacity: 1;
    background: rgba(251, 191, 36, 0.25);
}

.clickable-row td {
    position: relative;
    z-index: 1;
}

.clickable-row:active {
    background: rgba(251,191,36,0.15) !important;
}

.rank-cell {
    width: 80px;
    text-align: center;
    font-weight: bold;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.rank-other { color: #4a5c6e; }

.name-cell {
    font-weight: 500;
    color: #232946;
}

.score-cell {
    font-weight: bold;
    color: #f97316;
}

.winrate-cell {
    color: #4a5c6e;
}

.date-cell {
    color: #666;
    font-size: 14px;
    width: auto;
}

.mode-cell {
    color: #4a5c6e;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    width: auto;
}

.stats-row {
    background: #f7faff !important;
    font-weight: 500;
}

.stats-label {
    color: #4a5c6e;
    font-size: 14px;
}

.privacy-notice {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(251,191,36,0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #4a5c6e;
    border: 2px solid rgba(251,191,36,0.2);
}

/* Modal Styles for Leader Board */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border-radius: 4px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #fbbf24;
    position: relative;
    animation: modal-slide-in 0.2s ease;
}

/* Withdrawal Modal Specific Styles */
.withdrawal-modal {
    max-width: 500px;
    width: 90%;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    background: #ffffff !important;
    border: 2px solid #fbbf24;
    border-radius: 4px;
}

.withdrawal-modal .modal-body {
    padding: 30px;
    overflow-y: auto;
    background: #ffffff !important;
    color: #1f2937;
}

.withdrawal-modal .modal-header {
    background: #ffffff !important;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
}

.withdrawal-modal .modal-header .modal-title {
    color: #1f2937 !important;
}

.withdrawal-modal .form-group {
    margin-bottom: 20px;
}

.withdrawal-info-text {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.withdrawal-info-text strong {
    color: #fbbf24;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 2px solid rgba(251, 191, 36, 0.2);
    background: #ffffff !important;
}

/* Equal width buttons on mobile */
@media screen and (max-width: 768px) {
    .modal-actions {
        flex-wrap: nowrap;
        justify-content: stretch;
    }
    
    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        flex: 1 1 50% !important;
        min-width: 0 !important;
        max-width: 50% !important;
        box-sizing: border-box;
    }
}

.withdrawal-modal .modal-actions {
    background: #ffffff !important;
}

/* Withdrawal Modal Buttons - Matching Login Page */
.withdrawal-modal .btn-primary,
.modal-actions .btn-primary {
    background: #fbbf24;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.withdrawal-modal .btn-primary:hover,
.modal-actions .btn-primary:hover {
    background: #f59e0b;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.withdrawal-modal .btn-primary:active,
.modal-actions .btn-primary:active {
    opacity: 0.9;
}

.withdrawal-modal .btn-primary::before,
.modal-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.withdrawal-modal .btn-primary:hover::before,
.modal-actions .btn-primary:hover::before {
    left: 100%;
}

.withdrawal-modal .btn-primary .shimmer-text,
.modal-actions .btn-primary .shimmer-text {
    position: relative;
    z-index: 2;
}

.withdrawal-modal .btn-secondary,
.modal-actions .btn-secondary {
    background: #6b7280;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.withdrawal-modal .btn-secondary:hover,
.modal-actions .btn-secondary:hover {
    background: #4b5563;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.withdrawal-modal .btn-secondary::before,
.modal-actions .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.withdrawal-modal .btn-secondary:hover::before,
.modal-actions .btn-secondary:hover::before {
    left: 100%;
}

.withdrawal-modal .btn-secondary .shimmer-text,
.modal-actions .btn-secondary .shimmer-text {
    position: relative;
    z-index: 2;
}

.form-help-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.form-help-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.user-details-modal {
    max-width: 1200px;
    width: 95%;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.user-details-modal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 30px;
    padding-top: 20px;
}

/* Custom thin scrollbar for modal body */
.user-details-modal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
}

.user-details-modal .modal-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.user-details-modal .modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.user-details-modal .modal-body::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.user-details-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(251,191,36,0.3);
    position: sticky;
    top: 0;
    background: #ffffff !important;
    z-index: 5;
    flex-shrink: 0;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding-right: 50px; /* Add padding to prevent overlap with close button */
}

.modal-join-date {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-left: auto;
    margin-right: 10px; /* Add spacing from close button */
}

.withdrawal-modal .modal-title {
    color: #1f2937 !important;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #4a5c6e;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(251,191,36,0.2);
    color: #232946;
}

.user-avatar-large {
    display: none;
}

.user-info-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    border: 1px solid rgba(251,191,36,0.2);
}

.info-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #fbbf24;
    border-radius: 0;
    color: #ffffff;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    color: #4a5c6e;
    min-width: 80px;
    text-transform: uppercase;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    color: #232946;
    flex: 1;
}

.stats-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 20px;
    margin-top: 20px;
}

.stats-title {
    font-size: 16px;
    font-weight: 700;
    color: #232946;
    margin-bottom: 15px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.stat-card {
    background: #fbbf24;
    border-radius: 0;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(251,191,36,0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

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

.stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.contest-history {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(251,191,36,0.2);
}

.contest-history-title {
    font-size: 16px;
    font-weight: 700;
    color: #232946;
    margin-bottom: 16px;
    text-align: left;
    letter-spacing: 0.3px;
}

.contest-list {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contest-entry {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(251,191,36,0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    gap: 14px;
}

.contest-entry:last-child {
    margin-bottom: 0;
}

.contest-entry:hover {
    background: #fffef7;
    border-color: rgba(251,191,36,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.contest-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.contest-name {
    font-weight: 700;
    color: #232946;
    font-size: 15px;
    line-height: 1.3;
    word-wrap: break-word;
}

.contest-date {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contest-result {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(251,191,36,0.1);
}

.contest-score-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.contest-score-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contest-score {
    font-weight: 700;
    color: #f97316;
    font-size: 16px;
    line-height: 1.2;
}

.contest-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.status-won {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.status-lost {
    background: rgba(244, 67, 54, 0.2);
    color: #c62828;
}

.status-active {
    background: rgba(33, 150, 243, 0.2);
    color: #1565c0;
}

.no-contests {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive Styles for Leader Board */
@media (max-width: 1200px) {
    .leaderboard-main {
        flex-direction: column;
        gap: 24px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 800px) {
    .leaderboard-main {
        margin-top: 102px;
    }
    
    .leaderboard-container {
        padding: 20px 16px;
    }
    
    .leaderboard-table th, .leaderboard-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    /* Mobile: Stack header section vertically */
    .leaderboard-header-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    /* Mobile: Center the title */
    .leaderboard-title {
        font-size: 20px;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Mobile: Full-width filter controls */
    .filter-controls {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    /* Mobile: Ensure proper spacing between filter dropdowns */
    .filter-controls .filter-dropdown {
        margin-bottom: 0;
        margin-top: 0;
    }
    
    /* Mobile: Remove any negative margins that might cause overlap */
    .filter-controls .filter-dropdown-header {
        margin: 0;
    }
    
    /* Mobile: Full-width filter dropdowns */
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-dropdown-header {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 52px;
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-dropdown-content {
        min-width: 250px;
        right: 0;
        left: 0;
        width: 100%;
    }
    
    .filter-section {
        padding: 12px 16px;
    }
    
    .filter-option {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    @media (max-width: 600px) {
        .modal-content {
            padding: 20px;
            margin: 20px;
        }
        
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .contest-entry {
            padding: 14px;
            gap: 12px;
        }
        
        .contest-name {
            font-size: 14px;
        }
        
        .contest-score {
            font-size: 15px;
        }
        
        .contest-result {
            padding-top: 6px;
        }

        .contest-list {
            max-height: 150px;
        }
    }
}

@media (max-width: 768px) {
    .leaderboard-main {
        margin-top: 102px;
        padding: 0 16px;
    }
    
    .leaderboard-container {
        padding: 20px;
    }
    
    /* Mobile: Stack tabs vertically */
    .leaderboard-tabs {
        flex-direction: column;
        gap: 8px;
        border-bottom: none;
        margin-bottom: 20px;
    }
    
    .leaderboard-tab {
        width: 100%;
        text-align: center;
        border-bottom: 3px solid transparent;
        border-left: 3px solid transparent;
        margin-bottom: 0;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .leaderboard-tab.active {
        border-left-color: #fbbf24;
        border-bottom-color: transparent;
    }
    
    /* Mobile: Stack header section vertically */
    .leaderboard-header-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    /* Mobile: Center the title */
    .leaderboard-title {
        font-size: 20px;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Mobile: Full-width filter controls */
    .filter-controls {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }
    
    /* Mobile: Ensure proper spacing between filter dropdowns */
    .filter-controls .filter-dropdown {
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .filter-controls .filter-dropdown:not(:last-child) {
        margin-bottom: 0;
    }
    
    /* Mobile: Remove any negative margins that might cause overlap */
    .filter-controls .filter-dropdown-header {
        margin: 0;
    }
    
    /* Mobile: Full-width filter dropdowns */
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-dropdown-header {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-dropdown-content {
        right: 0;
        left: 0;
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
        position: static;
    }
    
    .leaderboard-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .leaderboard-table {
        min-width: 800px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
/* ========================================
   HOME PAGE STYLES (index.php)
   ======================================== */

/* Restart Button - Design Principles Applied */
.restart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fbbf24;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #232946;
    position: relative;
    overflow: hidden;
}

.restart-btn:hover {
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    background: #f97316;
}

.restart-btn .shimmer-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.restart-btn:hover::before {
    left: 100%;
}

.restart-icon {
    color: #232946;
    font-size: 14px;
    font-weight: 600;
}

.restart-text {
    color: #232946;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Popup Buttons - Design Principles Applied */
.popup-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.popup-btn.primary {
    background: #fbbf24;
    color: #232946;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.popup-btn.primary:hover {
    background: #f97316;
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.popup-btn.secondary {
    background: #6b7280;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.popup-btn.secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.4);
}

.popup-btn .shimmer-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-btn:hover::before {
    left: 100%;
}

.popup-btn .btn-icon,
.popup-btn .btn-text {
    position: relative;
    z-index: 2;
}

/* Dropdown Headers - Design Principles Applied */
.game-mode-dropdown-header,
.time-dropdown-header {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fbbf24;
    color: #232946;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    min-height: 48px;
}

.game-mode-dropdown-header:hover,
.time-dropdown-header:hover {
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    background: #f97316;
}

.game-mode-dropdown-header .shimmer-text,
.time-dropdown-header .shimmer-text {
    position: relative;
    z-index: 2;
}

.game-mode-dropdown-header::before,
.time-dropdown-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-mode-dropdown-header:hover::before,
.time-dropdown-header:hover::before {
    left: 100%;
}

.game-mode-dropdown-arrow,
.time-dropdown-arrow {
    font-size: 14px;
    color: #232946;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.game-mode-dropdown-header:hover .game-mode-dropdown-arrow,
.time-dropdown-header:hover .time-dropdown-arrow {
    transform: scale(1.1);
}

    .rank-cell {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .leaderboard-main {
        margin-top: 92px;
        padding: 0 12px;
    }
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-container {
    max-width: 90%;
    width: 90%;
    margin: 60px auto 40px;
    padding: 20px 40px;
    box-sizing: border-box;
}

.profile-header {
    background: #ffffff;
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: none;
    border: 2px solid rgb(203 213 225);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.profile-header:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}


.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex: 1;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    font-weight: 700;
}

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

.profile-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.profile-avatar:hover::before {
    left: 100%;
}

.profile-details h1 {
    color: #4a5c6e;
    margin: 0 0 10px 0;
    font-size: 32px;
}

.profile-details p {
    color: #6b7c8e;
    margin: 5px 0;
    font-size: 16px;
}

.wallet-edit-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    opacity: 0.7;
}

.wallet-edit-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.profile-actions {
    margin-top: 0;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.profile-actions-desktop {
    display: flex;
}

.profile-actions-mobile {
    display: none;
    width: 100%;
    margin-bottom: 30px;
}

.settings-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbbf24;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.settings-link:hover {
    background: #f59e0b;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.settings-link:active {
    opacity: 0.9;
}

.settings-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.settings-link:hover::before {
    left: 100%;
}

.settings-link .shimmer-text {
    position: relative;
    z-index: 2;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border: 2px solid rgb(203 213 225);
    transition: all 0.3s ease;
    box-shadow: none;
}

.stat-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 5px;
}

.stat-label {
    color: #6b7c8e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contest-points-card {
    position: relative;
    background: #fbbf24;
    border: 2px solid #fbbf24;
    overflow: hidden;
}

.contest-points-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contest-points-card:hover::before {
    left: 100%;
}

.contest-points-card .stat-number {
    color: #ffffff;
    position: relative;
    z-index: 2;
    margin-bottom: 5px;
}

.contest-points-card .stat-label {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.withdraw-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.withdraw-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.withdraw-btn:active {
    opacity: 0.9;
}

.withdraw-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.withdraw-btn:hover::before {
    left: 100%;
}

.withdraw-btn .shimmer-text {
    position: relative;
    z-index: 2;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-sections-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile-section {
    background: #ffffff;
    border-radius: 4px;
    padding: 0;
    box-shadow: none;
    border: 2px solid rgb(203 213 225);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.profile-section:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #4a5c6e;
    font-size: 20px;
    font-weight: bold;
    padding: 20px 30px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    font-size: 16px;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #fbbf24;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.form-input[readonly] {
    background: #f8f9fa;
    color: #475569;
    cursor: not-allowed;
    border-color: #cbd5e1;
}

.form-help {
    font-size: 12px;
    color: #6b7c8e;
    margin-top: 5px;
    font-style: italic;
}

.form-help a {
    color: #fbbf24;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: #fbbf24;
    color: #232946;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 30px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(251,191,36,0.2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #f97316;
    border-color: #f97316;
    box-shadow: 0 4px 16px rgba(251,191,36,0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn .shimmer-text {
    position: relative;
    z-index: 2;
}

.game-history-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-history {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
}

.game-history::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.game-history::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.game-history::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.game-history::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.game-history > p {
    padding: 40px 30px;
    text-align: center;
    color: #6b7c8e;
    font-style: italic;
    margin: 0;
}

.game-item {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.game-item:hover {
    background: #f9fafb;
}


.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.game-mode {
    background: #fbbf24;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-date {
    color: #6b7c8e;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.8);
    padding: 6px 12px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.game-stat {
    text-align: center;
    background: rgba(255,255,255,0.8);
    padding: 12px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251,191,36,0.2);
}

.game-stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #4a5c6e;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.game-stat-label {
    font-size: 11px;
    color: #6b7c8e;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}



.success-message {
    background: linear-gradient(135deg, #a8e6cf 0%, #8fd3b6 100%);
    color: #2d5a3d;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-messages {
    background: linear-gradient(135deg, #ff8b94 0%, #ff6b6b 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-messages ul {
    margin: 0;
    padding-left: 20px;
}

.error-messages li {
    margin-bottom: 5px;
}

.error-messages li:last-child {
    margin-bottom: 0;
}

/* Contest Styles */
.contest-history-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contest-history {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
}

.contest-history::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.contest-history::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.contest-history::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.contest-history::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.contest-history > p {
    padding: 40px 30px;
    text-align: center;
    color: #6b7c8e;
    font-style: italic;
    margin: 0;
}

.browse-contests-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.browse-contests-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.contest-item {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.contest-item:hover {
    background: #f9fafb;
}

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

.contest-title {
    font-size: 16px;
    font-weight: bold;
    color: #4a5c6e;
    margin: 0;
}

.contest-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-upcoming {
    background: rgba(255,214,160,0.2);
    color: #8b5a2b;
}

.status-active {
    background: rgba(184,224,210,0.2);
    color: #2d5a4a;
}

.status-ended {
    background: rgba(255,214,160,0.2);
    color: #cc0000;
}

.status-draft {
    background: rgba(120,180,255,0.2);
    color: #4a5c6e;
}

.contest-description {
    color: #6b7c8e;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contest-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.contest-stats {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    padding: 12px 15px;
    background: #fbbf24;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.contest-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contest-stats:hover::before {
    left: 100%;
}

.contest-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.contest-stat .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
}

.contest-stat .stat-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.3;
}

.game-mode-section {
    margin-top: 15px;
    width: 100%;
}

.game-mode-section:first-child {
    margin-top: 0;
}

.game-mode-header {
    margin-bottom: 10px;
}

.game-mode-header h4 {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 2px solid #fbbf24;
}

.contest-result {
    background: #fbbf24;
    padding: 15px;
    border-radius: 4px;
    width: 100%;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contest-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contest-result:hover::before {
    left: 100%;
}

.contest-result h4 {
    color: #ffffff;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-stats {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.result-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.result-stat .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.result-stat .stat-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.3;
}

/* Withdrawal History Styles */
.withdrawal-history-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.withdrawal-history {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
}

.withdrawal-history::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.withdrawal-history::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.withdrawal-history::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.withdrawal-history::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.withdrawal-history > p {
    padding: 40px 30px;
    text-align: center;
    color: #6b7c8e;
    font-style: italic;
    margin: 0;
}

.withdrawal-item {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    transition: all 0.3s ease;
}

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

.withdrawal-item:hover {
    background: #f9fafb;
}

.withdrawal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.withdrawal-info h4 {
    color: #4a5c6e;
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.withdrawal-info p {
    color: #6b7c8e;
    margin: 0;
    font-size: 14px;
}

.withdrawal-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pending {
    background: rgba(255,214,160,0.2);
    color: #8b5a2b;
}

.status-approved {
    background: rgba(184,224,210,0.2);
    color: #2d5a4a;
}

.status-rejected {
    background: rgba(255,214,160,0.2);
    color: #cc0000;
}

.status-completed {
    background: rgba(120,180,255,0.2);
    color: #4a5c6e;
}

.withdrawal-details {
    color: #6b7c8e;
    font-size: 13px;
}

.withdrawal-date {
    margin-bottom: 5px;
}

.withdrawal-notes {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(249,115,22,0.15) 100%);
    border-radius: 4px;
    border-left: 4px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251,191,36,0.2);
    position: relative;
    overflow: hidden;
}

.withdrawal-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251,191,36,0.05) 0%, rgba(249,115,22,0.05) 100%);
    pointer-events: none;
}

/* Points History Styles - Similar to withdrawal history */
.points-history-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.points-history {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #f8fafc;
}

.points-history::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.points-history::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.points-history::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.points-history::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.points-history > p {
    padding: 40px 30px;
    text-align: center;
    color: #6b7c8e;
    font-style: italic;
    margin: 0;
}

.points-item {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    transition: all 0.3s ease;
}

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

.points-item:hover {
    background: #f9fafb;
}

.points-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.points-info h4 {
    color: #4a5c6e;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
}

.points-info p {
    color: #6b7c8e;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.points-date {
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
    padding: 15px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(249,115,22,0.15) 100%);
    border-radius: 4px;
    border-left: 4px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251,191,36,0.2);
    position: relative;
    overflow: hidden;
}

.withdrawal-notes::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(251,191,36,0.2) 0%, rgba(249,115,22,0.2) 100%);
    border-radius: 0 12px 0 40px;
}

.withdrawal-notes strong {
    color: #4a5c6e;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.withdrawal-notes p {
    color: #6b7c8e;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}



@media (max-width: 768px) {
    .profile-container {
        margin-top: 80px;
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .profile-header-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 20px;
    }
    
    .profile-info {
        flex-direction: row;
        text-align: left;
        width: 100%;
        align-items: flex-start;
    }
    
    .profile-actions-desktop {
        display: none;
    }
    
    .profile-actions-mobile {
        display: flex;
        width: 100%;
        margin-top: 0;
        margin-bottom: 20px;
        justify-content: flex-start;
    }
    
    .settings-link {
        width: 100%;
        justify-content: center;
    }
    
    .profile-sections-row {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .profile-section {
        width: 100%;
        max-width: 100%;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
        max-width: 100%;
    }
    
    .contest-stats {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .contest-stat {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .result-stats {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .result-stat {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .contest-item {
        width: 100%;
        max-width: 100%;
    }
    
    .contest-details {
        width: 100%;
    }
    
    .contest-result {
        width: 100%;
    }

    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

                 .game-item {
         padding: 15px;
     }

     .game-header {
         flex-direction: column;
         gap: 10px;
         align-items: flex-start;
     }
}
