:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #00ff41;
    --text-accent: #ffff00;
    --text-hover: #ff00ff;
    --border-color: #00ff41;
    --google-blue: #4285f4;
    --google-blue-hover: #357ae8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
}

/* Navigation */
.nav-links {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.nav-links a {
    color: var(--text-accent);
    text-decoration: none;
    border-bottom: 2px dotted var(--text-accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--text-hover);
    border-bottom-color: var(--text-hover);
    text-shadow: 0 0 10px var(--text-hover);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 700px;
}

p {
    margin: 30px 0;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    border-bottom: 2px dotted var(--text-accent);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-hover);
    border-bottom-color: var(--text-hover);
    text-shadow: 0 0 10px var(--text-hover);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: var(--text-primary);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-hover);
}

/* Auth Form Styles */
.google-signin {
    background: var(--google-blue);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.google-signin:hover {
    background: var(--google-blue-hover);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 5px var(--text-accent);
}

.login-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.login-btn:hover {
    background: var(--text-accent);
}

/* Auth Links */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--text-primary);
}

.auth-links span {
    color: var(--text-secondary);
    margin: 0 10px;
}

/* Reset Password Page */
.reset-password-form {
    max-width: 400px;
    margin: 0 auto;
}

.reset-password-form input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.reset-status, .reset-error {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.reset-status p {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.reset-error p {
    color: #ff4757;
    margin-bottom: 20px;
}

/* Rankings Section */
.rankings-section {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 40px;
}

.rankings-section.active {
    display: block;
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background: var(--bg-secondary);
    color: var(--text-accent);
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-secondary);
}

/* Utility Buttons */
.back-btn {
    margin-bottom: 20px;
    background: transparent;
    color: var(--text-accent);
    border: 1px solid var(--text-accent);
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.back-btn:hover {
    background: var(--text-accent);
    color: var(--bg-primary);
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

/* Locked Content Overlay */
.locked-overlay {
    position: relative;
    filter: blur(4px);
    pointer-events: none;
}

.unlock-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    padding: 30px;
    border: 2px solid var(--text-accent);
    border-radius: 10px;
    z-index: 10;
    filter: none;
}

.unlock-btn {
    background: var(--text-accent);
    color: var(--bg-primary);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-top: 15px;
}

.unlock-btn:hover {
    background: var(--text-hover);
    box-shadow: 0 0 15px var(--text-hover);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--bg-secondary);
    border-top: 3px solid var(--text-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        top: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Column Controls */
.column-controls {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
}

.column-controls h3 {
    color: var(--text-accent);
    margin-bottom: 10px;
    font-size: 16px;
}

.column-controls label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

.column-controls input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--text-accent);
}

.column-controls input[type="checkbox"]:checked {
    background-color: var(--text-accent);
}