@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
    
    :root {
        --primary: #10b981;
        --primary-dark: #059669;
        --primary-light: #d1fae5;
        --premium: #f59e0b;
        --premium-dark: #d97706;
        --premium-light: #fef3c7;
        --holding: #6366f1;
        --holding-dark: #4f46e5;
        --holding-light: #e0e7ff;
        --activities: #ef4444;
        --activities-dark: #dc2626;
        --activities-light: #fee2e2;
    }
    
    body {
        font-family: 'Inter', sans-serif;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.3s ease;
    }

    /* Light mode */
    .light-mode {
        background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf9 50%, #f0fdf4 100%);
        color: #111827;
    }

    /* Dark mode */
    .dark-mode {
        background: linear-gradient(135deg, #022b1c 0%, #161d28 50%, #334c55 100%);
        color: #f8fafc;
    }

    .light-mode .light-mode-logo {
        display: block;
    }
    .light-mode .dark-mode-logo {
        display: none;
    }
    .dark-mode .light-mode-logo {
        display: none;
    }
    .dark-mode .dark-mode-logo {
        display: block;
    }
    
    /* Ensure text colors work in dark mode */
    .dark-mode .text-gray-900 {
    color: #f9fafb !important;
    }

    .dark-mode .text-gray-700 {
    color: #d1d5db !important;
    }

    .dark-mode .text-gray-600 {
    color: #9ca3af !important;
    }

    .dark-mode .text-gray-500 {
    color: #6b7280 !important;
    }

    /* Loading spinner dark mode */
    .dark-mode #loadingSpinner {
    background-color: #112725 !important;
    }

    .glass-card {
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .light-mode .glass-card {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .dark-mode .glass-card {
        background: rgba(30, 59, 57, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .task-card {
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .task-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .completed-task {
        border: 1px solid;
    }

    .light-mode .completed-task {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(209, 250, 229, 0.2));
        border-color: rgba(16, 185, 129, 0.3);
    }

    .dark-mode .completed-task {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(209, 250, 229, 0.1));
        border-color: rgba(16, 185, 129, 0.4);
    }
    
    .pending-task {
        border: 1px solid;
    }

    .light-mode .pending-task {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(229, 231, 235, 0.5);
    }

    .dark-mode .pending-task {
        background: rgb(30 50 59 / 80%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .high-value-task {
        border: 1px solid;
    }

    .light-mode .high-value-task {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(253, 230, 138, 0.2));
        border-color: rgba(245, 158, 11, 0.3);
    }

    .dark-mode .high-value-task {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(253, 230, 138, 0.1));
        border-color: rgba(245, 158, 11, 0.4);
    }
    
    .high-value-completed {
        border: 1px solid;
    }

    .light-mode .high-value-completed {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(253, 230, 138, 0.25));
        border-color: rgba(245, 158, 11, 0.4);
    }

    .dark-mode .high-value-completed {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(253, 230, 138, 0.15));
        border-color: rgba(245, 158, 11, 0.5);
    }
    
    .holding-task {
        border: 1px solid;
    }

    .light-mode .holding-task {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(199, 210, 254, 0.2));
        border-color: rgba(99, 102, 241, 0.3);
    }

    .dark-mode .holding-task {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(199, 210, 254, 0.1));
        border-color: rgba(99, 102, 241, 0.4);
    }
    
    .holding-completed {
        border: 1px solid;
    }

    .light-mode .holding-completed {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(199, 210, 254, 0.25));
        border-color: rgba(99, 102, 241, 0.4);
    }

    .dark-mode .holding-completed {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(199, 210, 254, 0.15));
        border-color: rgba(99, 102, 241, 0.5);
    }
    
    .activities-task {
        border: 1px solid;
    }

    .light-mode .activities-task {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(254, 202, 202, 0.2));
        border-color: rgba(239, 68, 68, 0.3);
    }

    .dark-mode .activities-task {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(254, 202, 202, 0.1));
        border-color: rgba(239, 68, 68, 0.4);
    }
    
    .activities-completed {
        border: 1px solid;
    }

    .light-mode .activities-completed {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(254, 202, 202, 0.25));
        border-color: rgba(239, 68, 68, 0.4);
    }

    .dark-mode .activities-completed {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(254, 202, 202, 0.15));
        border-color: rgba(239, 68, 68, 0.5);
    }
    
    .premium-badge {
        background: linear-gradient(135deg, var(--premium), var(--premium-dark));
    }
    
    .holding-badge {
        background: linear-gradient(135deg, var(--holding), var(--holding-dark));
    }
    
    .activities-badge {
        background: linear-gradient(135deg, var(--activities), var(--activities-dark));
    }
    
    .tab-active {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    }
    
    .tab-inactive {
        transition: all 0.2s ease;
    }

    .light-mode .tab-inactive {
        background: rgba(255, 255, 255, 0.7);
        color: #375051;
        border: 1px solid rgba(229, 231, 235, 0.5);
    }

    .dark-mode .tab-inactive {
        background: rgb(30 55 59 / 70%);
        color: #cbd5e1;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .time-bonus {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
    }

    .tab-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        backdrop-filter: blur(4px);
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        animation: fadeIn 0.4s ease-in-out;
        border: 1px solid;
        transition: all 0.3s ease;
    }

    .light-mode .tab-header {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .dark-mode .tab-header {
        background: rgb(30 55 59 / 70%);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .tab-header-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }

    .tab-header-progress {
        width: 40px;
        height: 40px;
        position: relative;
    }

    .tab-header-progress svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .tab-header-progress circle {
        fill: none;
        stroke-width: 4;
    }

    .light-mode .tab-header-progress .progress-bg {
        stroke: rgba(209, 213, 219, 0.5);
    }

    .dark-mode .tab-header-progress .progress-bg {
        stroke: rgba(100, 116, 139, 0.5);
    }

    .tab-header-progress .progress-fill {
        transition: stroke-dasharray 0.6s ease-in-out;
    }

    .tab-header-progress span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.5rem;
        font-weight: 600;
    }

    .light-mode .tab-header-progress span {
        color: #111827;
    }

    .dark-mode .tab-header-progress span {
        color: #f8fafc;
    }

    .task-claim-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .task-claim-button:not(:disabled) {
        animation: pulse 1.5s infinite;
    }

    .task-claim-button:hover:not(:disabled) {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .geny-unit-card {
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        transition: all 0.3s ease;
    }

    .light-mode .geny-unit-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        color: #375051;
    }

    .dark-mode .geny-unit-card {
        background: #334155;
        border: 1px solid #475569;
        color: #cbd5e1;
    }

    .geny-subunit-table {
        width: 100%;
        border-collapse: collapse;
    }

    .geny-subunit-table th {
        font-weight: 600;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        text-align: left;
    }

    .light-mode .geny-subunit-table th {
        background: #f3f4f6;
        color: #375051;
    }

    .dark-mode .geny-subunit-table th {
        background: #475569;
        color: #e2e8f0;
    }

    .geny-subunit-table td {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid;
        line-height: 1.5;
    }

    .light-mode .geny-subunit-table td {
        color: #375051;
        border-color: #e5e7eb;
    }

    .dark-mode .geny-subunit-table td {
        color: #cbd5e1;
        border-color: #475569;
    }

    .geny-subunit-table tr:last-child td {
        border-bottom: none;
    }

    .close-button {
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 0.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        width: 100%;
        margin-top: 1rem;
        transition: all 0.2s ease;
    }

    .close-button:hover {
        background: var(--primary-dark);
        transform: scale(1.02);
    }

    .phase-progress-bar {
        width: 100%;
        border-radius: 0.5rem;
        height: 0.5rem;
        margin-top: 0.5rem;
    }

    .light-mode .phase-progress-bar {
        background: #e5e7eb;
    }

    .dark-mode .phase-progress-bar {
        background: #475569;
    }

    .phase-progress-fill {
        background: var(--primary);
        height: 100%;
        border-radius: 0.5rem;
        transition: width 0.6s ease-in-out;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

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

    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.03); }
        100% { transform: scale(1); }
    }

    .search-container {
        position: relative;
        margin-bottom: 1rem;
    }

    .search-input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border-radius: 0.75rem;
        backdrop-filter: blur(4px);
        font-size: 0.875rem;
        transition: all 0.2s ease;
        border: 1px solid;
    }

    .light-mode .search-input {
        background: rgba(255, 255, 255, 0.7);
        border-color: #e5e7eb;
        color: #375051;
    }

    .dark-mode .search-input {
        background: rgb(14 25 27 / 70%);
        border-color: #475569;
        color: #cbd5e1;
    }

    .light-mode .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

    .dark-mode .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    .search-icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        z-index:1;
    }

    .light-mode .search-icon {
        color: #467d68;
    }

    .dark-mode .search-icon {
        color: #2a755c;
    }

    .filter-container {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .filter-button {
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.75rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid;
    }

    .light-mode .filter-button {
        background: rgba(255, 255, 255, 0.7);
        border-color: #e5e7eb;
        color: #375051;
    }

    .dark-mode .filter-button {
        background: rgb(30 55 59 / 70%);
        border-color: #475569;
        color: #cbd5e1;
    }

    .filter-button.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .empty-state {
        text-align: center;
        padding: 2rem 1rem;
        transition: all 0.3s ease;
    }

    .light-mode .empty-state {
        color: #375051;
    }

    .dark-mode .empty-state {
        color: #cbd5e1;
    }

    .empty-state i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .light-mode .empty-state i {
        color: #d1d5db;
    }

    .dark-mode .empty-state i {
        color: #475569;
    }

    /* Add to your existing CSS */
    .dev-task {
        border-color: #8b5cf6;
        background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    }

    .dark-mode .dev-task {
        background: linear-gradient(135deg, #1e1b2e 0%, #2d2640 100%);
    }

    .dev-badge {
        background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    }

    .dev-task .task-points {
        color: #7c3aed;
    }

    .dark-mode .dev-task .task-points {
        color: #a78bfa;
    }

    .leaderboard-badge {
        position: absolute;
        top: -0.5rem;
        right: -0.5rem;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
        border-radius: 50%;
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .notification {
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(-100%);
        padding: 0.75rem 1.5rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: transform 0.3s ease;
        margin: 0 auto;
        width: fit-content;
        min-width: min-content;
        max-width: calc(100% - 2rem);
    }

    .light-mode .notification {
        background: white;
        color: 1f3337;
    }

    .dark-mode .notification {
        background: #334155;
        color: #f1f5f9;
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification.success {
        border-left: 4px solid var(--primary);
    }

    .notification.error {
        border-left: 4px solid var(--activities);
    }

    .notification.info {
        border-left: 4px solid var(--holding);
    }

    @media (min-width: 768px) {
        .notification {
            left: 50%;
            right: auto;
            transform: translateX(-50%) translateY(-100%);
            min-width: 200px;
            max-width: 500px;
        }
        
        .notification.show {
            transform: translateX(-50%) translateY(0);
        }
    }

    .skeleton-loader {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 0.5rem;
    }

    .dark-mode .skeleton-loader {
        background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    }

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

    @media (min-width: 640px) {
        .modal-content {
            border-radius: 0.75rem;
            padding: 1.5rem;
            width: 90%;
            max-width: 500px;
            align-items: center;
        }

        .tab-header {
            padding: 0.75rem 1rem;
        }

        .tab-header-info {
            gap: 0.75rem;
        }

        .tab-header-progress {
            width: 48px;
            height: 48px;
        }

        .tab-header-progress span {
            font-size: 0.5rem;
        }

        .task-claim-button {
            padding: 0.5rem 1.25rem;
            font-size: 1rem;
        }

        .geny-unit-card {
            padding: 1rem;
        }

        .geny-subunit-table th,
        .geny-subunit-table td {
            padding: 0.75rem 1rem;
        }
    }

    .task-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .task-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .task-icon {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .task-title {
        font-weight: 600;
        font-size: 0.875rem;
        transition: color 0.3s ease;
    }

    .light-mode .task-title {
        color: #111827;
    }

    .dark-mode .task-title {
        color: #f8fafc;
    }

    .task-points {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .task-button {
        transition: all 0.2s ease;
    }

    .task-button:hover {
        transform: scale(1.05);
    }

    .bonus-display {
        margin-top: 0.5rem;
        padding: 0.5rem;
        border-radius: 0.5rem;
        font-size: 0.75rem;
        border: 1px solid;
        transition: all 0.3s ease;
    }

    .light-mode .bonus-display {
        background: #ecfdf5;
        border-color: #d1fae5;
        color: #065f46;
    }

    .dark-mode .bonus-display {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
        color: #a7f3d0;
    }

    .completed-check {
        animation: checkAppear 0.3s ease-in-out;
    }

    @keyframes checkAppear {
        from { opacity: 0; transform: scale(0.5); }
        to { opacity: 1; transform: scale(1); }
    }
    
    .hero-gradient {
        background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    }
    
    .search-results-info {
        backdrop-filter: blur(4px);
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        font-size: 0.875rem;
        border: 1px solid;
        transition: all 0.3s ease;
    }

    .light-mode .search-results-info {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.15);
        color: #375051;
    }

    .dark-mode .search-results-info {
        background: rgb(30 55 59 / 70%);
        border-color: rgba(255, 255, 255, 0.1);
        color: #cbd5e1;
    }

    /* Theme Toggle in Header */
    .theme-toggle-header {
        position: absolute;
        top: 1rem;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 2.8rem;
        height: 2.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .theme-toggle-header:hover {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    .theme-toggle-header i {
        font-size: 1.1rem;
        color: white;
        transition: all 0.3s ease;
    }

    /* Dark mode adjustments for header buttons */
    .dark-mode .theme-toggle-header {
        background: rgb(30 55 59 / 70%);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .dark-mode .theme-toggle-header:hover {
        background: rgba(30, 41, 59, 0.9);
    }

    /* Floating Actions Fix */
.floating-actions {
    position: fixed;
    bottom: 100px; /* Increased from default to avoid overlap */
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-main {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.floating-secondary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    right: 0;
    bottom: 70px; /* Position above the main button */
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-actions.menu-open .floating-secondary {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.floating-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #375051;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #f3f4f6;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Specific button colors */
.floating-share {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.floating-refresh {
    background: linear-gradient(135deg, #059669, #1d4ed8);
    color: white;
    border: none;
}

.floating-top {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.floating-info {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

/* Backdrop for when menu is open */
.floating-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    display: none;
}

.floating-backdrop.active {
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 15px;
    }
    
    .floating-main {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
}

/* Dark mode support */
.dark-mode .floating-btn:not(.floating-share):not(.floating-refresh):not(.floating-top):not(.floating-info) {
    background: #375051;
    color: #f9fafb;
    border-color: #4b5563;
}

.dark-mode .floating-btn:hover {
    background: #4b5563;
}

    /* Logo Styles - Clean */
    .inline-flex.items-center.justify-center.w-20.h-20 {
        transition: all 0.3s ease;
    }

    /* Logo animation */
    @keyframes logoFloat {
        0% {
            transform: translateY(0px) scale(1);
        }
        50% {
            transform: translateY(-5px) scale(1.05);
        }
        100% {
            transform: translateY(0px) scale(1);
        }
    }

    .inline-flex.items-center.justify-center.w-20.h-20 img {
        animation: logoFloat 6s ease-in-out infinite;
    }

    /* Simple hover effect */
    .inline-flex.items-center.justify-center.w-20.h-20:hover {
        transform: scale(1.05);
    }

    /* Responsive logo sizing */
    @media (max-width: 640px) {
        .inline-flex.items-center.justify-center.w-20.h-20 {
            width: 4rem;
            height: 4rem;
        }
    }

    /* Progress stats */
    .light-mode .bg-emerald-50 { background-color: #ecfdf5; }
    .light-mode .bg-amber-50 { background-color: #fffbeb; }
    .light-mode .bg-gray-50 { background-color: #f9fafb; }

    .dark-mode .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.1); }
    .dark-mode .bg-amber-50 { background-color: rgb(255 40 0 / 20%); }
    .dark-mode .bg-gray-50 { background-color: rgb(5 35 29 / 50%); }

    .light-mode .text-gray-500 { color: #6b7280; }
    .dark-mode .text-gray-500 { color: #94a3b8; }

    .light-mode .text-gray-700 { color: #375051; }
    .dark-mode .text-gray-700 { color: #cbd5e1; }

    .light-mode .text-gray-900 { color: #111827; }
    .dark-mode .text-gray-900 { color: #f8fafc; }

    .light-mode .bg-gray-200 { background-color: #e5e7eb; }
    .dark-mode .bg-gray-200 { background-color: #475569; }

   /* DNA Progress Styles - Taller Version */
    .dna-progress-container {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .dna-progress {
        width: 100%;
        height: 60px; /* Increased from 32px to 60px */
        border-radius: 8px;
    }

    /* DNA Progress Variables - Taller Configuration */
    :root {
        --dna-max-width: 1000px;
        --strandA: #0c5438;   /* Dark green */
        --strandB: #1dbc84;   /* Light green */
        --rung-color: #ababab; /* Vertical connector lines */
        --bg-fade: #d1d5db;   /* Background gray (used for 0%) */
        
        /* Geometry - Increased for taller appearance */
        --strand-width: 4;     /* Slightly thicker strands */
        --amp: 18;             /* Increased amplitude for taller waves */
        --amp-mult: 1.5;
        --cycles: 4;           /* Good balance for width */
        --shrink-x: 0.85;      
        --edge-trim: 8;        
        
        /* Rung bundle parameters */
        --bundle-count: 3;     /* More rungs for taller design */
        --bundle-width: 2;     /* Slightly thicker rungs */
        --peak-span: 30;       /* Increased span for taller waves */
    }

    .dark-mode {
        --strandA: #10b981;   /* Brighter green for dark mode */
        --strandB: #34d399;   /* Lighter green for dark mode */
        --rung-color: #6b7280; /* Darker rungs for dark mode */
        --bg-fade: #375051;    /* Dark background for 0% */
    }

    /* Adjust the progress overview card spacing */
    .glass-card .mb-4 {
        margin-bottom: 1.5rem !important; /* More space for taller DNA */
    }
    
    /* Genyleap Live Ticker - Ultra Minimal */
.live-ticker {
    width: 100%;
    height: 36px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    overflow: hidden;
}

.light-mode .live-ticker {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-bottom-color: rgba(16, 185, 129, 0.1);
}

.dark-mode .live-ticker {
    background: linear-gradient(135deg, rgba(2, 43, 28, 0.95) 0%, rgba(22, 29, 40, 0.9) 100%);
    border-bottom-color: rgba(16, 185, 129, 0.15);
}

.ticker-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    white-space: nowrap;
    animation: ticker-loop 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

/* 🌀 Infinite leftward circular loop */
@keyframes ticker-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate the ticker items for seamless looping */
.ticker-items {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

/* Each stat item */
.ticker-stat {
    display: flex;
    align-items: center;
    margin: 0 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ticker-stat:hover {
    transform: translateY(-1px);
}

/* Stat value styling - Clean and minimal */
.stat-value {
    font-weight: 600;
    margin-left: 0.375rem;
    font-feature-settings: 'tnum' on, 'lnum' on;
    letter-spacing: -0.01em;
}

/* Specific stat type colors */
.stat-pair .stat-value { color: #10b981; font-weight: 700; }
.stat-price .stat-value { color: #059669; font-weight: 600; }
.stat-change.positive .stat-value { color: #16a34a; font-weight: 600; }
.stat-change.negative .stat-value { color: #dc2626; font-weight: 600; }
.stat-volume .stat-value { color: #6366f1; }
.stat-liquidity .stat-value { color: #f59e0b; }
.stat-mcap .stat-value { color: #ec4899; }
.stat-slogan { font-style: italic; }
.stat-slogan .stat-value { color: #8b5cf6; }

/* Label styling */
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.light-mode .stat-label { color: #6b7280; }
.dark-mode .stat-label { color: #94a3b8; }

/* Change indicators */
.change-indicator {
    margin-left: 0.25rem;
    font-size: 0.7rem;
}

.positive .change-indicator { color: #16a34a; }
.negative .change-indicator { color: #dc2626; }

/* Loading state */
.ticker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-style: italic;
}

.light-mode .ticker-loading { color: #9ca3af; }
.dark-mode .ticker-loading { color: #64748b; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .live-ticker {
        height: 32px;
        font-size: 0.75rem;
    }
    .ticker-stat { margin: 0 1.25rem; }
    .stat-label { font-size: 0.7rem; }
}

@media (max-width: 640px) {
    .live-ticker { height: 30px; }
    .ticker-stat { margin: 0 1rem; }
}

/* Intro Screen Styles */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #022b1c 0%, #0c5438 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.intro-video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 30px;
}

.intro-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.intro-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1dbc84, #0c5438);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.skip-intro-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-intro-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* Audio element for sounds (hidden) */
.audio-element {
    display: none;
}

/* Music Control Styles */
.music-control {
    transition: all 0.3s ease;
}

.music-control.muted {
    opacity: 0.5;
}

.music-control .fa-music {
    transition: all 0.3s ease;
}

.music-playing {
    animation: musicPulse 2s infinite;
}

/* Simplified Leaderboard Filter Styles */
.leaderboard-filters {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.dark-mode .leaderboard-filters {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Sort Radio Buttons */
.sort-radio {
    display: block;
    cursor: pointer;
}

.sort-radio input {
    display: none;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
    gap: 6px;
}

.dark-mode .radio-content {
    background: #024d3417;
    border-color: #0e402f;
    color: white;
}

.sort-radio input:checked + .radio-content {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

.radio-content i {
    font-size: 1.25rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.dark-mode .radio-content i {
    color: #9ca3af;
}

.sort-radio input:checked + .radio-content i {
    color: #10b981;
}

.radio-content span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #375051;
}

.dark-mode .radio-content span {
    color: #d1d5db;
}

.sort-radio input:checked + .radio-content span {
    color: #10b981;
}

/* Filter Switches */
.filter-switch {
    display: block;
    cursor: pointer;
}

.filter-switch input {
    display: none;
}

.switch-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dark-mode .switch-content {
    border-bottom-color: #4b5563;
}

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

.switch-text {
    flex: 1;
}

.switch-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #375051;
    margin-bottom: 2px;
}

.dark-mode .switch-label {
    color: #f3f4f6;
}

.switch-description {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark-mode .switch-description {
    color: #9ca3af;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.filter-switch input:checked + .switch-content .toggle-slider {
    background: #10b981;
}

.filter-switch input:checked + .switch-content .toggle-slider:before {
    transform: translateX(20px);
}

/* Sort Order Switch */
.sort-order-switch {
    display: block;
    cursor: pointer;
}

.sort-order-switch input {
    display: none;
}

.sort-order-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sort-order-text {
    flex: 1;
}

.sort-order-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 2px;
}

.dark-mode .sort-order-label {
    color: #a7f3d0;
}

.sort-order-description {
    display: block;
    font-size: 0.75rem;
    color: #047857;
}

.dark-mode .sort-order-description {
    color: #6ee7b7;
}

.sort-order-display {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.sort-order-asc,
.sort-order-desc {
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sort-order-asc {
    color: #065f46;
}

.dark-mode .sort-order-asc {
    color: #a7f3d0;
}

.sort-order-desc {
    color: #9ca3af;
    opacity: 0.7;
}

.sort-order-switch input:checked + .sort-order-content .sort-order-asc {
    color: #9ca3af;
    opacity: 0.7;
}

.sort-order-switch input:checked + .sort-order-content .sort-order-desc {
    color: #065f46;
    opacity: 1;
}

.dark-mode .sort-order-switch input:checked + .sort-order-content .sort-order-desc {
    color: #a7f3d0;
}

.sort-order-indicator {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sort-order-indicator i {
    position: absolute;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.sort-order-indicator .fa-arrow-up {
    opacity: 1;
    transform: translateY(0);
}

.sort-order-indicator .fa-arrow-down {
    opacity: 0;
    transform: translateY(10px);
}

.sort-order-switch input:checked + .sort-order-content .fa-arrow-up {
    opacity: 0;
    transform: translateY(-10px);
}

.sort-order-switch input:checked + .sort-order-content .fa-arrow-down {
    opacity: 1;
    transform: translateY(0);
}

/* Active Filters Display */
.active-filters {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 640px) {
    .leaderboard-filters {
        padding: 12px;
    }
    
    .radio-content {
        padding: 10px 6px;
    }
    
    .radio-content span {
        font-size: 0.7rem;
    }
}

.leaderboard-list {
    margin-left: 10px;
    margin-right: 10px;
}
.share-modal {
    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: 1000;
    backdrop-filter: blur(4px);
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e5e7eb;
}

.dark-mode .share-modal-content {
    background: #1f3537;
    color: #e5e7eb;
    border-color: #374e51;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.share-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dark-mode .share-title {
    color: #f9fafb;
}

.close-share-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-share-btn:hover {
    background: #f3f4f6;
    color: #374e51;
}

.dark-mode .close-share-btn {
    color: #9ca3af;
}

.dark-mode .close-share-btn:hover {
    background: #375051;
    color: #d1d5db;
}

.share-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
}

.dark-mode .share-stats {
    background: #2a4446;
    border-color: #374e51;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.dark-mode .share-option-btn {
    background: #2a4446;
    border-color: #374e51;
    color: #e5e7eb;
}

.share-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.dark-mode .share-option-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #34d399;
    background: #375051;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.farcaster-share .share-icon {
    background: #8a63d2;
    color: white;
}

.x-share .share-icon {
    background: #000000;
    color: white;
}

.dark-mode .x-share .share-icon {
    background: #1da1f2;
}

.share-info {
    flex: 1;
    min-width: 0;
}

.share-platform {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
    color: #111827;
}

.dark-mode .share-platform {
    color: #f9fafb;
}

.share-description {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.dark-mode .share-description {
    color: #d1d5db;
}

.share-option-btn i.fa-chevron-right {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}

.dark-mode .share-option-btn i.fa-chevron-right {
    color: #6b7280;
}

/* TBA Share Button Styles */
.tba-share {
    background: linear-gradient(135deg, #0052ff, #00c2ff);
    border: 1px solid #0052ff;
    color: white;
}

.tba-share:hover {
    background: linear-gradient(135deg, #0042e0, #00a2e0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
    border-color: #0042e0;
}

.dark-mode .tba-share {
    background: linear-gradient(135deg, #0042e0, #0092d0);
    border-color: #0042e0;
}

.dark-mode .tba-share:hover {
    background: linear-gradient(135deg, #0032c0, #0082c0);
    box-shadow: 0 4px 12px rgba(0, 66, 224, 0.4);
}

.tba-share .share-platform,
.tba-share .share-description {
    color: white;
}

.tba-share i.fa-chevron-right {
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Task Card Styles */
.task-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.task-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.task-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.task-title {
    font-weight: 600;
    line-height: 1.3;
}

.task-description {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-metadata {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 8px;
}

.dark-mode .task-metadata {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.requirement-badge {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Premium task enhancements */
.high-value-task {
    background: linear-gradient(135deg, #fef3c7, #fef7cd);
    border-color: #f59e0b;
}

.dark-mode .high-value-task {
    background: linear-gradient(135deg, #883c10ae, #92410e15);
}

/* Holding task enhancements */
.holding-task {
    background: linear-gradient(135deg, #e0e7ff, #e0e7ff);
    border-color: #6366f1;
}

.dark-mode .holding-task {
    background: linear-gradient(135deg, #312e81, #3730a300)
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Glass card effect for all task cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .glass-card {
    background: rgba(30, 59, 57, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add to your existing CSS */
.leaderboard-list .cursor-pointer {
    transition: all 0.2s ease;
}

.leaderboard-list .cursor-pointer:hover {
    transform: translateY(-1px);
}

/* Make the entire user info section clearly clickable */
.leaderboard-user-info {
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
    transition: background-color 0.2s ease;
}

.leaderboard-user-info:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Enhanced Notification Drawer Styles */
.notification-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(20px);
    opacity: 0;
}

.notification-drawer.open {
    right: 0;
    transform: translateX(0);
    opacity: 1;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.notification-drawer.open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.light-mode .drawer-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .drawer-content {
    background: linear-gradient(135deg, #1a2a2a 0%, #0f1f1f 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid;
    position: relative;
    overflow: hidden;
}

.drawer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    opacity: 0.8;
}

.light-mode .drawer-header {
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.dark-mode .drawer-header {
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.drawer-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.drawer-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.drawer-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.light-mode .drawer-title {
    color: #111827;
}

.dark-mode .drawer-title {
    color: #f8fafc;
}

.drawer-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.light-mode .drawer-subtitle {
    color: #6b7280;
}

.dark-mode .drawer-subtitle {
    color: #94a3b8;
}

.drawer-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.unread-count-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.light-mode .drawer-close-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(16, 185, 129, 0.2);
}

.dark-mode .drawer-close-btn {
    background: rgb(30 56 59 / 80%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.drawer-close-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.05);
}

/* Enhanced Notifications List */
.drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: transparent;
}

/* Custom Scrollbar */
.drawer-list::-webkit-scrollbar {
    width: 6px;
}

.drawer-list::-webkit-scrollbar-track {
    background: transparent;
}

.light-mode .drawer-list::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 3px;
}

.dark-mode .drawer-list::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 3px;
}

.drawer-list::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Enhanced Notification Items */
.notification-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark-mode .notification-item {
    background: rgb(30 56 59 / 80%);
    border-color: rgba(255, 255, 255, 0.1);
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.notification-item:hover::before {
    opacity: 1;
}

/* Unread notification styling */
.notification-unread {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.dark-mode .notification-unread {
    background: rgba(16, 185, 129, 0.1);
}

.notification-unread::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

/* Priority-based styling */
.notification-priority-urgent {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.dark-mode .notification-priority-urgent {
    background: rgba(239, 68, 68, 0.1);
}

.notification-priority-high {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.dark-mode .notification-priority-high {
    background: rgba(245, 158, 11, 0.1);
}

.notification-priority-medium {
    border-left-color: #10b981;
}

.notification-priority-low {
    border-left-color: #6b7280;
    opacity: 0.8;
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-priority-urgent .notification-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification-priority-high .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.notification-priority-medium .notification-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.notification-priority-low .notification-icon {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.light-mode .notification-title {
    color: #111827;
}

.dark-mode .notification-title {
    color: #f8fafc;
}

.notification-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-urgent {
    background: #ef4444;
    color: white;
}

.badge-high {
    background: #f59e0b;
    color: white;
}

.badge-medium {
    background: #10b981;
    color: white;
}

.badge-low {
    background: #6b7280;
    color: white;
}

.notification-message {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.light-mode .notification-message {
    color: #6b7280;
}

.dark-mode .notification-message {
    color: #94a3b8;
}

.notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.notification-time {
    color: #9ca3af;
    font-weight: 500;
}

.notification-expiry {
    color: #ef4444;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty State */
.notification-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.notification-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notification-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.dark-mode .notification-empty-title {
    color: #94a3b8;
}

.notification-empty-description {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Enhanced Drawer Actions */
.drawer-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .drawer-actions {
    background: rgba(30, 41, 59, 0.5);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.drawer-action-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.drawer-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.drawer-action-btn.primary {
    background: linear-gradient(135deg, #059669, #1d4ed8);
    color: white;
}

.drawer-action-btn.primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.drawer-action-btn.secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.drawer-action-btn.secondary:hover {
    background: linear-gradient(135deg, #4b5563, #375051);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* Animations */
@keyframes pulse-gentle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* DNA Loading Spinner */
.dna-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.dna-strand {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nucleotide {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #10b981, #059669);
    animation: dna-pulse 1.4s ease-in-out infinite both;
}

.nucleotide:nth-child(1) { animation-delay: -0.32s; }
.nucleotide:nth-child(2) { animation-delay: -0.24s; }
.nucleotide:nth-child(3) { animation-delay: -0.16s; }
.nucleotide:nth-child(4) { animation-delay: -0.08s; }
.nucleotide:nth-child(5) { animation-delay: 0s; }
.nucleotide:nth-child(6) { animation-delay: 0.08s; }
.nucleotide:nth-child(7) { animation-delay: 0.16s; }
.nucleotide:nth-child(8) { animation-delay: 0.24s; }

@keyframes dna-pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Loading Check Animation */
.loading-check {
    animation: checkPop 0.3s ease-out;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading Spinner Transitions */
#loadingSpinner {
    z-index:999;
    backdrop-filter: blur(50px);
}

#loadingSpinner.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Ensure main app is hidden initially */
#mainApp {
    display: none;
}

#mainApp:not(.hidden) {
    display: block;
}

/* Loading State */
.notification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.notification-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .notification-drawer {
        max-width: 100%;
    }
    
    .drawer-header {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .drawer-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .drawer-title {
        font-size: 1.1rem;
    }
    
    .unread-count-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 50px;
    }
    
    .drawer-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .notification-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .drawer-actions {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .drawer-action-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Smooth transitions for notification updates */
.notification-item {
    animation: slideInUp 0.3s ease-out;
}

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

/* Enhanced badge for header notification button */
.header-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 1px solid;
}

.light-mode .header-notification-badge {
    border-color: #f8fafc;
}

.dark-mode .header-notification-badge {
    border-color: #1a2a2a;
}

/* Custom Input Modal Styles */
#customInputModal .modal-content {
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dark .modal-header h2 {
    color: #f9fafb;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    padding-left: 170px;
}

.modal-close-btn:hover {
    color: #375051;
}

.dark .modal-close-btn:hover {
    color: #d1d5db;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #375051;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    color: #d1d5db;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: white;
}

.dark .form-input {
    background-color: #375051;
    border-color: #4b5563;
    color: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.dark .form-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-primary:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #375051;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dark .btn-secondary {
    background-color: #4b5563;
    color: #d1d5db;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.dark .btn-secondary:hover {
    background-color: #6b7280;
}

/* Leaderboard Modal - Sync with Main Style */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.light-mode .modal {
    background: rgba(0, 0, 0, 0.5);
}

.dark-mode .modal {
    background: rgba(2, 43, 28, 0.8);
}

.modal-content {
    border-radius: 1rem;
    padding: 1.5rem;
    width: 95%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-in-out;
}

.light-mode .modal-content {
    background: white;
    color: #375051;
}

.dark-mode .modal-content {
    background: linear-gradient(135deg, #022b1c 0%, #161d28 50%, #334155 100%);
    color: #cbd5e1;
}

.compact-modal {
    max-width: 380px;
    padding: 1.25rem;
}

/* Compact Header */
.compact-header {
    text-align: center;
    margin-bottom: 1rem;
}

.header-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: white;
    font-size: 1rem;
}

.compact-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.light-mode .compact-title {
    color: #111827;
}

.dark-mode .compact-title {
    color: #f8fafc;
}

.compact-subtitle {
    font-size: 0.75rem;
}

.light-mode .compact-subtitle {
    color: #6b7280;
}

.dark-mode .compact-subtitle {
    color: #94a3b8;
}

/* Current User Rank - Minimal */
.current-user-rank-section {
    margin-bottom: 1rem;
}

.current-user-rank-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.light-mode .current-user-rank-content {
    background: rgba(255, 255, 255, 0.7);
    border-color: #e5e7eb;
}

.dark-mode .current-user-rank-content {
    background: rgba(30, 41, 59, 0.7);
    border-color: #475569;
}

.current-user-avatar img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    object-fit: cover;
}

.user-avatar-fallback {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.current-user-info {
    flex: 1;
    min-width: 0;
}

.current-user-name {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.current-user-name span {
    font-size: 0.85rem;
    font-weight: 600;
}

.light-mode .current-user-name span {
    color: #111827;
}

.dark-mode .current-user-name span {
    color: #f8fafc;
}

.power-badge-icon {
    color: #8b5cf6;
    font-size: 0.6rem;
}

.essential-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.essential-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.light-mode .essential-stat {
    color: #6b7280;
}

.dark-mode .essential-stat {
    color: #94a3b8;
}

.essential-stat i {
    font-size: 0.6rem;
}

.current-user-score {
    text-align: center;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    min-width: 50px;
}

.light-mode .current-user-score {
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dark-mode .current-user-score {
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rank-number {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.1rem;
    color: #10b981;
}

.rank-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #10b981;
}

/* Ultra Compact Filters */
.compact-filters {
    margin-bottom: 1rem;
}

/* Sort Options - Super Compact */
.sort-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.compact-radio {
    display: block;
    cursor: pointer;
}

.compact-radio input {
    display: none;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    border: 1px solid;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.light-mode .radio-content {
    background: rgba(255, 255, 255, 0.7);
    border-color: #e5e7eb;
}

.dark-mode .radio-content {
    background: rgba(30, 41, 59, 0.7);
    border-color: #475569;
}

.compact-radio:hover .radio-content {
    border-color: #10b981;
}

.compact-radio input:checked + .radio-content {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.radio-content i {
    font-size: 0.8rem;
}

.light-mode .radio-content i {
    color: #6b7280;
}

.dark-mode .radio-content i {
    color: #9ca3af;
}

.compact-radio input:checked + .radio-content i {
    color: #10b981;
}

.radio-content span {
    font-size: 0.6rem;
    font-weight: 600;
}

.light-mode .radio-content span {
    color: #375051;
}

.dark-mode .radio-content span {
    color: #cbd5e1;
}

.compact-radio input:checked + .radio-content span {
    color: #10b981;
}

/* Quick Toggles - Super Compact */
.quick-toggles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.compact-toggle {
    display: block;
    cursor: pointer;
}

.compact-toggle input {
    display: none;
}

.toggle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    border: 1px solid;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.light-mode .toggle-content {
    background: rgba(255, 255, 255, 0.7);
    border-color: #e5e7eb;
}

.dark-mode .toggle-content {
    background: rgba(30, 41, 59, 0.7);
    border-color: #475569;
}

.compact-toggle:hover .toggle-content {
    border-color: #059669;
}

.compact-toggle input:checked + .toggle-content {
    background: rgba(59, 130, 246, 0.1);
    border-color: #059669;
}

.toggle-content i {
    font-size: 0.8rem;
}

.light-mode .toggle-content i {
    color: #6b7280;
}

.dark-mode .toggle-content i {
    color: #9ca3af;
}

.compact-toggle input:checked + .toggle-content i {
    color: #059669;
}

.toggle-content span {
    font-size: 0.6rem;
    font-weight: 600;
}

.light-mode .toggle-content span {
    color: #375051;
}

.dark-mode .toggle-content span {
    color: #cbd5e1;
}

.compact-toggle input:checked + .toggle-content span {
    color: #059669;
}

/* Sort Order Toggle */
#sortOrderToggle input:checked + .toggle-content {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

#sortOrderToggle input:checked + .toggle-content i,
#sortOrderToggle input:checked + .toggle-content span {
    color: #f59e0b;
}

/* Leaderboard Divider */
.leaderboard-divider {
    text-align: center;
    margin: 1rem 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.light-mode .leaderboard-divider {
    color: #6b7280;
}

.dark-mode .leaderboard-divider {
    color: #94a3b8;
}

/* Compact Leaderboard */
.compact-leaderboard {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.compact-leaderboard::-webkit-scrollbar {
    width: 3px;
}

.compact-leaderboard::-webkit-scrollbar-track {
    background: transparent;
}

.light-mode .compact-leaderboard::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
}

.dark-mode .compact-leaderboard::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
}

/* Leaderboard Items */
.leaderboard-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid;
}

.light-mode .leaderboard-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: #e5e7eb;
}

.dark-mode .leaderboard-item {
    background: rgba(30, 41, 59, 0.7);
    border-color: #475569;
}

/* Compact Close Button */
.compact-close-button {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.compact-close-button:hover {
    background: #059669;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 1rem;
    }
    
    .sort-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .quick-toggles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }
    
    .radio-content,
    .toggle-content {
        padding: 0.4rem 0.2rem;
    }
    
    .current-user-rank-content {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .current-user-avatar img,
    .user-avatar-fallback {
        width: 2rem;
        height: 2rem;
    }
    
    .essential-stats {
        gap: 0.5rem;
    }
    
    .essential-stat {
        font-size: 0.65rem;
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Premium Filter Controls - Modern Swipe & Radio Buttons */
.leaderboard-filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-mode .leaderboard-filters {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Sort Toggle - Premium Swipe */
.sort-toggle-section {
    margin-bottom: 24px;
}

.toggle-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .toggle-label {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Swipe Toggle */
.premium-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 4px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark-mode .premium-toggle {
    background: rgb(30 54 59 / 60%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-option.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(16, 185, 129, 0.2);
}

.toggle-slider.right {
    transform: translateX(100%);
}

.toggle-option i {
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Sort Options - Premium Radio Grid */
.sort-options-section {
    margin-bottom: 20px;
}

.sort-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.premium-radio {
    position: relative;
}

.premium-radio input {
    display: none;
}

.radio-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

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

.premium-radio input:checked + .radio-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.2),
        0 4px 12px rgba(16, 185, 129, 0.1);
}

.dark-mode .premium-radio input:checked + .radio-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.15));
    border-color: #34d399;
}

.radio-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-radio input:checked + .radio-card .radio-icon {
    background: white;
    color: #10b981;
    transform: scale(1.1);
}

.radio-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.dark-mode .radio-label {
    color: #d1d5db;
}

.premium-radio input:checked + .radio-card .radio-label {
    color: #10b981;
}

.dark-mode .premium-radio input:checked + .radio-card .radio-label {
    color: #34d399;
}

.radio-description {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark-mode .radio-description {
    color: #9ca3af;
}

.premium-radio input:checked + .radio-card .radio-description {
    color: #059669;
}

/* Quick Filters - Premium Switches */
.quick-filters-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

.quick-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.premium-switch {
    position: relative;
}

.premium-switch input {
    display: none;
}

.switch-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.switch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

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

.dark-mode .switch-card {
    background: rgb(30 54 59 / 60%);
    border: 2px solid rgba(75, 85, 99, 0.8);
}

.premium-switch input:checked + .switch-card {
    background: linear-gradient(135deg, rgb(59 246 223 / 15%), rgba(37, 99, 235, 0.1));
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(59 166 246 / 20%), 0 4px 12px rgb(59 246 239 / 10%);
}

.dark-mode .premium-switch input:checked + .switch-card {
    background: linear-gradient(135deg, rgb(59 246 223 / 15%), rgba(37, 99, 235, 0.1));
    border-color: #059669;
}

.switch-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.premium-switch input:checked + .switch-card .switch-icon {
    background: #059669;
    transform: scale(1.1);
}

.switch-content {
    flex: 1;
    text-align: left;
}

.switch-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.dark-mode .switch-label {
    color: #d1d5db;
}

.premium-switch input:checked + .switch-card .switch-label {
    color: #059669;
}

.dark-mode .premium-switch input:checked + .switch-card .switch-label {
    color: #059669;
}

.switch-description {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark-mode .switch-description {
    color: #9ca3af;
}

.switch-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.switch-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 2px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.premium-switch input:checked + .switch-card .switch-indicator {
    background: #059669;
    border-color: #059669;
}

.premium-switch input:checked + .switch-card .switch-indicator::after {
    transform: scale(1);
}

/* Active Filters Badge */
.active-filters-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideInUp 0.4s ease-out;
}

.active-filters-badge i {
    font-size: 0.875rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hover Effects */
.premium-radio:hover .radio-card,
.premium-switch:hover .switch-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .leaderboard-filters {
        padding: 20px;
        border-radius: 16px;
    }
    
    .sort-options-grid,
    .quick-filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .toggle-option {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .radio-card,
    .switch-card {
        padding: 12px;
    }
}

@media (max-width: 640px) {
    .leaderboard-filters {
        padding: 16px;
    }
    
    .toggle-label {
        font-size: 0.7rem;
    }
    
    .radio-icon,
    .switch-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .radio-label,
    .switch-label {
        font-size: 0.75rem;
    }
    
    .radio-description,
    .switch-description {
        font-size: 0.65rem;
    }
}

/* Fix Sort Options Grid Layout */
.sort-options-section {
    margin-bottom: 20px;
}

.sort-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.premium-radio {
    position: relative;
    width: 100%;
}

.premium-radio input {
    display: none;
}

.radio-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-sizing: border-box;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

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

.dark-mode .radio-card {
    background: rgb(30 54 59 / 60%);
    border: 2px solid rgba(75, 85, 99, 0.8);
}

.premium-radio input:checked + .radio-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.2),
        0 4px 12px rgba(16, 185, 129, 0.1);
}

.dark-mode .premium-radio input:checked + .radio-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.15));
    border-color: #34d399;
}

.radio-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.premium-radio input:checked + .radio-card .radio-icon {
    background: white;
    color: #10b981;
    transform: scale(1.1);
}

.radio-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.dark-mode .radio-label {
    color: #d1d5db;
}

.premium-radio input:checked + .radio-card .radio-label {
    color: #10b981;
}

.dark-mode .premium-radio input:checked + .radio-card .radio-label {
    color: #34d399;
}

.radio-description {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.dark-mode .radio-description {
    color: #9ca3af;
}

.premium-radio input:checked + .radio-card .radio-description {
    color: #059669;
}

/* Ensure proper grid behavior */
.sort-options-grid > * {
    min-width: 0; /* Prevent grid items from overflowing */
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {
    .sort-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .radio-card {
        padding: 14px 12px;
        min-height: 90px;
    }
    
    .radio-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
        margin-bottom: 6px;
    }
    
    .radio-label {
        font-size: 0.7rem;
    }
    
    .radio-description {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .sort-options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .radio-card {
        padding: 12px 10px;
        min-height: 85px;
    }
    
    .radio-icon {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .radio-label {
        font-size: 0.68rem;
    }
    
    .radio-description {
        font-size: 0.62rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .sort-options-grid {
        gap: 6px;
    }
    
    .radio-card {
        padding: 10px 8px;
        min-height: 80px;
    }
    
    .radio-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .radio-label {
        font-size: 0.65rem;
    }
    
    .radio-description {
        font-size: 0.6rem;
    }
}

/* Ensure the entire section fits within modal */
#leaderboardModal .leaderboard-filters {
    max-height: none;
    overflow: visible;
}

/* Fix for modal content sizing */
#leaderboardModal .modal-content {
    max-width: 100%; /* Slightly wider to accommodate the grid */
}

/* Ensure proper spacing in the leaderboard filters */
.leaderboard-filters {
    padding: 20px;
}

/* Fix for the toggle label spacing */
.toggle-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
}

.dark-mode .toggle-label {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fix Sort Options Grid Layout - Always 2 Columns */
.sort-options-section {
    margin-bottom: 20px;
}

.sort-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.premium-radio {
    position: relative;
    width: 100%;
}

.premium-radio input {
    display: none;
}

.radio-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    box-sizing: border-box;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

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

.dark-mode .radio-card {
    background: rgb(30 54 59 / 60%);
    border: 2px solid rgba(75, 85, 99, 0.8);
}

.premium-radio input:checked + .radio-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.2),
        0 4px 12px rgba(16, 185, 129, 0.1);
}

.dark-mode .premium-radio input:checked + .radio-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.15));
    border-color: #34d399;
}

.radio-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.premium-radio input:checked + .radio-card .radio-icon {
    background: white;
    color: #10b981;
    transform: scale(1.1);
}

.radio-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 2px;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.dark-mode .radio-label {
    color: #d1d5db;
}

.premium-radio input:checked + .radio-card .radio-label {
    color: #10b981;
}

.dark-mode .premium-radio input:checked + .radio-card .radio-label {
    color: #34d399;
}

.radio-description {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.dark-mode .radio-description {
    color: #9ca3af;
}

.premium-radio input:checked + .radio-card .radio-description {
    color: #059669;
}

/* Ensure proper grid behavior */
.sort-options-grid > * {
    min-width: 0;
}

/* Mobile adjustments - KEEP 2 COLUMNS but adjust spacing */
@media (max-width: 768px) {
    .sort-options-grid {
        gap: 10px;
    }
    
    .radio-card {
        padding: 14px 6px;
        min-height: 85px;
    }
    
    .radio-icon {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .radio-label {
        font-size: 0.68rem;
    }
    
    .radio-description {
        font-size: 0.62rem;
    }
}

@media (max-width: 640px) {
    .sort-options-grid {
        gap: 8px;
    }
    
    .radio-card {
        padding: 12px 4px;
        min-height: 80px;
    }
    
    .radio-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .radio-label {
        font-size: 0.65rem;
    }
    
    .radio-description {
        font-size: 0.6rem;
    }
}

/* Very small screens - still keep 2 columns but make it work */
@media (max-width: 480px) {
    .sort-options-grid {
        gap: 6px;
    }
    
    .radio-card {
        padding: 10px 3px;
        min-height: 75px;
    }
    
    .radio-icon {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .radio-label {
        font-size: 0.62rem;
    }
    
    .radio-description {
        font-size: 0.58rem;
    }
}

/* Extreme small screens - force 2 columns */
@media (max-width: 360px) {
    .sort-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .radio-card {
        padding: 8px 2px;
        min-height: 70px;
    }
    
    .radio-icon {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        margin-bottom: 1px;
    }
    
    .radio-label {
        font-size: 0.6rem;
    }
    
    .radio-description {
        font-size: 0.55rem;
    }
}


/* Make sure the grid items don't overflow */
.leaderboard-filters {
    overflow: visible;
}

/* Fix for the toggle label */
.toggle-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #375051;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
}

.dark-mode .toggle-label {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Wallet Styles */
.wallet-info-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
}

.dark .wallet-info-card {
    background: linear-gradient(135deg, #052e16, #14532d);
    border-color: #166534;
}

.wallet-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.wallet-action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374e51;
}

.dark .wallet-action-btn {
    background: #374e51;
    border-color: #4b5563;
    color: #f3f4f6;
}

.wallet-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wallet-action-btn.primary {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Buy Notification Styles */
.notification.error .bg-emerald-500 {
    background-color: #10b981;
}

.notification.error .bg-emerald-500:hover {
    background-color: #059669;
}

.notification.error .bg-gray-500 {
    background-color: #6b7280;
}

.notification.error .bg-gray-500:hover {
    background-color: #4b5563;
}

/* Form Modal Styles */
.form-group {
    @apply space-y-2;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 dark:text-gray-300;
}

.form-input {
    @apply w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg text-sm bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:border-transparent transition-all duration-200;
}

.form-error {
    @apply text-red-500 text-xs mt-1 hidden;
}

.form-error.show {
    @apply block;
}

/* Modal Styles */
.modal {
    @apply fixed inset-0 bg-black bg-opacity-50 z-50 hidden items-center justify-center p-4;
}

.modal-content {
    @apply bg-white dark:bg-gray-800 rounded-2xl shadow-xl w-full max-w-md;
}

.modal-header {
    @apply flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700;
}

.modal-body {
    @apply p-6;
}

.modal-footer {
    @apply flex gap-3 p-6 border-t border-gray-200 dark:border-gray-700;
}

.btn-primary {
    @apply bg-emerald-500 hover:bg-emerald-600 text-white font-medium py-3 px-4 rounded-xl transition-all duration-200;
}

.btn-secondary {
    @apply bg-gray-500 hover:bg-gray-600 text-white font-medium py-3 px-4 rounded-xl transition-all duration-200;
}

/* Leaderboard Stats Section - COMPACT */
.leaderboard-stats-section {
    margin-bottom: 20px;
    padding: 0 4px;
}

/* Compact Stats Grid */
.compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.compact-stat {
    text-align: center;
    padding: 12px 4px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}

.dark-mode .compact-stat {
    background: var(--card-bg, #1f2f37);
    border-color: var(--border-color, #374e51);
}

.compact-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    line-height: 1;
    margin-bottom: 2px;
}

.dark-mode .compact-stat-value {
    color: var(--text-primary, #f9fafb);
}

.compact-stat-label {
    font-size: 11px;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
}

/* Secondary Stats */
.secondary-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.secondary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.secondary-label {
    font-size: 10px;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 2px;
    font-weight: 500;
}

.secondary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.dark-mode .secondary-value {
    color: var(--text-primary, #f9fafb);
}

/* Growth Badges */
.growth-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.growth-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.growth-badge-text {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Responsive Design */
@media (max-width: 380px) {
    .compact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .secondary-stats {
        flex-direction: column;
        gap: 6px;
    }
    
    .secondary-stat {
        flex-direction: row;
        justify-content: space-between;
        padding: 4px 8px;
        background: var(--card-bg, #ffffff);
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 6px;
    }
    
    .dark-mode .secondary-stat {
        background: var(--card-bg, #1f3637);
        border-color: var(--border-color, #374e51);
    }
    
    .growth-badges {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .growth-badge {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }
}

/* Small height adjustments */
@media (max-height: 700px) {
    .leaderboard-stats-section {
        margin-bottom: 16px;
    }
    
    .compact-stat {
        padding: 8px 4px;
    }
    
    .compact-stat-value {
        font-size: 16px;
    }
    
    .compact-stat-label {
        font-size: 10px;
    }
}

/* Tab Notification Badges */
.tab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Light mode border color */
.light-mode .tab-badge {
    border-color: #f8fafc;
}

/* Dark mode border color */
.dark-mode .tab-badge {
    border-color: #1e293b;
}

/* Pulse animation for attention */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
    }
}

/* Ensure tab buttons have relative positioning for absolute badge positioning */
.tab-active,
.tab-inactive {
    position: relative;
}

/* Profile Drawer Styles - Matches Notification Drawer */
.profile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(20px);
    opacity: 0;
}

.profile-drawer.open {
    right: 0;
    transform: translateX(0);
    opacity: 1;
}

.profile-drawer .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.profile-drawer.open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}

.profile-drawer .drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.light-mode .profile-drawer .drawer-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .profile-drawer .drawer-content {
    background: linear-gradient(135deg, #1a2a2a 0%, #0f1f1f 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Profile Completion Badge */
.profile-completion-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

/* Profile Content */
.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: transparent;
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dark-mode .profile-stat-card {
    background: rgb(30 56 59 / 80%);
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-stat-card .stat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.profile-stat-card .stat-content {
    text-align: center;
}

.profile-stat-card .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dark-mode .profile-stat-card .stat-value {
    color: #f8fafc;
}

.profile-stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.dark-mode .profile-stat-card .stat-label {
    color: #94a3b8;
}

/* Completion Section */
.completion-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .completion-section {
    background: rgb(30 56 59 / 80%);
    border-color: rgba(255, 255, 255, 0.1);
}

.completion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.completion-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #375051;
}

.dark-mode .completion-label {
    color: #d1d5db;
}

.completion-percent {
    font-size: 0.875rem;
    font-weight: 700;
    color: #10b981;
}

.completion-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dark-mode .completion-bar {
    background: rgba(255, 255, 255, 0.1);
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Profile Form */
.profile-form {
    space-y: 1.5rem;
}

.form-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .form-section {
    background: rgb(30 56 59 / 80%);
    border-color: rgba(255, 255, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.dark-mode .section-title {
    color: #f8fafc;
}

.section-title i {
    color: #10b981;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    space-y: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #375051;
}

.dark-mode .form-label {
    color: #d1d5db;
}

.char-counter {
    font-size: 0.75rem;
    color: #6b7280;
    float: right;
}

.dark-mode .char-counter {
    color: #94a3b8;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    color: #111827;
}

.dark-mode .form-input,
.dark-mode .form-select,
.dark-mode .form-textarea {
    background: #374e51;
    border-color: #4b5563;
    color: #f9fafb;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.dark-mode .form-input:focus,
.dark-mode .form-select:focus,
.dark-mode .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.readonly-field {
    padding: 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #375051;
    font-weight: 500;
}

.dark-mode .readonly-field {
    background: #4b5563;
    border-color: #6b7280;
    color: #d1d5db;
}

/* Social Inputs */
.social-inputs {
    space-y: 0.75rem;
}

.social-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.social-icon.github { background: #333; }
.social-icon.twitter { background: #000; }
.social-icon.telegram { background: #0088cc; }
.social-icon.discord { background: #5865f2; }
.social-icon.ens { background: #1969ff; }

.social-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #111827;
    transition: all 0.2s ease;
}

.dark-mode .social-input {
    background: #374e51;
    border-color: #4b5563;
    color: #f9fafb;
}

.social-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Avatar Section */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.dark-mode .avatar-preview {
    background: #4b5563;
    border-color: #6b7280;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.avatar-placeholder {
    color: #9ca3af;
    font-size: 1.5rem;
}

.avatar-input {
    flex: 1;
}

.input-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.dark-mode .input-hint {
    color: #94a3b8;
}

/* Custom Scrollbar for Profile Content */
.profile-content::-webkit-scrollbar {
    width: 6px;
}

.profile-content::-webkit-scrollbar-track {
    background: transparent;
}

.light-mode .profile-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 3px;
}

.dark-mode .profile-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 3px;
}

.profile-content::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 640px) {
    .profile-drawer {
        max-width: 100%;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .profile-stat-card {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .avatar-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .avatar-preview {
        width: 60px;
        height: 60px;
    }
    
    .social-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .social-icon {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: 0.75rem;
    }
    
    .form-grid {
        gap: 0.75rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
}

/* Animation for profile drawer */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-drawer.open .drawer-content {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add these dark theme styles to your existing CSS */

/* Form Inputs - Dark Theme */
.dark-mode .form-input,
.dark-mode .form-select,
.dark-mode .form-textarea,
.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="tel"],
.dark-mode input[type="url"],
.dark-mode input[type="date"],
.dark-mode select,
.dark-mode textarea {
    background: #1f3637 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

.dark-mode .form-input:focus,
.dark-mode .form-select:focus,
.dark-mode .form-textarea:focus,
.dark-mode input[type="text"]:focus,
.dark-mode input[type="email"]:focus,
.dark-mode input[type="tel"]:focus,
.dark-mode input[type="url"]:focus,
.dark-mode input[type="date"]:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    background: #1f3637 !important;
    color: #f9fafb !important;
}

/* Placeholder text for dark mode */
.dark-mode .form-input::placeholder,
.dark-mode .form-textarea::placeholder,
.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

/* Read-only fields in dark mode */
.dark-mode .readonly-field {
    background: #374e51 !important;
    border-color: #4b5563 !important;
    color: #d1d5db !important;
}

/* Disabled form elements in dark mode */
.dark-mode .form-input:disabled,
.dark-mode .form-select:disabled,
.dark-mode .form-textarea:disabled,
.dark-mode input:disabled,
.dark-mode select:disabled,
.dark-mode textarea:disabled {
    background: #374e51 !important;
    border-color: #4b5563 !important;
    color: #6b7280 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Social media input groups in dark mode */
.dark-mode .social-input-group .social-input {
    background: transparent !important;
    border: none !important;
    color: #f9fafb !important;
}

.dark-mode .social-input-group .social-input:focus {
    background: transparent !important;
    box-shadow: none !important;
}

/* Profile stats cards in dark mode */
.dark-mode .profile-stat-card {
    background: rgb(30 56 59 / 80%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .profile-stat-card .stat-value {
    color: #f8fafc !important;
}

.dark-mode .profile-stat-card .stat-label {
    color: #94a3b8 !important;
}

/* Completion section in dark mode */
.dark-mode .completion-section {
    background: rgb(30 56 59 / 80%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .completion-label {
    color: #d1d5db !important;
}

.dark-mode .completion-bar {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Form sections in dark mode */
.dark-mode .form-section {
    background: rgb(30 56 59 / 80%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .section-title {
    color: #f8fafc !important;
}

.dark-mode .form-label {
    color: #d1d5db !important;
}

.dark-mode .char-counter {
    color: #94a3b8 !important;
}

/* Avatar section in dark mode */
.dark-mode .avatar-preview {
    background: #4b5563 !important;
    border-color: #6b7280 !important;
}

.dark-mode .avatar-placeholder {
    color: #9ca3af !important;
}

.dark-mode .input-hint {
    color: #94a3b8 !important;
}

/* Social media platform backgrounds in dark mode */
.dark-mode .social-icon.github { background: #1f3637 !important; }
.dark-mode .social-icon.twitter { background: #000000 !important; }
.dark-mode .social-icon.telegram { background: #0088cc !important; }
.dark-mode .social-icon.discord { background: #5865f2 !important; }
.dark-mode .social-icon.ens { background: #1969ff !important; }

/* Select dropdown arrow in dark mode */
.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Date input calendar icon in dark mode */
.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
}

/* Scrollbar for form sections in dark mode */
.dark-mode .profile-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5) !important;
}

.dark-mode .profile-content::-webkit-scrollbar-thumb:hover {
    background: #10b981 !important;
}

/* Focus states for all interactive elements */
.dark-mode .form-input:focus-visible,
.dark-mode .form-select:focus-visible,
.dark-mode .form-textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Required field indicators */
.dark-mode .form-label:has(+ input:required)::after,
.dark-mode .form-label:has(+ select:required)::after,
.dark-mode .form-label:has(+ textarea:required)::after {
    color: #ef4444;
    content: " *";
}

/* Validation states */
.dark-mode .form-input:invalid:not(:focus):not(:placeholder-shown),
.dark-mode .form-select:invalid:not(:focus),
.dark-mode .form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.dark-mode .form-input:valid:not(:focus):not(:placeholder-shown),
.dark-mode .form-select:valid:not(:focus),
.dark-mode .form-textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

/* Character counter warning */
.dark-mode .char-counter.text-red-500 {
    color: #ef4444 !important;
}

/* Form group spacing in dark mode */
.dark-mode .form-group {
    color: #d1d5db;
}

/* Label emphasis for better readability */
.dark-mode .form-label {
    font-weight: 600;
}

/* Input group focus states */
.dark-mode .social-input-group:focus-within .social-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Avatar preview hover states */
.dark-mode .avatar-preview:hover {
    border-color: #10b981;
    transition: border-color 0.2s ease;
}

/* Select option styling */
.dark-mode .form-select option {
    background: #1f3637;
    color: #f9fafb;
}

/* Range inputs (if any) */
.dark-mode input[type="range"] {
    background: #374e51;
}

.dark-mode input[type="range"]::-webkit-slider-thumb {
    background: #10b981;
}

.dark-mode input[type="range"]::-moz-range-thumb {
    background: #10b981;
}

/* Checkbox and radio buttons (if any) */
.dark-mode input[type="checkbox"],
.dark-mode input[type="radio"] {
    background: #1f3637;
    border-color: #4b5563;
}

.dark-mode input[type="checkbox"]:checked,
.dark-mode input[type="radio"]:checked {
    background: #10b981;
    border-color: #10b981;
}

/* File inputs (if any) */
.dark-mode input[type="file"] {
    background: #1f3637;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-mode input[type="file"]::file-selector-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* Search inputs in dark mode */
.dark-mode .search-input {
    background: rgb(14 25 27 / 70%) !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

.dark-mode .search-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.dark-mode .search-icon {
    color: #2a755c !important;
}

/* Filter buttons in dark mode */
.dark-mode .filter-button {
    background: rgb(30 55 59 / 70%) !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

.dark-mode .filter-button.active {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

/* Modal form elements in dark mode */
.dark-mode .modal-content {
    background: linear-gradient(135deg, #022b1c 0%, #161d28 50%, #334155 100%) !important;
    color: #cbd5e1 !important;
}

.dark-mode .modal-header {
    border-bottom-color: #374e51 !important;
}

.dark-mode .modal-footer {
    border-top-color: #374e51 !important;
}

/* Leaderboard filter elements in dark mode */
.dark-mode .premium-toggle {
    background: rgb(30 54 59 / 60%) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark-mode .radio-card {
    background: rgb(30 54 59 / 60%) !important;
    border-color: rgba(75, 85, 99, 0.8) !important;
}

.dark-mode .switch-card {
    background: rgb(30 54 59 / 60%) !important;
    border-color: rgba(75, 85, 99, 0.8) !important;
}

/* Ensure all text is readable in dark mode */
.dark-mode {
    color-scheme: dark;
}

/* Force dark background for all form containers */
.dark-mode .glass-card,
.dark-mode .task-card,
.dark-mode .modal,
.dark-mode .drawer-content,
.dark-mode .profile-drawer .drawer-content {
    color-scheme: dark;
}

/* Print styles for dark mode */
@media print {
    .dark-mode {
        background: white !important;
        color: black !important;
    }
    
    .dark-mode .form-input,
    .dark-mode .form-select,
    .dark-mode .form-textarea {
        background: white !important;
        border-color: #000 !important;
        color: black !important;
    }
}

/* Settings Drawer Styles */
.settings-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(20px);
    opacity: 0;
}

.settings-drawer.open {
    right: 0;
    transform: translateX(0);
    opacity: 1;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.drawer-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-icon i {
    color: white;
    font-size: 1rem;
}

.drawer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.dark .drawer-title {
    color: #f9fafb;
}

.drawer-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.dark .drawer-subtitle {
    color: #9ca3af;
}

.drawer-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-close-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.dark .drawer-close-btn {
    background: #374151;
    color: #d1d5db;
}

.drawer-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.dark .drawer-close-btn:hover {
    background: #4b5563;
    color: #f9fafb;
}

.drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 23 1.5rem;
}

.settings-section {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

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

.dark .settings-section {
    border-bottom-color: #374151;
}

.settings-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.dark .settings-section-title {
    color: #d1d5db;
}

.settings-options {
    space-y: 0.75rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.setting-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.setting-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dark .setting-label {
    color: #e5e7eb;
}

.setting-description {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.dark .setting-description {
    color: #9ca3af;
}

/* Switch Styles */
.setting-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.setting-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #27434a;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #10b981;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Select Styles */
.setting-select {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    min-width: 120px;
    cursor: pointer;
}

.dark .setting-select {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.setting-select:focus {
    outline: none;
    ring: 2px;
    ring-color: #10b981;
}

/* Drawer Actions */
.drawer-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

.dark .drawer-actions {
    background: #1f2937;
    border-top-color: #374151;
}

.drawer-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drawer-action-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.drawer-action-btn.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.drawer-action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.dark .drawer-action-btn.secondary {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

.drawer-action-btn.secondary:hover {
    background: #e5e7eb;
}

.dark .drawer-action-btn.secondary:hover {
    background: #4b5563;
}

/* Compact Mode */
.compact-mode .task-card {
    padding: 0.75rem;
}

.compact-mode .task-header {
    gap: 0.5rem;
}

.compact-mode .task-title {
    font-size: 0.8rem;
}

.compact-mode .task-description {
    display: none;
}

.compact-mode .task-metadata {
    margin-top: 0.25rem;
}

.compact-mode .task-points {
    font-size: 0.8rem;
}

/* No Animations */
.no-animations * {
    transition: none !important;
    animation: none !important;
}

/* Ensure proper scrolling */
.drawer-list::-webkit-scrollbar {
    width: 4px;
}

.drawer-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.dark .drawer-list::-webkit-scrollbar-track {
    background: #374151;
}

.drawer-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.dark .drawer-list::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.drawer-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark .drawer-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.token-requirement {
    animation: slideInUp 0.3s ease-out;
}

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

/* Ensure good contrast in both themes */
.token-requirement .font-mono {
    font-size: 0.7rem;
    padding: 0.125rem 0.25rem;
}

/* Add to your existing CSS */
.wallet-drawer {
    /* Same structure as other drawers */
}

.header-action-btn.wallet-status.connected {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.header-wallet-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-status-section {
    padding: 1rem;
    border-bottom: 1px solid #374151;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wallet-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.wallet-details h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wallet-details p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.balance-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.balance-item:last-child {
    margin-bottom: 0;
}

.wallet-actions {
    padding: 1rem;
}

.wallet-connect-btn {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wallet-connect-btn:hover {
    background: #059669;
}

.wallet-disconnect-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wallet-disconnect-btn:hover {
    background: #dc2626;
}

.network-info {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.network-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.network-info p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.network-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Transaction Modal Styles - Matching Design System */
.transaction-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transaction-modal.active {
    display: flex;
    opacity: 1;
}

.transaction-modal-content {
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

/* Modal Header */
.transaction-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transaction-modal-title-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.transaction-modal-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-modal-icon i {
    color: white;
    font-size: 1.25rem;
}

.transaction-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.transaction-modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.transaction-modal-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--hover-bg);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.transaction-modal-close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Modal Body */
.transaction-modal-body {
    padding: 1.5rem;
}

/* Transaction Details */
.transaction-details {
    background: var(--hover-bg);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.transaction-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.transaction-detail-item:first-child {
    padding-top: 0;
}

.transaction-detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.transaction-detail-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.transaction-detail-value.highlight {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Token Display */
.token-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.token-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.token-icon i {
    color: white;
    font-size: 1rem;
}

.token-info {
    flex: 1;
}

.token-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.token-symbol {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.token-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Warning/Info Box */
.transaction-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.transaction-warning-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.transaction-warning-header i {
    color: #f59e0b;
    font-size: 1rem;
}

.transaction-warning-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f59e0b;
}

.transaction-warning-content {
    font-size: 0.75rem;
    color: #f59e0b;
    line-height: 1.4;
}

/* Loading State */
.transaction-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.transaction-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.transaction-loading-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.transaction-loading-subtext {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Success State */
.transaction-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.transaction-success-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.transaction-success-icon i {
    color: white;
    font-size: 1.5rem;
}

.transaction-success-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.transaction-success-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.transaction-hash {
    background: var(--hover-bg);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 1rem;
}

/* Modal Footer */
.transaction-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.transaction-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.transaction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.transaction-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.transaction-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.transaction-btn-secondary {
    background: var(--hover-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.transaction-btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Network Fee Display */
.network-fee {
    background: var(--hover-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.network-fee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.network-fee-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.network-fee-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
}

.network-fee-details {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 640px) {
    .transaction-modal {
        padding: 0.5rem;
    }
    
    .transaction-modal-content {
        border-radius: 1rem;
    }
    
    .transaction-modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .transaction-modal-body {
        padding: 1.25rem;
    }
    
    .transaction-modal-footer {
        padding: 0.75rem 1.25rem 1.25rem;
        flex-direction: column;
    }
    
    .transaction-btn {
        padding: 1rem 1.5rem;
    }
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark mode specific adjustments */
.dark-mode .transaction-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    border-color: rgba(245, 158, 11, 0.4);
}

.dark-mode .transaction-details {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .network-fee {
    background: rgba(255, 255, 255, 0.05);
}

/* Compact Modal Body */
.modal-body.compact {
    padding: 1rem 1.25rem;
}

.compact-transaction-details {
    font-size: 0.875rem;
}

.compact-transaction-details .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compact-transaction-details .border-t {
    border-top-width: 1px;
}

/* Compact Modal Footer */
.modal-footer.compact {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.dark-mode .modal-footer.compact {
    border-top-color: #374151;
}

/* Compact Buttons */
.btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-compact-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-compact-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-compact-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.dark-mode .btn-compact-secondary {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

.btn-compact-secondary:hover {
    background: #e5e7eb;
}

.dark-mode .btn-compact-secondary:hover {
    background: #4b5563;
}

/* Quick Action Buttons for Purchase Options */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 60px;
}

.dark-mode .quick-action-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

.quick-action-btn:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-action-btn.required {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.dark-mode .quick-action-btn.required {
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
}

.quick-action-btn.premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.dark-mode .quick-action-btn.premium {
    background: linear-gradient(135deg, #92400e, #b45309);
}

.quick-action-btn.elite {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.dark-mode .quick-action-btn.elite {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
}

/* DEX Action Buttons */
.dex-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dark-mode .dex-action-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

.dex-action-btn:hover {
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Transaction Status */
.transaction-status {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1001;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.transaction-status.active {
    transform: translateX(-50%) translateY(0);
}

.transaction-status.status-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid #047857;
}

.transaction-status.status-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid #b91c1c;
}

.transaction-status.status-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid #1d4ed8;
}

/* Loading States */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dark-mode .loading-spinner {
    border-color: #4b5563;
    border-top-color: #10b981;
}

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

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

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

/* Enhanced focus states for accessibility */
.btn-compact:focus,
.quick-action-btn:focus,
.dex-action-btn:focus,
.modal-close-btn:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modal-content {
        border: 2px solid currentColor;
    }
    
    .btn-compact {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modal,
    .transaction-status,
    .btn-compact,
    .quick-action-btn,
    .dex-action-btn {
        animation: none;
        transition: none;
    }
}

.expired-task {
    opacity: 0.7;
}

.light-mode .expired-task {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dark-mode .expired-task {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.expired-task .task-title {
    color: #dc2626;
}

.dark-mode .expired-task .task-title {
    color: #f87171;
}

.expired-task .task-button {
    background-color: #6b7280 !important;
    cursor: not-allowed;
}

.dark-mode .expired-task .task-button {
    background-color: #4b5563 !important;
}

.expiry-info {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.light-mode .expiry-info.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dark-mode .expiry-info.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.light-mode .expiry-info.active {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dark-mode .expiry-info.active {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Advanced Criteria Styles */
.advanced-criteria {
    border-left: 2px solid #e5e7eb;
    padding-left: 8px;
    margin-left: 4px;
}

.dark .advanced-criteria {
    border-left-color: #4b5563;
}

.criteria-item {
    padding: 2px 0;
}

.criteria-item i {
    width: 16px;
    text-align: center;
    font-size: 10px;
}

/* Compact mode adjustments */
.compact-mode .advanced-criteria {
    margin-left: 2px;
    padding-left: 6px;
}

.compact-mode .criteria-item {
    padding: 1px 0;
}

.compact-mode .criteria-item i {
    font-size: 9px;
    width: 14px;
}

.react-limit-reached {
    position: relative;
}

.react-limit-reached::before {
    content: "Reaction Limit Reached";
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
}