/* AccessVector Portal Styles */

/* Base styles */
html {
    background-color: #000000; /* Ensure root background is black for overscroll */
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, black, rgb(24, 24, 27), black);
    background-color: #000000; /* Black background fallback */
    color: #fff;
    font-family: 'Inter', sans-serif;
    
    /* Allow rubber band but with black background */
    -webkit-overflow-scrolling: touch;
}

/* Custom properties */
:root {
    --primary-red: rgb(239, 68, 68);
    --primary-cyan: rgb(6, 182, 212);
    --border-red: rgba(239, 68, 68, 0.2);
    --glow-red: rgba(239, 68, 68, 0.3);
    --glow-cyan: rgba(6, 182, 212, 0.3);
}

/* Tier Badges */
.tier-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-free {
    background: rgba(107, 114, 128, 0.2);
    color: rgb(156, 163, 175);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.tier-standard {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tier-premium {
    background: rgba(245, 158, 11, 0.2);
    color: rgb(245, 158, 11);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tier-unlimited {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2), rgba(255, 20, 147, 0.2), rgba(138, 43, 226, 0.3));
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.1);
    animation: glow-pulse 2s ease-in-out infinite alternate;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.tier-beta_tester {
    background: rgba(147, 51, 234, 0.2);
    color: rgb(147, 51, 234);
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.tier-admin {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: rgb(245, 158, 11);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-suspended {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Portal Navigation */
.portal-nav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-red);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-cyan));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.nav-link {
    color: rgb(209, 213, 219);
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(239, 68, 68, 0.9);
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.6),
                 0 0 50px rgba(239, 68, 68, 0.3);
}

.nav-link.active {
    color: var(--primary-red);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-link:hover::after {
    width: 80%;
    opacity: 0.6;
}

/* Content wrapper */
.content-wrapper {
    min-height: calc(100vh - 64px);
    padding-top: 2rem;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, var(--primary-red), var(--primary-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Stat Cards */
.stat-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border-red);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
}

.stat-icon.tier-premium {
    background: rgba(6, 182, 212, 0.1);
}

.stat-icon.tier-beta_tester {
    background: rgba(147, 51, 234, 0.1);
}

.stat-icon.tier-unlimited {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2), rgba(255, 20, 147, 0.2), rgba(138, 43, 226, 0.3));
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.1);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.stat-icon.tier-premium-donated {
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.3), rgba(255, 105, 180, 0.2));
    border: 2px solid rgba(255, 20, 147, 0.6);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4), inset 0 0 10px rgba(255, 20, 147, 0.1);
    animation: pink-glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes pink-glow-pulse {
    from {
        box-shadow: 0 0 15px rgba(255, 20, 147, 0.4), inset 0 0 10px rgba(255, 20, 147, 0.1);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 20, 147, 0.6), inset 0 0 15px rgba(255, 20, 147, 0.2);
    }
}

.stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-red);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
}

.stat-sublabel {
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
}

/* Action Cards */
.action-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border-red);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Section Cards */
.section-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border-red);
    border-radius: 0.75rem;
    padding: 2rem;
}

/* Buttons */
.primary-button {
    background: linear-gradient(to right, var(--primary-red), rgba(239, 68, 68, 0.8));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-red);
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--border-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.secondary-button:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px var(--glow-red);
}

.donate-button {
    background: linear-gradient(to right, var(--primary-cyan), rgba(6, 182, 212, 0.8));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-cyan);
}

/* Assessment Table */
.assessment-table {
    width: 100%;
    border-collapse: collapse;
}

.assessment-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    color: rgb(156, 163, 175);
    font-weight: 500;
}

.assessment-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.assessment-table tr:hover {
    background: rgba(239, 68, 68, 0.05);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-queued {
    background: rgba(156, 163, 175, 0.2);
    color: rgb(156, 163, 175);
}

.status-running {
    background: rgba(234, 179, 8, 0.2);
    color: rgb(234, 179, 8);
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
}

/* Type Badges */
.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.type-free {
    background: rgba(156, 163, 175, 0.2);
    color: rgb(156, 163, 175);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.type-standard {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.type-premium {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.2), rgba(6, 182, 212, 0.2));
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Legacy support for existing scans */
.type-basic {
    background: rgba(156, 163, 175, 0.2);
    color: rgb(156, 163, 175);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.type-beta_tester {
    background: rgba(147, 51, 234, 0.2);
    color: rgb(147, 51, 234);
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.type-unlimited {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2), rgba(255, 20, 147, 0.2), rgba(138, 43, 226, 0.3));
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.1);
    animation: glow-pulse 2s ease-in-out infinite alternate;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.1);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 215, 0, 0.2);
    }
}

/* Sparkle animations for unlimited tier */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle-twinkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 70%;
    right: 20%;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
}

.sparkle-4 {
    top: 60%;
    left: 25%;
    animation-delay: 0.5s;
}

.sparkle-5 {
    top: 30%;
    right: 30%;
    animation-delay: 1.5s;
}

.sparkle-6 {
    top: 80%;
    left: 60%;
    animation-delay: 2.5s;
}

.sparkle-7 {
    top: 15%;
    left: 50%;
    animation-delay: 0.8s;
}

.sparkle-8 {
    top: 85%;
    right: 10%;
    animation-delay: 2.2s;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #FFD700;
    }
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Celebration Modal Animations */
.celebration-modal-entrance {
    animation: modal-entrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-entrance {
    0% {
        transform: scale(0.7) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.celebration-exit {
    animation: modal-exit 0.5s ease-in-out forwards;
}

@keyframes modal-exit {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) rotate(3deg);
        opacity: 0;
    }
}

.celebration-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #EF4444, #F97316, #FDE047);
    border-radius: 50%;
    animation: sparkle-dance 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

.celebration-sparkle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.celebration-sparkle-2 { top: 20%; right: 15%; animation-delay: 0.3s; }
.celebration-sparkle-3 { top: 30%; left: 80%; animation-delay: 0.6s; }
.celebration-sparkle-4 { top: 40%; left: 20%; animation-delay: 0.9s; }
.celebration-sparkle-5 { top: 50%; right: 25%; animation-delay: 1.2s; }
.celebration-sparkle-6 { top: 60%; left: 70%; animation-delay: 1.5s; }
.celebration-sparkle-7 { top: 70%; left: 30%; animation-delay: 0.2s; }
.celebration-sparkle-8 { top: 80%; right: 20%; animation-delay: 0.7s; }
.celebration-sparkle-9 { top: 15%; left: 60%; animation-delay: 1.1s; }
.celebration-sparkle-10 { top: 85%; left: 50%; animation-delay: 0.4s; }

@keyframes sparkle-dance {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(0.5);
        opacity: 0.3;
    }
    25% {
        transform: translateX(10px) translateY(-15px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateX(-5px) translateY(-25px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translateX(-10px) translateY(-10px) scale(1);
        opacity: 0.9;
    }
}

.celebration-icon-bounce {
    animation: icon-bounce 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes icon-bounce {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.celebration-success-pulse {
    animation: success-pulse 2s ease-in-out infinite;
}

@keyframes success-pulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.8), 0 0 60px rgba(249, 115, 22, 0.4);
    }
}

.celebration-title-slide {
    animation: title-slide 1s ease-out 0.5s both;
}

@keyframes title-slide {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.celebration-text-fade-in {
    animation: text-fade-in 1s ease-out 1s both;
}

.celebration-text-fade-in-delay {
    animation: text-fade-in 1s ease-out 1.5s both;
}

@keyframes text-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.celebration-button-slide {
    animation: button-slide 1s ease-out 2s both;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.celebration-button-slide:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.7);
}

@keyframes button-slide {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.type-admin {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.2), rgba(234, 179, 8, 0.2));
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Feature Preview */
.feature-preview {
    padding: 1rem;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-preview:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgb(17, 17, 17);
    border: 1px solid var(--border-red);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

/* Donation Modal Styles */
.preset-amount-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(55, 65, 81, 0.8);
    color: white;
    border: 2px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.preset-amount-btn:hover {
    background: rgba(6, 182, 212, 0.8);
    border-color: rgb(6, 182, 212);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.preset-amount-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Selected state for preset buttons */
.preset-amount-btn.selected {
    background: linear-gradient(135deg, rgb(6, 182, 212), rgb(8, 145, 178));
    border-color: rgb(6, 182, 212);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

#card-element {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
}

/* Ensure donation modal is visible and properly styled */
#donationModal {
    z-index: 9999 !important;
}

#donationModal .bg-gray-800 {
    background-color: rgb(31, 41, 55) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#donationModal .auth-input {
    background: rgba(31, 41, 55, 0.8);
    border: 2px solid rgba(75, 85, 99, 0.5);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#donationModal .auth-input:focus {
    outline: none;
    border-color: rgb(6, 182, 212);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background: rgba(31, 41, 55, 0.9);
}

#donationModal .auth-input::placeholder {
    color: rgba(156, 163, 175, 0.8);
    font-weight: 400;
}

/* Hide number input spinners */
#donationModal .auth-input::-webkit-outer-spin-button,
#donationModal .auth-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#donationModal .auth-input[type=number] {
    -moz-appearance: textfield;
}

#donationModal .auth-button {
    background: linear-gradient(to right, var(--primary-red), rgba(239, 68, 68, 0.8));
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: rgb(156, 163, 175);
    cursor: pointer;
}

.close:hover {
    color: var(--primary-red);
}

/* Donation Tiers */
.donation-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.donation-tier {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid var(--border-red);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-tier:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.donation-tier.selected {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--primary-red);
    box-shadow: 0 0 20px var(--glow-red);
}

.tier-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.tier-benefit {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
    margin-top: 0.25rem;
}

/* Custom Amount Input */
.custom-amount-input {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-red);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--glow-red);
}

.donate-button-large {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, var(--primary-cyan), rgba(6, 182, 212, 0.8));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.donate-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-cyan);
}

/* Action Link */
.action-link {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-link:hover {
    color: white;
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* New Assessment Form */
.assessment-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgb(156, 163, 175);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-red);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--glow-red);
}

/* Fix dropdown arrow spacing for select elements */
select.form-input {
    padding-right: 2rem;
    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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem 1.25rem;
    appearance: none;
}

/* Dark theme for date picker */
input[type="date"] {
    color-scheme: dark;
}

/* Webkit date picker dark theme */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Firefox date picker dark theme */
@-moz-document url-prefix() {
    input[type="date"] {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: 1px solid var(--border-red);
    }
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: rgb(107, 114, 128);
}

/* Scan Type Selection */
.scan-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.scan-type-option {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-red);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-type-option:hover {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.05);
}

.scan-type-option.selected {
    border-color: var(--primary-red);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 20px var(--glow-red);
}

.scan-type-title {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.scan-type-description {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(239, 68, 68, 0.2);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-red), var(--primary-cyan));
    border-radius: 4px;
    transition: width 0.5s ease;
    animation: pulse 2s infinite;
}

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

/* Auto-refresh indicator */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Real-time stats indicators */
.stat-card.realtime {
    position: relative;
}

.stat-card.realtime::after {
    content: '●';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--primary-cyan);
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

/* Sortable table headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    padding-right: 30px; /* Space for arrow */
}

.sortable:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-red);
}

.sortable .sort-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
    color: rgb(209, 213, 219);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.sortable:hover .sort-icon {
    opacity: 1;
    color: var(--primary-red);
}

/* Active sort states */
.sortable.sort-asc,
.sortable.sort-desc {
    background: rgba(239, 68, 68, 0.2);
    color: var(--primary-red);
    font-weight: 700;
    border-left: 3px solid var(--primary-red);
    position: relative;
    padding-left: 8px; /* Offset for border */
    margin-right: 2px; /* Prevent bleeding into next column */
}

.sortable.sort-asc .sort-icon,
.sortable.sort-desc .sort-icon {
    opacity: 1;
    color: rgb(34, 197, 94);
}

/* Active user indicator */
.active-indicator {
    width: 12px;
    height: 12px;
    background: rgb(34, 197, 94);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
    }
    to {
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    }
}

/* Recent user indicator (5-15 minutes) */
.recent-indicator {
    width: 12px;
    height: 12px;
    background: rgb(245, 158, 11);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    animation: yellowGlow 2s ease-in-out infinite alternate;
}

@keyframes yellowGlow {
    from {
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
    }
    to {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
    }
}

/* Inactive user indicator */
.inactive-indicator {
    width: 12px;
    height: 12px;
    background: rgb(107, 114, 128);
    border-radius: 50%;
}

/* Consistent tier badge width */
.tier-badge {
    min-width: 120px;
    text-align: center;
    display: inline-block;
}

