/* =====================================================
   PRISM - Main Stylesheet
   ===================================================== */

:root {
    --prism-primary: #818cf8;
    --prism-primary-dark: #6366f1;
    --prism-secondary: #f472b6;
    --prism-success: #34d399;
    --prism-warning: #fbbf24;
    --prism-danger: #f87171;
    --prism-dark: #1e1e2e;
    --prism-darker: #11111b;
    --prism-light: #f1f5f9;
    --prism-muted: #a1a1aa;
    --prism-text: #e2e8f0;
    --prism-text-secondary: #cbd5e1;
}

/* =====================================================
   Base Styles
   ===================================================== */
body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--prism-dark);
    color: var(--prism-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.main-content {
    flex: 1;
}

/* Improve text readability */
p, li, td, th, label, span {
    color: var(--prism-text);
}

.text-muted {
    color: var(--prism-text-secondary) !important;
}

small, .small {
    color: var(--prism-text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--prism-light);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }
h5, h6 { font-weight: 600; }

a {
    color: var(--prism-primary);
    text-decoration: none;
}

a:hover {
    color: var(--prism-secondary);
}

/* =====================================================
   Navbar Customization
   ===================================================== */
.navbar {
    background-color: var(--prism-darker) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-primary {
    background-color: var(--prism-primary);
    border-color: var(--prism-primary);
}

.btn-primary:hover {
    background-color: var(--prism-primary-dark);
    border-color: var(--prism-primary-dark);
}

.btn-secondary {
    background-color: var(--prism-secondary);
    border-color: var(--prism-secondary);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Forms
   ===================================================== */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--prism-light);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--prism-primary);
    color: var(--prism-light);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder {
    color: var(--prism-muted);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--prism-darker) 0%, var(--prism-dark) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--prism-primary) 0%, var(--prism-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--prism-text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =====================================================
   Assessment Styles
   ===================================================== */
.assessment-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.question-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--prism-primary), var(--prism-secondary), var(--prism-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.question-text {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--prism-light);
    letter-spacing: 0.01em;
}

.likert-scale {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.likert-option {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: var(--prism-text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.likert-option::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--prism-primary) 0%, var(--prism-secondary) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.likert-option:hover {
    border-color: var(--prism-primary);
    color: var(--prism-light);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.3);
}

.likert-option:hover::before {
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.likert-option:active {
    transform: scale(0.95);
}

.likert-option.selected {
    border-color: transparent;
    color: white;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 30px rgba(129, 140, 248, 0.5);
    animation: selectPulse 0.6s ease;
}

.likert-option.selected::before {
    width: 120%;
    height: 120%;
    opacity: 1;
}

@keyframes selectPulse {
    0% { transform: scale(1.15) translateY(-3px); }
    30% { transform: scale(1.25) translateY(-5px); }
    60% { transform: scale(1.1) translateY(-2px); }
    100% { transform: scale(1.15) translateY(-3px); }
}

/* Gradient colors based on position (1=disagree red, 4=neutral, 7=agree green) */
.likert-option[data-value="1"] { --btn-color: #ef4444; }
.likert-option[data-value="2"] { --btn-color: #f97316; }
.likert-option[data-value="3"] { --btn-color: #eab308; }
.likert-option[data-value="4"] { --btn-color: #a1a1aa; }
.likert-option[data-value="5"] { --btn-color: #84cc16; }
.likert-option[data-value="6"] { --btn-color: #22c55e; }
.likert-option[data-value="7"] { --btn-color: #10b981; }

.likert-option:hover {
    border-color: var(--btn-color);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--btn-color) 40%, transparent);
}

.likert-option.selected {
    background: var(--btn-color);
    border-color: var(--btn-color);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--btn-color) 50%, transparent);
}

.likert-option.selected::before {
    background: var(--btn-color);
}

/* Ripple effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Keyboard hint */
.likert-option::after {
    content: attr(data-value);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--prism-muted);
    opacity: 0;
    transition: opacity 0.2s;
}

.likert-scale:hover .likert-option::after {
    opacity: 1;
}

.likert-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--prism-text-secondary);
    padding: 0 10px;
}

.assessment-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-info {
    text-align: center;
    color: var(--prism-text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* =====================================================
   Progress Bar
   ===================================================== */
.assessment-progress {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.assessment-progress .progress-bar {
    background: linear-gradient(90deg, var(--prism-primary) 0%, var(--prism-secondary) 50%, var(--prism-primary) 100%);
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    position: relative;
}

.assessment-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    border-radius: 4px;
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   Results Styles
   ===================================================== */
.trait-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.trait-label {
    width: 150px;
    font-weight: 500;
}

.trait-meter {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 1rem;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--prism-primary) 0%, var(--prism-secondary) 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.trait-value {
    width: 50px;
    text-align: right;
    font-weight: 600;
}

/* =====================================================
   Type Badges
   ===================================================== */
.type-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--prism-primary);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.type-badge .type-value {
    font-size: 1.5rem;
    display: block;
}

.type-badge .type-label {
    font-size: 0.75rem;
    color: var(--prism-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   Spinoff Cards
   ===================================================== */
.spinoff-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spinoff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

/* =====================================================
   Receipt Style
   ===================================================== */
.receipt {
    font-family: 'Courier New', monospace;
    background: #fafafa;
    color: #1a1a1a;
    padding: 2rem;
    border-radius: 4px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.receipt-title {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.receipt-date {
    color: #666;
    font-size: 0.85rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ddd;
}

.receipt-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #ccc;
    font-style: italic;
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--prism-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-warning {
    border-color: var(--prism-warning);
}

.toast-error {
    border-color: var(--prism-danger);
}

.toast-success {
    border-color: var(--prism-success);
}

/* =====================================================
   Bootstrap Overrides for Better Readability
   ===================================================== */
.card-text {
    color: var(--prism-text);
}

.lead {
    color: var(--prism-text-secondary);
}

.badge.bg-secondary {
    background-color: #52525b !important;
    color: #fafafa !important;
}

.dropdown-menu {
    background-color: var(--prism-darker);
    border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: var(--prism-text);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--prism-light);
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
/* =====================================================
   Progression System
   ===================================================== */
.level-badge-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--prism-primary) 0%, var(--prism-secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.4);
}

.level-badge-lg .level-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.level-badge-lg .level-label {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.streak-badge {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--prism-muted);
    transition: all 0.3s ease;
}

.streak-badge.active {
    color: var(--prism-warning);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Spinoff Grid Lock States */
.spinoff-card.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
    cursor: not-allowed;
    position: relative;
}

.spinoff-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.spinoff-card.locked .lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spinoff-card.locked:hover .lock-overlay {
    opacity: 1;
}

.spinoff-card.locked .lock-overlay .lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.spinoff-card.locked .lock-overlay .lock-text {
    font-size: 0.85rem;
    color: var(--prism-text-secondary);
}

/* Level Badge Small (for spinoffs grid) */
.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--prism-primary) 0%, var(--prism-secondary) 100%);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--prism-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.category-tab:hover {
    border-color: var(--prism-primary);
    color: var(--prism-light);
}

.category-tab.active {
    background: var(--prism-primary);
    border-color: var(--prism-primary);
    color: white;
}

/* Points Animation */
@keyframes pointsEarned {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

.points-popup,
.xp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--prism-primary) 0%, var(--prism-secondary) 100%);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    z-index: 9999;
    animation: pointsEarned 1.5s ease-out forwards;
    pointer-events: none;
}

/* =====================================================
   Choice Question Styles (Tier 2)
   ===================================================== */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--prism-text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.choice-option:hover {
    border-color: var(--prism-primary);
    background: rgba(99, 102, 241, 0.1);
}

.choice-option.selected {
    border-color: var(--prism-primary);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.choice-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.choice-option.selected .choice-letter {
    background: var(--prism-primary);
    color: white;
}

.choice-text {
    flex: 1;
    line-height: 1.4;
}

/* =====================================================
   Rank Question Styles (Tier 2)
   ===================================================== */
.rank-instructions {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--prism-text-secondary);
    text-align: left;
}

.rank-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: grab;
    transition: all 0.2s ease;
}

.rank-item:active {
    cursor: grabbing;
}

.rank-item.selected {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(52, 211, 153, 0.1);
}

.rank-item.unselected {
    opacity: 0.5;
    border-style: dashed;
}

.rank-item:hover {
    border-color: var(--prism-primary);
    background: rgba(99, 102, 241, 0.1);
}

.rank-handle {
    color: var(--prism-muted);
    cursor: grab;
}

.rank-handle:active {
    cursor: grabbing;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--prism-primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rank-item.unselected .rank-number {
    background: rgba(255, 255, 255, 0.2);
}

.rank-text {
    flex: 1;
    text-align: left;
}

.rank-ghost {
    opacity: 0.5;
    background: rgba(99, 102, 241, 0.2);
}

/* =====================================================
   Tier 2 Module Selection Page
   ===================================================== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--prism-primary);
}

.module-card.completed {
    border-color: var(--prism-success);
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
}

.module-card.in-progress {
    border-color: var(--prism-warning);
}

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.module-icon.primary { background: rgba(99, 102, 241, 0.2); color: var(--prism-primary); }
.module-icon.danger { background: rgba(244, 114, 182, 0.2); color: var(--prism-secondary); }
.module-icon.warning { background: rgba(251, 191, 36, 0.2); color: var(--prism-warning); }
.module-icon.info { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.module-icon.secondary { background: rgba(161, 161, 170, 0.2); color: var(--prism-muted); }
.module-icon.success { background: rgba(52, 211, 153, 0.2); color: var(--prism-success); }

.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.module-description {
    font-size: 0.9rem;
    color: var(--prism-text-secondary);
    margin-bottom: 1rem;
}

.module-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--prism-muted);
}

.module-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-status.completed {
    background: rgba(52, 211, 153, 0.2);
    color: var(--prism-success);
}

.module-status.in-progress {
    background: rgba(251, 191, 36, 0.2);
    color: var(--prism-warning);
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .likert-option {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .trait-label {
        width: 120px;
        font-size: 0.9rem;
    }

    .level-badge-lg {
        width: 50px;
        height: 50px;
    }

    .level-badge-lg .level-number {
        font-size: 1.25rem;
    }

    .category-tabs {
        justify-content: center;
    }

    .choice-option {
        padding: 0.875rem 1rem;
    }

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

/* =====================================================
   Comparison Question Styles (Tier 3)
   ===================================================== */
.comparison-container {
    text-align: center;
}

.comparison-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comparison-option {
    flex: 1;
    max-width: 220px;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--prism-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.comparison-option:hover {
    border-color: var(--prism-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.comparison-option.selected {
    border-color: var(--prism-primary);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.comparison-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1.25rem;
}

.comparison-option.selected .comparison-label {
    background: var(--prism-primary);
    color: white;
}

.comparison-text {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.comparison-vs {
    font-weight: 700;
    font-size: 1rem;
    color: var(--prism-muted);
    padding: 0 0.5rem;
}

.comparison-intensity {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-intensity.hidden {
    display: none;
}

.intensity-scale {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.intensity-option {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--prism-text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.intensity-option:hover {
    border-color: var(--prism-primary);
    color: var(--prism-light);
}

.intensity-option.selected {
    background: var(--prism-primary);
    border-color: var(--prism-primary);
    color: white;
}

/* =====================================================
   Dual Likert Question Styles (Tier 3)
   ===================================================== */
.dual-likert-container {
    text-align: center;
}

.dual-likert-dimension {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
}

.dual-likert-label {
    font-weight: 500;
    color: var(--prism-light);
    font-size: 1rem;
}

.likert-scale.dual {
    margin-bottom: 0.75rem;
}

.likert-scale.dual .likert-option {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

/* =====================================================
   Achievement Icons
   ===================================================== */
.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.achievement-icon.grayscale {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* =====================================================
   Responsive Adjustments for Tier 3 Questions
   ===================================================== */
@media (max-width: 768px) {
    .comparison-options {
        flex-direction: column;
    }

    .comparison-option {
        max-width: 100%;
        width: 100%;
    }

    .comparison-vs {
        padding: 0.5rem 0;
    }

    .intensity-scale {
        gap: 0.25rem;
    }

    .intensity-option {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .likert-scale.dual .likert-option {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
