.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

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

.name-input, #username-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.name-input:focus, #username-input:focus {
    outline: none;
    border-color: var(--primary);
}

.name-input::placeholder, #username-input::placeholder {
    color: var(--text-muted);
}

.validation-msg {
    height: 1.5rem;
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid var(--bg-card);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    margin: 1rem;
}

.archetype-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.archetype-section h3 {
    color: var(--primary-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.archetype-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.archetype-section.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid var(--primary);
}

.archetype-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.progress-bar, .category-progress {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    max-width: 700px;
    height: 4px;
    margin-bottom: 3rem;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.day {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.day.completed {
    background: var(--secondary);
    color: white;
}

.day.current {
    background: var(--primary);
    color: white;
    animation: pulse 2s infinite;
}

.day.locked {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.vault-card-level {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.vault-card-usecase {
    font-size: 0.7rem;
    background: var(--bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.mission-level-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.score-level {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.score-level.not_there_yet { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.score-level.getting_closer { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.score-level.strong_attempt { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); }
.score-level.excellent { background: rgba(16, 185, 129, 0.2); color: #10b981; }

/* Lock Modal */
.lock-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.lock-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
}

.lock-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lock-modal h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.lock-modal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.lock-modal-tip {
    background: rgba(88, 204, 2, 0.1);
    border: 1px solid rgba(88, 204, 2, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.lock-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Reward Toast */
.reward-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    max-width: 90%;
    text-align: center;
}

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