/* ========================================
   Missions Frontend Styles
   Vianu Cybersecurity Club
   HIGH CONTRAST + READABLE
   ======================================== */

:root {
    --m-primary: #00d4aa;
    --m-primary-dark: #00b894;
    --m-secondary: #6c5ce7;
    --m-dark: #0a0e27;
    --m-dark-2: #141832;
    --m-dark-3: #1e2346;
    --m-text: #f0f0f0;
    --m-text-muted: #b0b8d0;
    --m-text-dark: #1a1a2e;
    --m-success: #00e676;
    --m-error: #ff5252;
    --m-warning: #ffd740;
    --m-border: rgba(255,255,255,0.12);
    --m-card-bg: #141832;
    --m-radius: 12px;
    --m-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* Container */
.missions-container,
.missions-leaderboard,
.missions-members,
.missions-profile,
.mission-quiz-container,
.missions-daily-widget {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--m-text);
}

/* ========================================
   BUTTONS - HIGH CONTRAST
   ======================================== */
.missions-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    letter-spacing: 0.3px;
}

.missions-btn-primary {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #000 !important;
    text-shadow: none;
}

.missions-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,212,170,0.4);
    color: #000 !important;
    text-decoration: none;
    background: linear-gradient(135deg, #00e6b8, #00d4aa);
}

.missions-btn-secondary {
    background: var(--m-dark-3);
    color: var(--m-text) !important;
    border: 2px solid var(--m-border);
}

.missions-btn-sm { padding: 8px 16px; font-size: 13px; }
.missions-btn-lg { padding: 16px 36px; font-size: 17px; }
.missions-btn-block { display: block; width: 100%; }

/* ========================================
   Notices
   ======================================== */
.missions-notice {
    padding: 16px 20px;
    border-radius: var(--m-radius);
    margin: 15px 0;
    background: var(--m-dark-3);
    border-left: 4px solid var(--m-primary);
    color: var(--m-text);
    font-size: 15px;
}

.missions-notice-info { border-left-color: var(--m-secondary); }
.missions-notice-warning { border-left-color: var(--m-warning); background: rgba(255,215,64,0.1); }
.missions-notice-error { border-left-color: var(--m-error); background: rgba(255,82,82,0.1); }
.missions-success { color: var(--m-success); }

/* ========================================
   Filters
   ======================================== */
.missions-filters {
    margin-bottom: 30px;
    background: var(--m-card-bg);
    padding: 20px;
    border-radius: var(--m-radius);
    border: 1px solid var(--m-border);
}

.missions-filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--m-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-group select {
    padding: 10px 14px;
    background: var(--m-dark);
    border: 2px solid var(--m-border);
    color: var(--m-text);
    border-radius: 8px;
    min-width: 160px;
    font-size: 14px;
}

/* ========================================
   Missions Grid
   ======================================== */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.mission-card {
    background: var(--m-card-bg);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--m-shadow); }
.mission-card.mission-completed { opacity: 0.75; }

.mission-card-image { position: relative; height: 180px; overflow: hidden; }
.mission-card-image img { width: 100%; height: 100%; object-fit: cover; }

.mission-difficulty-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.diff-easy { background: var(--m-success); color: #000; }
.diff-medium { background: var(--m-warning); color: #000; }
.diff-hard { background: #ff6b6b; color: #fff; }
.diff-expert { background: var(--m-secondary); color: #fff; }

.mission-completed-badge { position: absolute; top: 10px; right: 10px; font-size: 24px; }

.mission-card-body { padding: 20px; }
.mission-card-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.mission-card-title a { color: var(--m-text); text-decoration: none; }
.mission-card-title a:hover { color: var(--m-primary); }
.mission-card-excerpt { color: var(--m-text-muted); font-size: 14px; margin: 0 0 12px; }
.mission-card-meta { display: flex; gap: 12px; margin-bottom: 15px; font-size: 13px; color: var(--m-text-muted); }

/* ========================================
   Quiz / Single Mission - HIGH CONTRAST
   ======================================== */
.mission-header { margin-bottom: 30px; }
.mission-title { font-size: 28px; margin-bottom: 15px; color: #fff; font-weight: 800; }

.mission-featured-image { border-radius: var(--m-radius); overflow: hidden; margin-bottom: 20px; }
.mission-featured-image img { width: 100%; height: auto; display: block; }

.mission-description { color: var(--m-text); margin-bottom: 15px; line-height: 1.7; font-size: 16px; }

.mission-meta-info {
    display: flex; gap: 20px; padding: 16px 20px;
    background: var(--m-card-bg); border-radius: var(--m-radius);
    border: 1px solid var(--m-border); font-size: 15px; color: var(--m-text); font-weight: 600;
}

/* Questions */
.quiz-question {
    background: var(--m-card-bg);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 28px;
    margin-bottom: 24px;
}

.question-number {
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--m-primary); margin-bottom: 10px; font-weight: 800;
}

.question-text {
    font-size: 19px; margin: 0 0 8px; line-height: 1.5;
    color: #fff; font-weight: 600;
}

.question-hint {
    color: var(--m-warning) !important;
    font-size: 15px; margin-bottom: 18px; font-style: italic;
    background: rgba(255,215,64,0.1); padding: 8px 14px; border-radius: 8px;
    border-left: 3px solid var(--m-warning);
}

.question-checkbox-hint {
    color: var(--m-primary); font-size: 14px; font-weight: 600;
    margin: 0 0 10px; font-style: italic;
}

/* Answer Options - HIGH CONTRAST */
.answer-option {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; margin: 10px 0;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px; cursor: pointer; transition: all 0.15s;
    font-size: 16px; color: #fff; font-weight: 500;
}
.answer-option:hover {
    border-color: var(--m-primary); background: rgba(0,212,170,0.08);
}
.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: var(--m-primary); flex-shrink: 0;
}
.option-text { color: #fff; font-size: 16px; line-height: 1.4; }

.answer-option.selected { border-color: var(--m-primary); background: rgba(0,212,170,0.15); }
.answer-option.option-correct {
    border-color: var(--m-success) !important;
    background: rgba(0,230,118,0.15) !important;
}
.answer-option.option-correct::after {
    content: ' ✓'; color: var(--m-success); font-weight: 800; margin-left: auto;
}
.answer-option.option-wrong {
    border-color: var(--m-error) !important;
    background: rgba(255,82,82,0.15) !important;
}

/* Flag Input - HIGH CONTRAST */
.flag-input {
    width: 100%; padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff !important; font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 16px; font-weight: 500;
}
.flag-input:focus { outline: none; border-color: var(--m-primary); }
.flag-input::placeholder { color: rgba(255,255,255,0.4); }

/* Open Answer - HIGH CONTRAST */
.open-answer {
    width: 100%; padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff !important; font-size: 16px; resize: vertical; min-height: 100px;
}
.open-answer:focus { outline: none; border-color: var(--m-primary); }
.open-answer::placeholder { color: rgba(255,255,255,0.4); }

/* Submit Button - VERY HIGH CONTRAST */
.quiz-submit-area { text-align: center; padding: 24px 0; }

.quiz-submit-btn {
    background: var(--m-warning) !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    padding: 18px 48px !important;
    border-radius: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
}
.quiz-submit-btn:hover {
    background: #ffe066 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,215,64,0.4);
}

.quiz-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; color: var(--m-text); font-size: 16px;
}
.spinner {
    width: 28px; height: 28px; border: 3px solid var(--m-border);
    border-top-color: var(--m-primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Question Feedback - HIGH CONTRAST */
.question-feedback {
    margin-top: 18px; padding: 16px 20px; border-radius: 10px;
    font-size: 15px; line-height: 1.6;
}

.feedback-correct { color: var(--m-success); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.feedback-incorrect { color: var(--m-error); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.feedback-poll { color: var(--m-primary); font-weight: 700; font-size: 16px; margin-bottom: 8px; }

.feedback-answer {
    margin-top: 8px; padding: 10px 14px;
    background: rgba(255,82,82,0.1); border-radius: 8px;
    color: #ff8a80; font-size: 14px;
}
.feedback-answer code {
    background: rgba(0,0,0,0.3); color: var(--m-warning);
    padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: 13px;
}

.feedback-ai {
    margin-top: 8px; padding: 12px 16px;
    background: rgba(108,92,231,0.12); border-radius: 8px; border: 1px solid rgba(108,92,231,0.3);
}
.ai-score { font-weight: 800; font-size: 15px; display: block; margin-bottom: 6px; }
.score-good { color: var(--m-success); }
.score-low { color: var(--m-error); }

.feedback-explanation {
    margin-top: 10px; padding: 12px 16px;
    background: rgba(255,215,64,0.08); border-radius: 8px;
    border-left: 3px solid var(--m-warning); color: var(--m-text); font-size: 14px;
}

/* Poll Results */
.poll-results { margin-top: 12px; }
.poll-results h4 { color: var(--m-primary); font-size: 14px; margin: 0 0 10px; }
.poll-bar-container { margin: 6px 0; }
.poll-bar-label { font-size: 13px; color: var(--m-text); margin-bottom: 4px; display: flex; justify-content: space-between; }
.poll-pct { color: var(--m-primary); font-weight: 700; }
.poll-bar-track { height: 8px; background: var(--m-dark); border-radius: 4px; overflow: hidden; }
.poll-bar-fill { height: 100%; background: var(--m-primary); border-radius: 4px; transition: width 0.5s; }

/* ========================================
   Results - HIGH CONTRAST
   ======================================== */
.quiz-results {
    background: var(--m-card-bg); border: 2px solid var(--m-border);
    border-radius: var(--m-radius); padding: 36px; text-align: center; margin-top: 24px;
}

.results-card.results-passed { border-color: var(--m-success); }
.results-card.results-failed { border-color: var(--m-error); }

.results-icon { font-size: 56px; margin-bottom: 10px; }
.results-title { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 20px; }

.results-stats {
    display: flex; justify-content: center; gap: 30px; margin: 20px 0;
    flex-wrap: wrap;
}
.result-stat {
    background: rgba(255,255,255,0.05); padding: 16px 24px;
    border-radius: 10px; min-width: 120px;
}
.result-stat .stat-value { font-size: 28px; font-weight: 800; color: #fff; display: block; }
.result-stat .stat-label { font-size: 12px; color: var(--m-text-muted); text-transform: uppercase; }

.results-note {
    color: var(--m-warning); font-size: 15px; font-weight: 600;
    background: rgba(255,215,64,0.1); padding: 12px 20px; border-radius: 8px;
    margin: 16px 0;
}

.results-encouragement {
    font-size: 18px; margin: 20px 0; padding: 16px 24px;
    background: rgba(0,212,170,0.12); border-radius: 10px;
    color: var(--m-primary); font-weight: 600;
    border: 1px solid rgba(0,212,170,0.2);
}

.results-percentile {
    margin: 16px 0; padding: 14px 20px;
    background: rgba(108,92,231,0.1); border-radius: 10px;
    color: #b8b0ff; font-size: 15px; line-height: 1.6;
    border: 1px solid rgba(108,92,231,0.2);
}
.results-percentile strong { color: #fff; }

.results-explanation {
    margin-top: 20px; padding: 20px; background: var(--m-dark); border-radius: 10px;
    text-align: left; line-height: 1.7; color: var(--m-text); font-size: 15px;
}

.results-streak {
    margin: 12px 0; color: var(--m-warning); font-size: 16px;
}
.results-total-points { font-size: 16px; color: var(--m-text-muted); margin-top: 10px; }

/* ========================================
   Related Missions
   ======================================== */
.quiz-related-missions {
    margin-top: 30px; padding: 24px;
    background: var(--m-card-bg); border-radius: var(--m-radius);
    border: 1px solid var(--m-border);
}
.related-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.related-card {
    display: flex; gap: 12px; padding: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--m-border);
    border-radius: 10px; text-decoration: none; color: var(--m-text); transition: all 0.15s;
}
.related-card:hover { border-color: var(--m-primary); transform: translateY(-2px); color: var(--m-text); text-decoration: none; }
.related-card img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.related-card-info h4 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.related-card-info span { font-size: 12px; color: var(--m-primary); font-weight: 600; }

/* ========================================
   Social Share / Challenge
   ======================================== */
.quiz-share-area {
    margin-top: 20px; padding: 24px; text-align: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,212,170,0.1));
    border-radius: var(--m-radius); border: 1px solid rgba(108,92,231,0.3);
}
.share-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.share-subtitle { font-size: 14px; color: var(--m-text-muted); margin: 0 0 16px; }
.share-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; font-weight: 700;
    font-size: 14px; text-decoration: none; color: #fff; transition: all 0.2s;
    border: none; cursor: pointer;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.share-btn-whatsapp { background: #25D366; }
.share-btn-facebook { background: #1877F2; }
.share-btn-twitter { background: #1DA1F2; }
.share-btn-copy { background: var(--m-dark-3); border: 1px solid var(--m-border); }
.share-btn-copy:hover { border-color: var(--m-primary); }
.share-referral-note {
    margin-top: 12px; font-size: 12px; color: var(--m-text-muted);
    background: rgba(0,0,0,0.2); padding: 8px 14px; border-radius: 6px; display: inline-block;
}

/* ========================================
   Leaderboard - 3 Column Layout
   ======================================== */
.lb-profile-header {
    display: flex; gap: 30px; align-items: center;
    padding: 30px; background: var(--m-card-bg);
    border: 1px solid var(--m-border); border-radius: var(--m-radius);
    margin-bottom: 12px; flex-wrap: wrap;
}
.lb-profile-left { text-align: center; min-width: 200px; }
.lb-profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 10px; }
.lb-profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--m-primary); }
.lb-profile-level-num {
    position: absolute; bottom: 0; right: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--m-primary); color: #000; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.lb-profile-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.lb-profile-progress { margin-top: 10px; }
.lb-progress-bar { height: 8px; background: var(--m-dark); border-radius: 4px; overflow: hidden; margin: 6px 0; }
.lb-progress-fill { height: 100%; background: linear-gradient(90deg, var(--m-primary), var(--m-secondary)); border-radius: 4px; }
.lb-points-to-next { font-size: 12px; color: var(--m-text-muted); }

.lb-profile-levels {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1;
}
.lb-level-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: rgba(255,255,255,0.03); border-radius: 8px;
}
.lb-level-num-circle {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--m-text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.lb-level-name { font-weight: 600; font-size: 14px; color: var(--m-text); }
.lb-level-pct { margin-left: auto; font-size: 12px; color: var(--m-text-muted); }

.lb-last-updated { font-size: 12px; color: var(--m-text-muted); font-style: italic; margin-bottom: 20px; }

.lb-columns {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.lb-column {
    background: var(--m-card-bg); border: 1px solid var(--m-border);
    border-radius: var(--m-radius); overflow: hidden;
}
.lb-column-header {
    padding: 14px 16px; font-weight: 700; font-size: 15px;
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--m-border);
    color: #fff; text-align: center;
}
.lb-column-body { padding: 8px; }

.lb-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px; margin: 4px 0;
}
.lb-row-current { background: rgba(0,212,170,0.08); }
.lb-row-rank {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; flex-shrink: 0;
    background: rgba(255,255,255,0.06); color: var(--m-text-muted);
}
.lb-gold { background: #FFD700 !important; color: #000 !important; }
.lb-silver { background: #C0C0C0 !important; color: #000 !important; }
.lb-bronze { background: #CD7F32 !important; color: #fff !important; }

.lb-row-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.lb-row-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--m-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row-points { font-weight: 700; font-size: 13px; color: var(--m-primary); white-space: nowrap; }

.lb-empty { justify-content: center; color: var(--m-text-muted); font-size: 13px; }

.lb-your-rank {
    border-top: 1px dashed var(--m-border); margin-top: 8px; padding-top: 8px;
}
.lb-your-rank-label { font-size: 11px; color: var(--m-text-muted); text-transform: uppercase; padding: 0 12px; font-weight: 700; }

/* ========================================
   Level Badges
   ======================================== */
.level-badge {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700;
}
.level-initiate { background: rgba(255,255,255,0.1); color: var(--m-text-muted); }
.level-defender { background: rgba(0,212,170,0.15); color: var(--m-primary); }
.level-analyst { background: rgba(108,92,231,0.15); color: #b8b0ff; }
.level-sentinel { background: rgba(255,215,64,0.15); color: var(--m-warning); }
.level-expert { background: rgba(255,82,82,0.15); color: #ff8a80; }

/* ========================================
   Members
   ======================================== */
.members-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.member-card {
    display: flex; align-items: center; gap: 15px; padding: 20px;
    background: var(--m-card-bg); border: 1px solid var(--m-border);
    border-radius: var(--m-radius); text-decoration: none; color: var(--m-text); transition: all 0.15s;
}
.member-card:hover { border-color: var(--m-primary); transform: translateY(-2px); color: var(--m-text); text-decoration: none; }
.member-avatar { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.member-name { margin: 0 0 4px; font-size: 16px; }
.member-desc { margin: 0 0 8px; font-size: 13px; color: var(--m-text-muted); }

/* Influencer badge */
.influencer-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}

/* ========================================
   Profile
   ======================================== */
.profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--m-primary); }
.profile-name { font-size: 28px; margin: 0 0 8px; color: #fff; }
.profile-desc { color: var(--m-text-muted); margin: 0 0 4px; }
.profile-joined { font-size: 13px; color: var(--m-text-muted); margin: 0; }

.profile-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 30px;
}
.profile-stat {
    background: var(--m-card-bg); border: 1px solid var(--m-border);
    border-radius: var(--m-radius); padding: 24px; text-align: center;
}
.stat-value { font-size: 32px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.stat-label { font-size: 13px; color: var(--m-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.level-progress { margin-top: 10px; }
.level-progress-bar { width: 100%; height: 8px; background: var(--m-dark); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.level-progress-fill { height: 100%; background: linear-gradient(90deg, var(--m-primary), var(--m-secondary)); border-radius: 4px; transition: width 0.5s; }

/* Calendar */
.profile-calendar { background: var(--m-card-bg); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 24px; }
.profile-calendar h3 { margin-top: 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; margin-bottom: 12px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--m-dark); border-radius: 6px; font-size: 12px; color: var(--m-text-muted); }
.cal-day.cal-active { background: rgba(0,212,170,0.3); color: var(--m-text); }
.cal-day.cal-daily { background: var(--m-primary); color: #000; font-weight: 700; }
.calendar-legend { display: flex; gap: 20px; font-size: 12px; color: var(--m-text-muted); }
.cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.cal-dot.cal-active { background: rgba(0,212,170,0.3); }
.cal-dot.cal-daily { background: var(--m-primary); }

/* Daily Widget */
.daily-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.daily-completed-badge { background: rgba(0,230,118,0.15); color: var(--m-success); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* Pagination */
.missions-pagination { margin-top: 30px; text-align: center; }
.missions-pagination a, .missions-pagination span {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    background: var(--m-card-bg); border: 1px solid var(--m-border);
    border-radius: 8px; color: var(--m-text); text-decoration: none; font-size: 14px;
}
.missions-pagination .current { background: var(--m-primary); color: #000; border-color: var(--m-primary); font-weight: 700; }

/* My Stats Widget */
.missions-my-stats-widget { background: var(--m-card-bg); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 16px 20px; }
.my-stats-row { display: flex; gap: 20px; align-items: center; justify-content: center; font-size: 15px; }

/* Mission nav links */
.mission-nav-links { margin-top: 30px; padding: 20px 0; }
.mission-taxonomies { margin-top: 15px; font-size: 14px; color: var(--m-text-muted); }
.mission-tax-link { color: var(--m-primary); text-decoration: none; margin-right: 8px; }
.mission-tax-link:hover { text-decoration: underline; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .lb-columns { grid-template-columns: 1fr; }
    .lb-profile-header { flex-direction: column; text-align: center; }
    .lb-profile-levels { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .missions-grid { grid-template-columns: 1fr; }
    .missions-filter-form { flex-direction: column; }
    .profile-header { flex-direction: column; text-align: center; }
    .mission-meta-info { flex-direction: column; gap: 8px; }
    .results-stats { flex-direction: column; gap: 10px; }
    .my-stats-row { flex-direction: column; gap: 8px; }
    .share-buttons { flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }
}

/* ========================================
   HACKER GIRL PROMPT (non-logged users)
   Uses actual image, not emoji
   ======================================== */
.hacker-girl-prompt {
    max-width: 560px;
    animation: hackerSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes hackerSlideIn {
    from { opacity: 0; transform: translateY(60px) scale(0.7); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hacker-girl-puff {
    animation: hackerPuff 0.6s ease forwards !important;
}

@keyframes hackerPuff {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.4) rotate(10deg); }
    100% { opacity: 0; transform: scale(0) rotate(30deg); }
}

.hacker-girl-bubble {
    background: linear-gradient(135deg, #0a0e27ee, #141832ee);
    border: 2px solid var(--m-primary);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 40px rgba(0, 212, 170, 0.3), 0 0 60px rgba(0, 212, 170, 0.1);
    display: flex;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hacker-girl-img {
    width: auto;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.hacker-girl-message {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hacker-girl-message p {
    color: #e0e0e0;
    font-size: 17px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.hacker-girl-message strong {
    color: var(--m-warning);
}

.hacker-girl-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.hg-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.hg-btn-login {
    background: var(--m-primary);
    color: #000;
}

.hg-btn-register {
    background: transparent;
    border: 1px solid var(--m-primary);
    color: var(--m-primary);
}

.hg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* ========================================
   MEGA LOGIN PROMPT (after quiz, non-logged)
   Pulsing, animated, impossible to miss
   ======================================== */
.results-login-mega {
    position: relative;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    animation: megaAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes megaAppear {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-mega-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #00d4aa, #ffd740, #ff5252, #6c5ce7, #00d4aa);
    background-size: 400% 400%;
    animation: megaGlow 3s ease infinite;
    border-radius: 18px;
    z-index: 0;
}

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

.login-mega-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0a0e27, #1a0a2e);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
}

.login-mega-icon {
    font-size: 64px;
    margin-bottom: 12px;
    animation: megaBounce 1s ease infinite;
}

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

.login-mega-title {
    color: var(--m-warning) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 10px !important;
    text-shadow: 0 0 20px rgba(255, 215, 64, 0.4);
    animation: megaPulseText 2s ease infinite;
}

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

.login-mega-text {
    color: #d0d8f0;
    font-size: 16px;
    margin: 0 0 20px;
    line-height: 1.5;
}

.login-mega-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.login-mega-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    animation: megaBtnPulse 1.5s ease infinite;
}

.login-mega-btn-login {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}

.login-mega-btn-register {
    background: linear-gradient(135deg, #ffd740, #ff9800);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 64, 0.4);
}

@keyframes megaBtnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 30px rgba(0, 212, 170, 0.6); }
}

.login-mega-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 40px rgba(0, 212, 170, 0.6) !important;
}

.login-mega-hand {
    font-size: 22px;
    animation: megaHandWave 0.8s ease infinite alternate;
}

@keyframes megaHandWave {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

.login-mega-arrow {
    color: var(--m-warning);
    font-size: 18px;
    font-weight: 700;
    animation: megaArrowBounce 0.6s ease infinite alternate;
    margin-top: 4px;
}

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

/* ========================================
   PROFILE: Avatar Upload, Edit Form
   ======================================== */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.profile-avatar-upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--m-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.profile-avatar-upload:hover {
    transform: scale(1.1);
}

.avatar-upload-icon {
    font-size: 16px;
}

.profile-location-school {
    color: var(--m-text-muted);
    font-size: 14px;
    margin: 4px 0;
}

.profile-rank-info {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.rank-badge {
    background: linear-gradient(135deg, #ffd740, #ff9800);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.rank-percentile {
    color: var(--m-primary);
    font-size: 13px;
    font-weight: 600;
}

/* Solved Missions Grid */
.profile-solved-missions {
    margin-top: 24px;
}

.profile-solved-missions h3 {
    color: var(--m-text);
    margin-bottom: 12px;
}

.solved-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.solved-mission-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--m-card-bg);
    border: 1px solid var(--m-border);
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.solved-mission-card:hover {
    border-color: var(--m-primary);
    transform: translateY(-2px);
}

.solved-mission-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.solved-mission-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--m-dark-3);
}

.solved-mission-info h4 {
    color: var(--m-text);
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.3;
}

.solved-mission-info span {
    color: var(--m-text-muted);
    font-size: 12px;
}

/* Profile Edit Section */
.profile-edit-section {
    margin-top: 24px;
    background: var(--m-card-bg);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    padding: 20px;
}

.profile-edit-section h3 {
    color: var(--m-text);
    margin: 0 0 16px;
}

.profile-edit-form .edit-field {
    margin-bottom: 14px;
}

.profile-edit-form label {
    display: block;
    color: var(--m-text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-edit-form input[type="text"],
.profile-edit-form textarea {
    width: 100%;
    background: var(--m-dark-3);
    border: 1px solid var(--m-border);
    border-radius: 8px;
    color: var(--m-text);
    padding: 8px 12px;
    font-size: 14px;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
    outline: none;
    border-color: var(--m-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-save-btn {
    margin-top: 4px;
}

/* ========================================
   POLL FEEDBACK FIX
   ======================================== */
.feedback-poll {
    color: var(--m-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
}

/* ========================================
   RESPONSIVE ADDITIONS
   ======================================== */
@media (max-width: 768px) {
    .hacker-girl-prompt {
        max-width: 90vw;
    }
    .hacker-girl-img {
        max-height: 180px;
    }
    .hacker-girl-bubble {
        flex-direction: column;
    }
    .login-mega-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    .login-mega-buttons {
        flex-direction: column;
        align-items: center;
    }
    .login-mega-title {
        font-size: 20px !important;
    }
    .solved-missions-grid {
        grid-template-columns: 1fr;
    }
    .edit-row {
        grid-template-columns: 1fr;
    }
    .profile-rank-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
