/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    background: #0f0f23 !important;
    background-color: #0f0f23 !important;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ensure dark background on all devices */
html {
    background: #0f0f23 !important;
    background-color: #0f0f23 !important;
}

/* Force dark background on mobile */
@supports (-webkit-touch-callout: none) {
    body, html {
        background: #0f0f23 !important;
        background-color: #0f0f23 !important;
    }
}

/* 3D Background Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo {
    font-size: 2rem;
}

.nav-title {
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Analysis Section */
.analysis-section {
    max-width: 600px;
    margin: 0 auto;
}

.earning-callout {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.callout-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.earning-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.earning-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

.option-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Form Styles */
.analysis-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00d4ff;
    font-size: 1.1rem;
}

.input-container {
    display: flex;
    gap: 1rem;
}

.form-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Preview Section */
.preview-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: white;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.step-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Recent Links */
.recent-section {
    background: rgba(255, 255, 255, 0.02);
}

.recent-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    align-items: start;
}

@media (max-width: 1200px) {
    .recent-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .recent-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .recent-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure grid cards maintain consistent height and layout */
.preview-card {
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.preview-card.content-expanded {
    height: auto;
    min-height: 400px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.preview-card.content-expanded {
    height: auto;
    min-height: 400px;
}

.preview-card:hover {
    transform: translateY(-3px);
}

/* Constrain preview images inside cards */
.preview-image-container {
    max-height: 120px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.preview-card .preview-image {
    display: none; /* Hidden by default until loaded */
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.preview-header {
    margin-bottom: 12px;
    word-break: break-word;
}

.preview-content {
    margin-bottom: 12px;
    word-break: break-word;
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.preview-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6rem;
    max-height: 2.6rem;
}

.preview-description {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.2rem;
}

.preview-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.ai-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ai-score-label {
    font-weight: 600;
    color: #00d4ff;
}

.ai-score-value {
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mark-ai-btn, .mark-not-ai-btn, .vote-btn {
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 100px;
    text-align: center;
}

.mark-ai-btn, .ai-btn {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.mark-ai-btn:hover, .ai-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.mark-not-ai-btn, .real-btn {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.mark-not-ai-btn:hover, .real-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: translateY(-2px);
}

/* Voted button styling */
.vote-btn.voted {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
    opacity: 1 !important;
    cursor: default !important;
}

.vote-btn:disabled:not(.voted) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.preview-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.preview-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.preview-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

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

.description.expanded {
    display: block;
}

.see-more {
    color: #00d4ff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.rank {
    font-weight: 700;
    font-size: 1.2rem;
    color: #00d4ff;
    min-width: 40px;
}

.user {
    flex: 1;
    font-weight: 600;
    margin-left: 1rem;
}

.score {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Newsletter */
.newsletter-section {
    background: rgba(255, 255, 255, 0.02);
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #00d4ff;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.newsletter-response {
    margin-top: 1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(26, 26, 46, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.modal-content textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1.5rem;
}

.modal-content textarea:focus {
    outline: none;
    border-color: #00d4ff;
}

.modal-content textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 10000;
    max-width: 90%;
    width: auto;
    min-width: 200px;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.toast:not(.hidden) {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    transform: translateX(-50%) translateY(100px);
}

/* Mobile-specific toast improvements - Higher specificity */
@media (max-width: 768px) {
    body .toast {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        padding: 16px 24px !important;
        font-size: 15px !important;
        max-width: calc(100vw - 40px) !important;
        width: auto !important;
        min-width: 250px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
        z-index: 10000 !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.4 !important;
        background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        font-weight: 600 !important;
    }
    
    body .toast:not(.hidden) {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
    }
    
    body .toast.hidden {
        transform: translate(-50%, calc(-50% + 20px)) !important;
        opacity: 0 !important;
    }
}

/* Logo Styles */
.nav-logo-img {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
    border-radius: 8px;
    object-fit: cover;
}

.hero-logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.hero-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

/* Footer Logo */
.footer-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    border-radius: 4px;
    object-fit: cover;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #8b5cf6);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.6);
}

.mobile-menu-toggle:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.8);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background: rgba(139, 92, 246, 0.4);
    border-color: #8b5cf6;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.show {
    transform: translateY(0);
    display: block;
}

/* Background overlay when mobile menu is open */
body.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

body.mobile-menu-open .mobile-menu {
    z-index: 1001;
}

/* Mobile login button states */
.mobile-login-btn {
    display: flex;
}

.mobile-login-btn.hidden {
    display: none !important;
}

/* Mobile logged-in section states */
.mobile-logged-in {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mobile-logged-in.hidden {
    display: none !important;
}

.mobile-menu-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #8b5cf6;
}

.mobile-user-section {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-login-btn {
    background: linear-gradient(135deg, #8b5cf6, #00d4ff);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    width: auto;
    display: inline-block;
    text-align: center;
    justify-content: center;
    gap: 8px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mobile-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.mobile-logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Mobile Top Sign In Button */
.mobile-top-signin {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-right: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-top-signin:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .nav {
        padding: 0.75rem 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links > .nav-link,
    .nav-links > .btn-primary,
    .nav-links > .user-info,
    #customSignInBtn,
    #googleUserInfo {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-top-signin {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .earning-callout {
        margin-bottom: 2rem;
    }

    .callout-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .earning-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .earning-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .option-icon {
        font-size: 2.5rem;
    }

    .input-container {
        flex-direction: column;
        gap: 1rem;
    }

    .form-input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .recent-links-grid {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        max-width: 100%;
    }
    
    .preview-card {
        max-width: 300px;
        min-width: 240px;
    }

    .leaderboard-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input {
        width: 100%;
    }

    .newsletter-btn {
        width: 100%;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .toast {
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .callout-title {
        font-size: 1.3rem;
    }

    .earning-option {
        padding: 1rem;
    }

    .form-input {
        padding: 0.875rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
    }
}

/* iPhone specific fixes */
@media screen and (max-width: 430px) and (-webkit-min-device-pixel-ratio: 2) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        overflow-x: hidden;
    }

    /* Fix viewport issues */
    .container {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .earning-callout {
        padding: 1rem;
        margin: 1rem 0;
    }

    .callout-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .earning-options {
        gap: 1rem;
    }

    .earning-option {
        padding: 0.875rem;
    }

    .option-content h3 {
        font-size: 1rem;
    }

    .option-content p {
        font-size: 0.85rem;
    }

    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

    .submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px; /* iOS touch target */
    }

    .btn-primary, .mark-ai-btn, .mark-not-ai-btn {
        min-height: 44px;
        padding: 8px 16px;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .step-card {
        padding: 1.25rem 1rem;
    }

    .step-card h3 {
        font-size: 1.2rem;
    }

    .step-card p {
        font-size: 0.85rem;
    }

    .preview-card {
        padding: 1rem;
    }

    .preview-card h3 {
        font-size: 1rem;
    }

    .preview-card p {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        width: calc(100vw - 1rem);
    }

    .modal-content textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 80px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Better voting buttons on mobile */
    .vote-buttons, .preview-actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100%;
        margin-top: 1rem;
    }

    .vote-buttons button, .vote-btn {
        flex: 1;
        padding: 16px 12px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 52px;
        font-weight: 600;
        text-align: center;
    }
    
    .preview-card {
        height: auto !important;
        min-height: 350px !important;
    }
}

/* Content expansion styles */
.show-more-btn {
    background: none;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 0;
    text-decoration: underline;
    opacity: 0.8;
    margin-top: 4px;
}

.show-more-btn:hover {
    opacity: 1;
}

.content-expanded .preview-description {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.content-expanded .preview-title {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

@media (max-width: 600px) {
    /* Better navigation on mobile */
    .nav-container {
        padding: 0 10px;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* Improve grid layouts */
    .earning-options {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .earning-option {
        width: 100%;
        box-sizing: border-box;
    }

    .steps-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-card {
        width: 100%;
        box-sizing: border-box;
    }

    /* Fix preview cards spacing */
    .preview-cards-container {
        gap: 1rem;
    }

    .recent-links-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 100%;
    }

    .preview-card {
        width: 100%;
        max-width: 350px;
        min-width: unset;
        box-sizing: border-box;
        margin-bottom: 0;
        padding: 1rem;
    }
    
    .preview-image-container {
        max-height: 100px;
    }
    
    .preview-card .preview-image {
        max-width: 100px;
        max-height: 100px;
    }

    /* Better form styling */
    .submit-form {
        width: 100%;
        max-width: none;
    }

    .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }

    .form-input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        padding: 12px;
        border-radius: 8px;
    }

    /* Leaderboard improvements */
    .leaderboard-item {
        padding: 12px 8px;
        font-size: 14px;
        gap: 8px;
    }

    /* Toast positioning */
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        margin: 0 auto;
        font-size: 14px;
        padding: 12px 16px;
    }

    /* Fix horizontal scrolling issues */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Better section spacing */
    .section {
        padding: 1.5rem 0;
        overflow-x: hidden;
    }

    /* Improve 3D canvas for mobile */
    #three-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -1;
    }
}

/* COMPLETE MOBILE OVERRIDE - Industry Standard iPhone UX */
@media screen and (max-width: 768px) {
    /* Force dark background everywhere */
    *, *::before, *::after, html, body {
        background-color: #0f0f23 !important;
        color: #ffffff !important;
    }

    body {
        background: #0f0f23 !important;
        background-image: none !important;
        min-height: 100vh;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .container {
        padding: 0 16px !important;
        max-width: 100% !important;
    }

    /* Navigation - Modern mobile design */
    .nav {
        background: rgba(15, 15, 35, 0.95) !important;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0 !important;
    }
    
    /* Ensure sign-in button is visible on mobile */
    .btn-primary,
    .mobile-login-btn,
    #customSignInBtn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(135deg, #8b5cf6, #00d4ff) !important;
        color: white !important;
        border: none !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-weight: 500 !important;
        font-size: 0.85rem !important;
        cursor: pointer !important;
        font-size: 14px !important;
    }
    
    /* Simple mobile sign-in button */
    .mobile-signin-btn,
    #mobileSignInButton {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        color: #8b5cf6 !important;
        border: 1px solid #8b5cf6 !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        font-weight: 500 !important;
        font-size: 0.75rem !important;
        cursor: pointer !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-signin-btn:hover,
    #mobileSignInButton:hover {
        background: rgba(139, 92, 246, 0.1) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Hide desktop sign-in on mobile, show mobile sign-in */
    #customSignInBtn {
        display: none !important;
    }
    
    #mobileSignInButton {
        display: inline-block !important;
    }

    .nav-container {
        padding: 12px 16px !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        gap: 0 !important;
    }

    .logo {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
    }

    .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        position: absolute !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .nav-links .nav-link {
        display: none !important;
    }

    .btn-primary {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        border: none !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        min-height: 32px !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .btn-primary:active {
        transform: scale(0.95) !important;
    }

    .btn-primary img {
        width: 14px !important;
        height: 14px !important;
    }

    .user-info {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.75rem !important;
        color: #ffffff !important;
        background: rgba(26, 26, 46, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        padding: 4px 8px !important;
        backdrop-filter: blur(10px) !important;
    }

    .user-info.hidden {
        display: none !important;
    }

    .user-avatar {
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .logout-btn {
        padding: 2px 6px !important;
        font-size: 0.7rem !important;
        background: rgba(239, 68, 68, 0.8) !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        border-radius: 4px !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        margin-left: 2px !important;
    }

    .logout-btn:active {
        background: rgba(239, 68, 68, 1) !important;
        transform: scale(0.95) !important;
    }

    /* Hero Section - Mobile optimized */
    .hero {
        padding: 80px 0 40px !important;
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%) !important;
        text-align: center !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        padding: 0 8px !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        color: rgba(255, 255, 255, 0.75) !important;
        max-width: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 8px !important;
    }

    /* Earning Callout - Card-based design */
    .earning-callout {
        margin: 1.5rem 0 !important;
        padding: 20px 16px !important;
        background: rgba(26, 26, 46, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }

    .callout-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        color: #ffffff !important;
        text-align: center !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }

    .earning-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 1rem !important;
    }

    .earning-option {
        padding: 16px !important;
        background: rgba(22, 33, 62, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
    }

    .earning-option:active {
        background: rgba(22, 33, 62, 0.8) !important;
        transform: scale(0.98) !important;
        border-color: rgba(99, 102, 241, 0.3) !important;
    }

    .option-icon {
        font-size: 1.5rem !important;
        flex-shrink: 0 !important;
    }

    .option-content h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .option-content p {
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    /* Forms - Touch-friendly */
    .input-container {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 1.5rem !important;
    }

    .form-input {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 16px !important; /* Prevents zoom */
        border-radius: 8px !important;
        background: rgba(26, 26, 46, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        box-sizing: border-box !important;
        min-height: 48px !important;
    }

    .form-input::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .form-input:focus {
        outline: none !important;
        border-color: rgba(99, 102, 241, 0.5) !important;
        background: rgba(26, 26, 46, 0.9) !important;
    }

    .submit-btn {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        min-height: 48px !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        border: none !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .submit-btn:active {
        transform: scale(0.98) !important;
    }

    /* Sections - Proper spacing */
    .section {
        padding: 2rem 0 !important;
        background: transparent !important;
    }

    .section-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        padding: 0 16px !important;
    }

    /* Steps Grid - Stacked cards */
    .steps-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 !important;
    }

    .step-card {
        padding: 16px !important;
        background: rgba(26, 26, 46, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important;
    }

    .step-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .step-card p {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    /* Preview Cards - Mobile optimized */
    .preview-card {
        background: rgba(26, 26, 46, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin-bottom: 1rem !important;
        backdrop-filter: blur(10px) !important;
    }

    .preview-card h3 {
        font-size: 0.95rem !important;
        color: #ffffff !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }

    .preview-card p {
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.4 !important;
    }

    /* Vote Buttons - Touch optimized */
    .vote-buttons, .preview-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    .vote-buttons button, .vote-btn {
        flex: 1 !important;
        padding: 18px 12px !important;
        font-size: 1rem !important;
        min-height: 56px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        word-break: break-word !important;
    }

    .vote-buttons button:active, .vote-btn:active {
        transform: scale(0.95) !important;
    }

    /* Modal - Full screen on mobile */
    .modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.8) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10000 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .modal.hidden {
        display: none !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 400px !important;
        background: rgba(15, 15, 35, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 16px !important;
        padding: 20px !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
        color: #ffffff !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    .modal-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .modal-content p {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .modal-content textarea {
        width: 100% !important;
        min-height: 80px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        background: rgba(26, 26, 46, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        color: #ffffff !important;
        resize: vertical !important;
        box-sizing: border-box !important;
        font-family: inherit !important;
        margin-bottom: 1rem !important;
    }

    .modal-content textarea::placeholder {
        color: rgba(255, 255, 255, 0.5) !important;
    }

    .modal-content .button-group {
        display: flex !important;
        gap: 8px !important;
        margin-top: 1rem !important;
    }

    .modal-content button {
        flex: 1 !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        border: none !important;
        cursor: pointer !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        min-height: 44px !important;
    }

    .modal-content button:active {
        transform: scale(0.98) !important;
    }

    /* Enhanced Leaderboard Styles */
    .leaderboard-item {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        gap: 0.75rem !important;
        align-items: center !important;
        padding: 0.75rem !important;
        background: rgba(26, 26, 46, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        margin-bottom: 0.5rem !important;
    }

    .leaderboard-item:hover {
        background: rgba(26, 26, 46, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateX(4px) !important;
    }

    .leaderboard-item.current-user {
        background: rgba(99, 102, 241, 0.2) !important;
        border-color: rgba(99, 102, 241, 0.4) !important;
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3) !important;
    }

    .leaderboard-item .rank {
        font-weight: 600 !important;
        color: #fbbf24 !important;
        min-width: 40px !important;
    }

    .leaderboard-item .user {
        font-weight: 500 !important;
        color: #ffffff !important;
    }

    .leaderboard-item .score {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .leaderboard-item .points {
        font-weight: 600 !important;
        color: #10b981 !important;
        font-size: 0.9rem !important;
    }

/* Tooltip Styles - VERY VISIBLE */
.role-title {
    position: relative;
    cursor: help;
    color: #00d4ff;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-color: #00d4ff;
    text-decoration-thickness: 3px;
    display: inline-block;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px dashed #00d4ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.role-title:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.3), rgba(139, 92, 246, 0.3));
    border-color: #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.role-title::after {
    content: attr(data-tooltip);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #ff0080, #00d4ff, #8b5cf6);
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #ffffff;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 15px 40px rgba(0, 212, 255, 0.5), 
        0 10px 25px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 99999;
    pointer-events: none;
    max-width: 400px;
    width: 90vw;
    text-align: center;
    line-height: 1.6;
    backdrop-filter: blur(20px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.role-title::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #00d4ff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99999;
}

.role-title:hover::after,
.role-title:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.role-title:hover::before,
.role-title:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Desktop specific improvements */
@media (min-width: 769px) {
    .role-title {
        user-select: none;
    }
    
    .role-title:hover::after {
        animation: tooltipPulse 0.3s ease-out;
    }
}

/* Mobile tooltip improvements */
@media (max-width: 768px) {
    .role-title::after {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        max-width: 280px;
        font-size: 0.9rem;
    }
    
    .role-title:hover::after,
    .role-title:focus::after,
    .role-title:active::after {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .role-title::before {
        display: none;
    }
}

@keyframes tooltipPulse {
    0% { transform: translateX(-50%) scale(0.9); }
    50% { transform: translateX(-50%) scale(1.02); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes tooltipFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) scale(1.02);
    }
}

/* BIG BOX with RUNNING BORDER EFFECT */
.animated-border {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Running border animation around the big box */
.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 6px;
    background: linear-gradient(45deg, #ff0080, #00d4ff, #8b5cf6, #ff0080, #00ff80, #ff0080);
    background-size: 300% 300%;
    animation: gradientShift 3s ease-in-out infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

/* Animated dots running around the border */
.animated-border::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 26px;
    background: 
        radial-gradient(circle at 0% 0%, #ff0080 0%, transparent 20%),
        radial-gradient(circle at 25% 0%, #00d4ff 0%, transparent 20%),
        radial-gradient(circle at 50% 0%, #8b5cf6 0%, transparent 20%),
        radial-gradient(circle at 75% 0%, #ff0080 0%, transparent 20%),
        radial-gradient(circle at 100% 0%, #00d4ff 0%, transparent 20%);
    background-size: 20% 100%;
    animation: runningDots 2s linear infinite;
    z-index: -1;
}

/* Make input container inside the big box */
.animated-border .input-container {
    position: relative;
    z-index: 1;
    padding: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

    /* Toast - Bottom position */
    .toast {
        position: fixed !important;
        bottom: 20px !important;
        left: 16px !important;
        right: 16px !important;
        background: rgba(26, 26, 46, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 16px !important;
        color: #ffffff !important;
        backdrop-filter: blur(20px) !important;
        z-index: 9999 !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }

    /* Leaderboard - Mobile cards */
    .leaderboard-item {
        background: rgba(26, 26, 46, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        padding: 12px 16px !important;
        margin-bottom: 8px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        color: #ffffff !important;
        font-size: 0.9rem !important;
    }

    /* 3D Canvas - Optimized for mobile */
    #three-canvas {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -1 !important;
        opacity: 0.3 !important;
    }
}

/* Utility Classes */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.mr-2 { margin-right: 0.5rem; }

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.preview-card {
    animation: fadeIn 0.5s ease;
}

/* Status badges */
.likely-ai {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.mixed {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.likely-real {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Desktop: Hide mobile sign-in button, show desktop button */
@media (min-width: 769px) {
    .mobile-signin-btn,
    #mobileSignInButton {
        display: none !important;
    }
    
    #customSignInBtn {
        display: inline-block !important;
    }
    
    /* Desktop glassmorphism submit form styling */
    .submit-form {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 16px !important;
        backdrop-filter: blur(10px) !important;
        padding: 2rem !important;
    }
    
    .form-input {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 12px !important;
        padding: 16px 20px !important;
        color: white !important;
        font-size: 1rem !important;
        transition: all 0.3s ease !important;
    }
    
    .form-input:focus {
        outline: none !important;
        border-color: #00d4ff !important;
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2) !important;
        transition: none !important;
    }
    
    /* Desktop dynamic rotation effects like mobile */
    @keyframes desktopSubmitRotate {
        0% { transform: rotate(0deg) scale(1); }
        25% { transform: rotate(-1deg) scale(1.02); }
        50% { transform: rotate(0deg) scale(1.04); }
        75% { transform: rotate(1deg) scale(1.02); }
        100% { transform: rotate(0deg) scale(1); }
    }
    
    .submit-form:hover {
        animation: desktopSubmitRotate 0.6s ease-in-out !important;
    }
    
    .submit-btn:active {
        transform: translateY(-2px) scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    .submit-btn {
        background: linear-gradient(135deg, #00d4ff, #8b5cf6) !important;
        border: none !important;
        padding: 16px 32px !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        min-width: 160px !important;
    }
    
    .submit-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3) !important;
    }
    
    /* Community review message styling for submit form */
    .community-review-message {
        background: rgba(139, 92, 246, 0.1) !important;
        border: 1px solid rgba(139, 92, 246, 0.3) !important;
        border-radius: 12px !important;
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    .review-notice h4 {
        color: #8b5cf6 !important;
        margin: 0.5rem 0 !important;
        font-size: 1.1rem !important;
    }
    
    .review-notice p {
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 0.5rem 0 1rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    .current-status {
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px !important;
        padding: 0.75rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.85rem !important;
    }
    
    /* Mission expandable section */
    .mission-expand-container {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .mission-expand-btn {
        background: rgba(139, 92, 246, 0.2);
        border: 1px solid rgba(139, 92, 246, 0.4);
        border-radius: 8px;
        padding: 0.75rem 1.5rem;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 auto;
    }
    
    .mission-expand-btn:hover {
        background: rgba(139, 92, 246, 0.3);
        transform: translateY(-2px);
    }
    
    .expand-arrow {
        transition: transform 0.3s ease;
    }
    
    .mission-expand-btn.expanded .expand-arrow {
        transform: rotate(180deg);
    }
    
    .mission-expandable {
        transition: all 0.3s ease;
    }
    
    .mission-expandable.hidden {
        display: none;
    }
    
    /* Flexible preview containers */
    .preview-container, .community-preview, .analysis-form .preview {
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }
}

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

.modal-content {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.modal-close:hover {
    background: rgba(139, 92, 246, 0.1);
}

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    color: #e0e7ff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 45, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: none;
    box-sizing: border-box;
    font-family: inherit;
}

#justificationInput {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
}

#justificationInput:focus {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Remove all textarea effects that cause lag */
textarea {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

textarea:focus {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: none;
    transition: none;
}

.form-group input::placeholder {
    color: rgba(224, 231, 255, 0.5);
}

/* Force hidden state to always win - highest specificity */
.mobile-signin-btn.hidden,
#mobileSignInButton.hidden,
#customSignInBtn.hidden,
#mobileSignInBtn.hidden,
button.hidden,
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* AI Score Highlighting Styles */
.ai-score {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
    transition: all 0.3s ease;
}

.ai-score.high {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.ai-score.medium {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.ai-score.low {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.ai-score.no-votes {
    background: rgba(156, 163, 175, 0.15);
    border-color: rgba(156, 163, 175, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.ai-score .score-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.ai-score .score-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-score:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ai-score.high:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.ai-score.medium:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.ai-score.low:hover {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Additional highlighting for likely-ai, mixed, likely-real classes */
.likely-ai {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

.mixed {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #f59e0b !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

.likely-real {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2) !important;
}

/* Voting button styles */
.vote-btn {
    padding: 10px 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vote-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.vote-btn.ai-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.vote-btn.ai-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.vote-btn.not-ai-btn {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.vote-btn.not-ai-btn:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

/* Mission Section Styles */
.mission-section {
    background: linear-gradient(135deg, rgba(13, 13, 18, 0.95), rgba(30, 41, 59, 0.8));
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-subtitle {
    color: #60a5fa;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.mission-why,
.mission-how,
.mission-vision,
.mission-cta {
    margin-bottom: 3rem;
    text-align: left;
}

.mission-why h3,
.mission-how h3,
.mission-vision h3,
.mission-cta h3 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.mission-why p,
.mission-cta p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.mission-steps {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.mission-step:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.mission-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.mission-step-content h4 {
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mission-step-content p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.vision-text {
    font-size: 1.2rem;
    color: #60a5fa;
    font-style: italic;
    text-align: center;
    background: rgba(30, 41, 59, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    margin: 0;
}

.mission-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.mission-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mission-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Design for Mission Section */
@media (max-width: 768px) {
    .mission-subtitle {
        font-size: 1.5rem;
    }
    
    .mission-intro {
        font-size: 1rem;
    }
    
    .mission-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .mission-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mission-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .vision-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

.vote-btn.not-ai-btn:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.vote-btn:disabled,
.mark-ai-btn:disabled,
.mark-not-ai-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
    background: rgba(128, 128, 128, 0.1) !important;
    border-color: rgba(128, 128, 128, 0.3) !important;
    color: rgba(128, 128, 128, 0.6) !important;
}

/* Voted button styling - override disabled styles */
.vote-btn.voted {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
    opacity: 1 !important;
    cursor: default !important;
    pointer-events: auto !important;
}

/* Remove duplicate - handled above */

.preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    justify-content: center;
}

/* Leaderboard points breakdown */
.points-breakdown {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}
