/* Layout Components */
.screen {
    display: none;
    min-height: calc(100vh - 80px);
    padding: var(--space-10) var(--space-6);
    padding-top: calc(72px + var(--space-10));
    animation: fadeSlideIn 0.6s var(--ease-out);
}

.screen.active {
    display: block;
}

.screen-content {
    max-width: 900px;
    margin: 0 auto;
}

.screen-content--wide {
    max-width: 85vw;
}

/* Wider content for modules on larger screens */
@media (min-width: 1024px) {
    .screen-content {
        max-width: min(85vw, 1100px);
    }

    .screen-content--wide {
        max-width: 85vw;
    }
}

@media (min-width: 768px) {
    .screen {
        padding: var(--space-16) var(--space-8);
        padding-top: calc(72px + var(--space-16));
    }
}

/* Module header spacing */
.module-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .module-header {
        margin-bottom: var(--space-10);
    }
}

.section-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-12) 0 var(--space-6);
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.section-divider-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    color: #000;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--text-muted);
    font-weight: 300;
}

.header-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-progress-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.progress-bar-mini {
    width: 80px;
    height: 4px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease-out);
}

@media (max-width: 640px) {
    .header-progress-text {
        display: none;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 100;
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

@media (min-width: 1024px) {
    .bottom-nav-inner {
        max-width: min(85vw, 1100px);
    }
}

.bottom-nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 44px;
}

.bottom-nav-btn:hover:not(:disabled) {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.bottom-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bottom-nav-btn--primary {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #000;
}

.bottom-nav-btn--primary:hover:not(:disabled) {
    background: var(--teal-300);
    border-color: var(--teal-300);
}

.bottom-nav-btn svg {
    width: 18px;
    height: 18px;
}

.bottom-nav-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.bottom-nav-step {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.step-dots {
    display: flex;
    gap: var(--space-2);
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-default);
    transition: all var(--duration-fast) var(--ease-out);
}

.step-dot.active {
    background: var(--teal-500);
    box-shadow: 0 0 8px var(--teal-glow);
}

.step-dot.completed {
    background: var(--teal-700);
}

@media (max-width: 640px) {
    .bottom-nav-step {
        display: none;
    }
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
}

/* Spacing between consecutive cards */
.card + .card {
    margin-top: var(--space-6);
}

@media (min-width: 768px) {
    .card + .card {
        margin-top: var(--space-8);
    }
}

.card:hover {
    border-color: var(--border-accent);
}

/* Progress navigation component */
.progress-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.progress-nav-title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
}

.progress-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.progress-nav-dots {
    display: flex;
    gap: 8px;
}

/* Progress navigation arrows */
.progress-nav-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.progress-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progress-nav-btn:disabled {
    color: transparent;
    cursor: default;
    pointer-events: none;
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
}

.glass-elevated {
    background: var(--bg-card-hover);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
}

/* Module Card */
.module-card {
    --module-color: var(--teal-500);
    --module-glow: var(--teal-glow);

    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-4);
    align-items: center;
    width: 100%;
    padding: var(--space-5);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-align: left;
    font-family: inherit;
}

.module-card:hover {
    border-color: var(--module-color);
    box-shadow: 0 0 30px var(--module-glow);
    transform: translateX(4px);
}

.module-card[data-color="teal"] {
    --module-color: var(--teal-500);
    --module-glow: var(--teal-glow);
}

.module-card[data-color="blue"] {
    --module-color: var(--blue-500);
    --module-glow: var(--blue-glow);
}

.module-card[data-color="purple"] {
    --module-color: var(--purple-muted);
    --module-glow: var(--purple-glow);
}


.module-card[data-color="pink"] {
    --module-color: var(--pink-500);
    --module-glow: var(--pink-glow);
}

.module-card[data-color="green"] {
    --module-color: var(--green-500);
    --module-glow: var(--green-glow);
}

.module-card[data-color="slate"] {
    --module-color: var(--slate-500);
    --module-glow: var(--slate-glow);
}

.module-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--module-color) 15%, transparent);
    border-radius: var(--radius-lg);
    color: var(--module-color);
}

.module-card-icon svg {
    width: 24px;
    height: 24px;
}

.module-card-content {
    min-width: 0;
}

.module-card-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--module-color);
    margin-bottom: var(--space-1);
}

.module-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.module-card-desc {
    font-size: var(--text-sm);
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-card-progress {
    display: flex;
    align-items: center;
    padding: var(--space-2);
}

.module-card-progress-ring {
    position: relative;
    width: 48px;
    height: 48px;
    color: var(--module-color);
}

.module-card-progress-ring svg.ring {
    width: 100%;
    height: 100%;
}

.module-card-progress-ring span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Checkmark for completed modules */
.module-card-progress-ring .check-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card-progress-ring .check-icon svg {
    width: 24px;
    height: 24px;
    color: var(--module-color);
}

/* Desktop: slightly larger progress rings */
@media (min-width: 1024px) {
    .module-card-progress {
        padding: var(--space-3);
    }

    .module-card-progress-ring {
        width: 52px;
        height: 52px;
    }

    .module-card-progress-ring .check-icon svg {
        width: 28px;
        height: 28px;
    }
}

.module-card-arrow {
    color: var(--text-muted);
    transition: all var(--duration-fast) var(--ease-out);
}

.module-card:hover .module-card-arrow {
    color: var(--module-color);
    transform: translateX(4px);
}

.module-card-arrow svg {
    width: 20px;
    height: 20px;
}

.module-card.completed {
    opacity: 0.7;
}

.module-card.completed::after {
    content: '✓';
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-500);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: #000;
}

@media (max-width: 640px) {
    .module-card {
        grid-template-columns: auto 1fr auto auto;
        gap: var(--space-3);
        padding: var(--space-4);
    }

    .module-card-icon {
        width: 40px;
        height: 40px;
    }

    .module-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .module-card-progress {
        display: flex;
    }

    .module-card-progress-ring {
        width: 32px;
        height: 32px;
    }

    .module-card-desc {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 44px;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
    color: #000;
    box-shadow: 0 4px 24px rgba(20, 184, 166, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.btn--secondary:hover {
    background: var(--hover-overlay);
    border-color: var(--border-accent);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-icon:hover {
    background: var(--hover-overlay);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Form Elements */
.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 44px;
}

.input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.input::placeholder {
    color: var(--text-muted);
}

/* Radio Card Group */
.radio-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
}

.radio-card {
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-6);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 120px;
    justify-content: center;
}

.radio-card:hover .radio-card-content {
    border-color: rgba(20, 184, 166, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.radio-card input:checked+.radio-card-content {
    border-color: var(--teal-500);
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.15);
}

.radio-card input:focus-visible+.radio-card-content {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

.radio-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--duration-fast) var(--ease-out);
}

.radio-card input:checked+.radio-card-content .radio-card-icon {
    color: var(--teal-400);
}

.radio-card-icon svg {
    width: 28px;
    height: 28px;
}

.radio-card-label {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--duration-fast) var(--ease-out);
}

.radio-card input:checked+.radio-card-content .radio-card-label {
    color: #ffffff;
}

.radio-card-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    margin-top: calc(-1 * var(--space-2));
}

.radio-card input:checked+.radio-card-content .radio-card-sub {
    color: var(--text-secondary);
}

/* Checkbox Cards */
.checkbox-card {
    cursor: pointer;
    position: relative;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 90px;
    justify-content: center;
}

.checkbox-card:hover .checkbox-card-content {
    border-color: rgba(20, 184, 166, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.checkbox-card input:checked+.checkbox-card-content {
    border-color: var(--teal-500);
    background: rgba(20, 184, 166, 0.08);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.15);
}

.checkbox-card-content i,
.checkbox-card-content svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

.checkbox-card input:checked+.checkbox-card-content i,
.checkbox-card input:checked+.checkbox-card-content svg {
    color: var(--teal-400);
}

.checkbox-card-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    transition: color var(--duration-fast);
}

.checkbox-card input:checked+.checkbox-card-content .checkbox-card-label {
    color: #ffffff;
}

/* Slider */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.slider-label {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.slider-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    flex-shrink: 0;
}

.slider-icon svg {
    width: 20px;
    height: 20px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border-default);
    border-radius: var(--radius-full);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--teal-500);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--teal-glow);
    transition: transform 0.1s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Hub Sections */
.hub-section {
    margin-bottom: var(--space-8);
}

.hub-section-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.hub-section-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-12) var(--space-6) var(--space-6);
    margin-top: var(--space-24);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-8);
}

.footer-branding {
    display: flex;
    flex-direction: column;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--duration-fast);
}

.footer-column a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding: 0 50px;
    /* Align roughly with slider track */
}

/* Vibe Check Mobile Responsiveness */
@media (max-width: 640px) {
    .vibe-radio-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    .vibe-checkbox-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
    }

    .vibe-slider-container {
        max-width: 100% !important;
        padding: 0 var(--space-2);
    }

    .radio-card-content {
        padding: var(--space-5) var(--space-4);
        min-height: 80px;
        flex-direction: row;
        gap: var(--space-3);
    }

    .radio-card-icon {
        width: 36px;
        height: 36px;
    }

    .radio-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .radio-card-label {
        font-size: var(--text-base);
    }

    .radio-card-sub {
        margin-top: 0;
        text-align: left;
    }

    .checkbox-card-content {
        padding: var(--space-4);
        min-height: 70px;
    }

    .checkbox-card-label {
        font-size: var(--text-xs);
    }

    .vibe-check-content {
        padding: 0 var(--space-2);
    }
}

@media (max-width: 480px) {
    .vibe-checkbox-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-2) !important;
    }

    .checkbox-card-content {
        padding: var(--space-3);
        min-height: 60px;
    }

    .checkbox-card-content i,
    .checkbox-card-content svg {
        width: 20px;
        height: 20px;
    }
}

/* Slider touch optimization */
.slider-track-container {
    min-height: 48px;
}

.slider-track-container input[type="range"] {
    min-height: 48px;
}

.slider-step {
    padding: var(--space-2);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .slider-thumb {
        width: 36px !important;
        height: 36px !important;
        margin-left: -18px !important;
    }

    .slider-step {
        min-width: 40px;
    }

    .slider-step-label {
        font-size: var(--text-sm) !important;
    }
}

/* Responsive Actions (Buttons) */
.responsive-actions {
    display: flex;
    gap: var(--space-3);
}

@media (max-width: 640px) {
    .responsive-actions {
        flex-direction: column;
    }

    .responsive-actions .btn {
        width: 100%;
    }
}

/* Responsive Grids */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

@media (max-width: 640px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .responsive-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
}

/* Quiz Options */
.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 56px;
    /* Ensure touch target size */
}

.quiz-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.quiz-option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-default);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quiz-option-text {
    flex: 1;
    font-size: var(--text-base);
    line-height: 1.4;
}

/* Selected State */
.quiz-option.selected {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--purple-500);
}

.quiz-option.selected .quiz-option-radio {
    border-color: var(--purple-500);
    background: rgba(168, 85, 247, 0.1);
}

.quiz-option.selected .quiz-option-text {
    color: var(--purple-400);
    font-weight: 500;
}

/* Correct/Incorrect States (for checked mode) */
.quiz-option.correct {
    border-color: var(--green-500);
    background: rgba(34, 197, 94, 0.1);
}

.quiz-option.correct .quiz-option-text {
    color: var(--green-400);
}

.quiz-option.incorrect {
    border-color: var(--red-500);
    background: rgba(239, 68, 68, 0.1);
}

.quiz-option.incorrect .quiz-option-text {
    color: var(--red-400);
}

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.quiz-question-card {
    padding: var(--space-5);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

/* Mobile adjustments for quiz */
@media (max-width: 640px) {
    .quiz-question-card {
        padding: var(--space-4);
    }

    .quiz-options-list {
        margin-left: 0 !important;
        /* Override inline style if possible, but we will remove inline style in JS */
    }
}

/* ===========================================
   MOBILE OPTIMIZATION - Comprehensive Fixes
   =========================================== */

/* Safe area padding for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    }

    .screen {
        padding-bottom: calc(var(--space-10) + 80px + env(safe-area-inset-bottom));
    }
}

/* Screen padding adjustments for mobile */
@media (max-width: 480px) {
    .screen {
        padding: var(--space-6) var(--space-4);
        padding-top: calc(72px + var(--space-6));
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .screen-content {
        max-width: 100%;
    }
}

/* Header mobile improvements */
@media (max-width: 480px) {
    .header {
        padding: 0 var(--space-4);
        height: 64px;
    }

    .logo-text {
        font-size: var(--text-sm);
    }

    .logo-text span {
        display: none;
    }

    .progress-bar-mini {
        width: 60px;
    }
}

/* Card mobile improvements */
@media (max-width: 480px) {
    .card {
        padding: var(--space-4);
        border-radius: var(--radius-xl);
    }

    .card-title {
        font-size: var(--text-lg);
    }
}

/* 2-column grid mobile fixes (Pro/Flash, Search/AI cards) */
@media (max-width: 600px) {

    .responsive-grid-2,
    [style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-3) !important;
    }
}

/* 4-column grid mobile fixes (PREP framework, modality reference) */
@media (max-width: 600px) {

    .responsive-grid-4,
    [style*="grid-template-columns: repeat(4"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-2) !important;
    }
}

@media (max-width: 360px) {

    .responsive-grid-4,
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--space-2) !important;
    }
}

/* Modality selection buttons (4 buttons in a row) */
@media (max-width: 600px) {
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-3) !important;
    }

    [style*="grid-template-columns: repeat(4, 1fr)"] button {
        padding: var(--space-3) !important;
        min-height: 80px !important;
    }

    [style*="grid-template-columns: repeat(4, 1fr)"] button svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Module header mobile improvements */
@media (max-width: 480px) {
    .module-header {
        margin-bottom: var(--space-5);
    }

    .module-header .text-h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .module-header .text-body-lg {
        font-size: var(--text-base);
    }
}

/* Quiz option cards mobile improvements */
@media (max-width: 480px) {
    .quiz-option {
        padding: var(--space-3);
        min-height: 52px;
        gap: var(--space-2);
    }

    .quiz-option-radio {
        width: 20px;
        height: 20px;
    }

    .quiz-option-text {
        font-size: var(--text-sm);
        line-height: 1.4;
    }

    .quiz-question-card {
        padding: var(--space-3);
    }

    .quiz-options-list {
        gap: var(--space-2);
        margin-left: 0 !important;
    }
}

/* Knowledge check mobile styles */
@media (max-width: 480px) {
    .quiz-container {
        gap: var(--space-4);
    }

    /* Fix question number badge + text alignment on mobile */
    .quiz-question-card>div:first-child {
        gap: var(--space-2);
    }

    .quiz-question-card>div:first-child>span {
        width: 24px;
        height: 24px;
        font-size: var(--text-xs);
    }

    .quiz-question-card>div:first-child>p {
        font-size: var(--text-sm);
    }
}

/* Interactive card reveal buttons mobile */
@media (max-width: 480px) {
    button.card {
        padding: var(--space-4);
        min-height: 140px;
    }

    button.card h3 {
        font-size: var(--text-base);
    }

    button.card>div:first-child {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-3);
    }

    button.card>div:first-child svg {
        width: 24px;
        height: 24px;
    }
}

/* Scenario/Challenge cards mobile */
@media (max-width: 480px) {

    /* Challenge option buttons */
    [data-action="challenge-choice"] {
        padding: var(--space-3) !important;
        font-size: var(--text-sm) !important;
    }

    [data-action="challenge-choice"] span {
        width: 24px !important;
        height: 24px !important;
        font-size: var(--text-xs) !important;
        margin-right: var(--space-2) !important;
    }
}

/* Bottom navigation mobile improvements */
@media (max-width: 480px) {
    .bottom-nav {
        padding: var(--space-3) var(--space-4);
    }

    .bottom-nav-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
        min-height: 40px;
    }

    .bottom-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .bottom-nav-btn span {
        display: none;
    }

    .bottom-nav-btn--primary span {
        display: inline;
    }

    .step-dots {
        gap: var(--space-1);
    }

    .step-dot {
        width: 6px;
        height: 6px;
    }
}

/* Formula/process cards (Context + Task + Format) */
@media (max-width: 480px) {
    [style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: center"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    [style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: center"][style*="flex-wrap: wrap"]>span[style*="font-size: var(--text-xl)"] {
        display: none !important;
    }
}

/* Pro/Con badges mobile */
@media (max-width: 480px) {
    [style*="display: flex"][style*="gap: var(--space-2)"][style*="margin-bottom: var(--space-4)"]>span {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
}

/* Comparison columns (Gemini Pro/Flash) */
@media (max-width: 600px) {

    /* Make comparison cards stack vertically */
    .responsive-grid-2 .card {
        width: 100%;
    }

    .responsive-grid-2 .card h3 {
        font-size: var(--text-lg);
    }
}

/* Quick Decision Guide mobile */
@media (max-width: 600px) {
    [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"][style*="gap: var(--space-4)"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-4) !important;
    }
}

/* Progress bar section mobile */
@media (max-width: 480px) {
    [style*="display: flex"][style*="align-items: center"][style*="gap: var(--space-3)"][style*="margin-bottom: var(--space-6)"] {
        margin-bottom: var(--space-4) !important;
    }
}

/* Chat interface / Prompt input mobile */
@media (max-width: 480px) {
    #prompt-input {
        min-height: 80px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    [style*="min-height: 400px"] {
        min-height: 300px !important;
    }
}

/* Scenario context cards */
@media (max-width: 480px) {
    [style*="border-left: 3px solid"] {
        padding: var(--space-3) !important;
    }

    [style*="border-left: 3px solid"] p {
        font-size: var(--text-sm) !important;
    }
}

/* Button groups mobile */
@media (max-width: 480px) {

    .responsive-actions,
    [style*="display: flex"][style*="gap: var(--space-3)"][style*="margin-left: 44px"],
    [style*="display: flex"][style*="gap: var(--space-3)"][style*="margin-left: 40px"] {
        flex-direction: column !important;
        margin-left: 0 !important;
    }

    .responsive-actions button,
    .responsive-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Feedback cards mobile */
@media (max-width: 480px) {

    [style*="margin-left: 44px"],
    [style*="margin-left: 40px"] {
        margin-left: 0 !important;
    }
}

/* Key concept cards with icon */
@media (max-width: 480px) {
    [style*="display: flex"][style*="gap: var(--space-4)"][style*="align-items: flex-start"] {
        gap: var(--space-3) !important;
    }

    [style*="width: 48px"][style*="height: 48px"][style*="flex-shrink: 0"] {
        width: 40px !important;
        height: 40px !important;
    }

    [style*="width: 48px"][style*="height: 48px"] svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Takeaways list items */
@media (max-width: 480px) {
    [style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-start"]>div:first-child {
        width: 28px !important;
        height: 28px !important;
        flex-shrink: 0 !important;
    }

    [style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-start"]>div:first-child svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Module completion card */
@media (max-width: 480px) {
    [style*="text-align: center"][style*="padding: var(--space-8)"] {
        padding: var(--space-5) !important;
    }

    [style*="width: 80px"][style*="height: 80px"] {
        width: 64px !important;
        height: 64px !important;
    }

    [style*="width: 80px"][style*="height: 80px"] svg {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Award/trophy icon size */
@media (max-width: 480px) {
    [style*="font-size: var(--text-4xl)"] {
        font-size: var(--text-3xl) !important;
    }
}

/* Suggested next module card */
@media (max-width: 480px) {
    [style*="display: flex"][style*="gap: var(--space-4)"][style*="align-items: center"] {
        flex-wrap: wrap !important;
        gap: var(--space-3) !important;
    }

    [style*="display: flex"][style*="gap: var(--space-4)"][style*="align-items: center"]>div[style*="flex: 1"] {
        flex: 1 1 100% !important;
        order: 2 !important;
    }

    [style*="display: flex"][style*="gap: var(--space-4)"][style*="align-items: center"]>button {
        width: 100% !important;
        order: 3 !important;
        justify-content: center !important;
    }
}

/* Text size adjustments for mobile */
@media (max-width: 480px) {
    .text-h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    .text-h2 {
        font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
    }

    .text-h3 {
        font-size: var(--text-base) !important;
    }

    .text-body-lg {
        font-size: var(--text-base) !important;
    }
}

/* Tag/badge mobile adjustments */
@media (max-width: 480px) {
    [style*="padding: var(--space-1) var(--space-2)"][style*="border-radius: var(--radius-full)"] {
        padding: 2px 8px !important;
        font-size: 10px !important;
    }
}

/* Ensure touch targets are at least 44px */
@media (max-width: 480px) {

    button,
    .btn,
    label.quiz-option,
    label.radio-card,
    label.checkbox-card,
    [role="button"] {
        min-height: 44px;
    }
}

/* Fix inline styles that cause horizontal overflow */
@media (max-width: 480px) {
    [style*="white-space: nowrap"] {
        white-space: normal !important;
    }

    /* Prevent horizontal scroll */
    .screen-content,
    .card,
    .quiz-question-card {
        overflow-x: hidden;
        word-wrap: break-word;
    }
}

/* ===========================================
   QUIZ QUESTION CARD - Better mobile layout
   =========================================== */

/* On mobile: stack number badge and content vertically */
@media (max-width: 600px) {

    /* Quiz header - stack vertically */
    .card>div[style*="display: flex"][style*="align-items: flex-start"][style*="gap: var(--space-3)"] {
        flex-direction: column !important;
        gap: var(--space-3) !important;
    }

    /* Number badge - smaller and inline with label */
    .card>div[style*="display: flex"][style*="align-items: flex-start"]>span[style*="width: 32px"] {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    /* Text container takes full width */
    .card>div[style*="display: flex"][style*="align-items: flex-start"]>div:last-child {
        width: 100%;
    }

    /* Label styling */
    .card>div[style*="display: flex"][style*="align-items: flex-start"]>div:last-child .text-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Quoted prompt box - reduce padding, remove left border on mobile */
    .card>div[style*="display: flex"][style*="align-items: flex-start"] div[style*="border-left: 3px solid"] {
        border-left: none !important;
        padding: var(--space-3) !important;
        margin-top: var(--space-2) !important;
    }

    /* Remove all margin-left on child elements */
    .card .responsive-actions,
    .card>div[style*="margin-left: 44px"],
    .card>div[style*="margin-left: 40px"],
    .card div[style*="margin-left: 44px"],
    .card div[style*="margin-left: 40px"] {
        margin-left: 0 !important;
    }

    /* Make action buttons full width and stacked */
    .responsive-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-3) !important;
        margin-left: 0 !important;
    }

    .responsive-actions .btn,
    .responsive-actions button {
        width: 100% !important;
        flex: none !important;
        justify-content: center !important;
        padding: var(--space-3) var(--space-4) !important;
    }
}

/* ===========================================
   PROMPT INPUT AREA - Better mobile layout
   =========================================== */

/* Prompt input container - default layout */
.prompt-input-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.prompt-textarea {
    width: 100%;
    min-height: 120px;
    resize: none;
    overflow: hidden;
    line-height: 1.5;
    font-size: 16px;
    /* Auto-expands, no scrollbar */
}

.prompt-send-btn {
    height: 48px;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompt-send-btn:disabled {
    opacity: 0.5;
}

/* Legacy support - inline style selectors */
@media (max-width: 600px) {

    /* Stack textarea and button vertically on mobile */
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-end"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Make textarea full width */
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-end"]>textarea,
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-end"]>.input {
        width: 100% !important;
        min-height: 120px !important;
    }

    /* Make send button full width and position it nicely */
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-end"]>button[data-action="send-prompt"],
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-end"]>.btn {
        width: 100% !important;
        height: 48px !important;
        justify-content: center !important;
    }
}

/* ==========================================
   AUTH CONTROLS
   ========================================== */

.auth-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-default);
}

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

.user-name {
    font-size: var(--text-sm);
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.user-email {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Welcome screen sign-in button */
.welcome-auth {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

.btn--google {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: white;
    color: #1f1f1f;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn--google:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.btn--google svg,
.btn--google img {
    width: 20px;
    height: 20px;
}

/* Hide on mobile for cleaner header */
@media (max-width: 600px) {
    .user-name {
        display: none;
    }

    .user-menu-trigger {
        padding: var(--space-1);
    }
}

/* ==========================================
   ACCOUNT PAGE - App Theme Style
   ========================================== */

.account-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.account-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--duration-normal) var(--ease-out);
}

.account-section:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

/* Profile section spans full width */
.account-section--profile {
    grid-column: 1 / -1;
}

/* Stats section spans full width */
.account-section--stats {
    grid-column: 1 / -1;
}

.account-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.account-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Profile Header Section */
.account-profile {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.account-avatar {
    position: relative;
}

.account-avatar img,
.account-avatar .avatar-fallback-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-default);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.avatar-fallback-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    color: #000;
    font-weight: 600;
    font-size: 28px;
}

.account-info h1 {
    margin-bottom: var(--space-1);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.account-info .text-body {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Stats Grid - Dashboard Style */
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

/* Stat Cards - App Theme Style */
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ==========================================
   ACCOUNT PAGE V2 - Redesigned Layout
   ========================================== */

.account-page-v2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-6);
}

/* Profile Hero */
.account-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
}

.account-hero-main {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.account-avatar-lg img,
.account-avatar-lg .avatar-fallback-xl {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-default);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.avatar-fallback-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
    color: #000;
    font-weight: 600;
    font-size: 24px;
}

.account-hero-info h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.account-hero-email {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.account-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.account-hero-actions {
    display: flex;
    gap: var(--space-3);
}

/* Main Grid */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

/* Account Cards */
.account-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.account-card--progress {
    grid-column: 1 / -1;
}

.account-card-header {
    margin-bottom: var(--space-4);
}

.account-card-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.account-card-header h2 svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.account-card-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.account-card-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-4) 0;
}

/* Progress Section */
.account-progress-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
    align-items: start;
}

.progress-radial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.progress-radial {
    width: 180px;
    height: 180px;
}

.progress-radial-bar {
    transition: stroke-dashoffset 1s ease-out;
}

.progress-radial-percent {
    font-size: 32px;
    font-weight: 300;
    fill: var(--text-primary);
}

.progress-radial-label {
    font-size: 12px;
    fill: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.progress-radial-stats {
    display: flex;
    gap: var(--space-6);
}

.progress-stat {
    text-align: center;
}

.progress-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.progress-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Module Progress List */
.progress-modules h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-progress-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.module-progress-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.module-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-progress-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.module-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.module-progress-value {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.module-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.module-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
    .account-hero {
        flex-direction: column;
        text-align: center;
    }

    .account-hero-main {
        flex-direction: column;
    }

    .account-hero-badges {
        justify-content: center;
    }

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

    .account-progress-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .progress-modules {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .account-page-v2 {
        padding: var(--space-4);
    }

    .account-hero {
        padding: var(--space-4);
    }

    .account-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .account-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .progress-radial {
        width: 150px;
        height: 150px;
    }

    .progress-radial-percent {
        font-size: 26px;
    }
}

/* Highlight stat card variation */
.stat-card--highlight {
    border-color: var(--border-default);
}

.stat-card--highlight:hover {
    border-color: var(--border-accent);
}

/* Progress Bar - Dashboard Style */
.progress-bar-lg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-lg-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Settings List - Dashboard Style */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.setting-item:hover {
    background: rgba(20, 184, 166, 0.03);
}

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

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.setting-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.setting-select {
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(20, 184, 166, 0.4);
}

.setting-select:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Toggle Switch - Dashboard Style */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.25s ease;
}

.toggle input:checked+.toggle-slider {
    background: var(--teal-500);
    border-color: var(--teal-500);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.toggle input:checked+.toggle-slider::before {
    background: #000;
    transform: translateX(22px);
}

/* Profile Settings - Dashboard Style */
.profile-settings {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.tools-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(20, 184, 166, 0.3);
}

.checkbox-label:has(input:checked) {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
    color: var(--teal-400);
}

.checkbox-label input {
    accent-color: var(--teal-500);
}

/* Danger Button - Dashboard Style */
.btn--danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.setting-item--danger {
    background: rgba(239, 68, 68, 0.05);
    margin: 0 calc(var(--space-4) * -1);
    padding: var(--space-4);
    border-radius: 12px;
    border-bottom: none;
}

/* Empty State - Dashboard Style */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-6);
    color: rgba(255, 255, 255, 0.5);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    color: rgba(255, 255, 255, 0.3);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-2);
    color: rgba(255, 255, 255, 0.7);
}

/* Account Page Responsive */
@media (max-width: 900px) {
    .account-page {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .account-section--profile,
    .account-section--stats {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .account-page {
        padding: var(--space-4);
    }

    .account-section {
        padding: var(--space-5);
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .account-profile {
        flex-direction: column;
        text-align: center;
    }

    .account-role-info {
        justify-content: center;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

/* ==========================================
   AUTH CHOICE (Welcome Screen)
   ========================================== */

.auth-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    max-width: 320px;
    margin: 0 auto;
}

.auth-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
}

.auth-option--recommended {
    position: relative;
}

.auth-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    padding: 4px 12px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-400);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    border: 1px solid rgba(20, 184, 166, 0.2);
    position: static;
    transform: none;
}

.auth-option-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.auth-option-desc {
    color: var(--text-secondary);
    text-align: center;
    max-width: 280px;
}

.auth-option-desc.text-muted {
    color: var(--text-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* ==========================================
   SIGN-IN REMINDER (Header)
   ========================================== */

.sign-in-reminder {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--radius-full);
    color: var(--teal-400, #2dd4bf);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-in-reminder:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.5);
}

.sign-in-reminder svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .sign-in-reminder span {
        display: none;
    }

    .sign-in-reminder {
        padding: var(--space-2);
    }
}

/* ==========================================
   SIGN-IN PROMPT (Post-completion overlay)
   ========================================== */

.sign-in-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sign-in-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(236, 72, 153, 0);
    }
}

.sign-in-prompt-text {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin: 0;
}

.sign-in-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
}

.sign-in-prompt-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Small size button variant */
.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    min-height: 36px;
}

/* Large size button variant */
.btn--lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
    min-height: 52px;
    gap: var(--space-3);
}

/* ==========================================
   PRIVACY MODULE - Mobile Optimization
   ========================================== */

/* Privacy module story cards - 2-column grids */
@media (max-width: 600px) {
    /* Never Share / Always Safe comparison grid */
    .card > div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-3) !important;
    }

    /* Account type comparison cards (Workspace vs Personal) */
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"][style*="gap: var(--space-4)"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-4) !important;
    }

    /* Account quiz buttons (Workspace/Personal/Both) - stack vertically */
    div[style*="display: flex"][style*="gap: var(--space-3)"]:has(> button[data-action="account-choice"]) {
        flex-direction: column !important;
    }

    div[style*="display: flex"][style*="gap: var(--space-3)"]:has(> button[data-action="safety-choice"]) {
        flex-direction: column !important;
    }

    /* Anonymization challenge option buttons */
    div[style*="display: flex"][style*="flex-direction: column"]:has(> button[data-action="anonymize-choice"]) button {
        padding: var(--space-3) !important;
    }

    div[style*="display: flex"][style*="flex-direction: column"]:has(> button[data-action="anonymize-choice"]) button span:first-child {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: var(--text-xs) !important;
    }

    /* Privacy violations list items - reduce icon size */
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-start"][style*="padding: var(--space-3)"] {
        gap: var(--space-2) !important;
        padding: var(--space-2) !important;
    }

    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-start"][style*="padding: var(--space-3)"] svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Story cards - reduce padding on hero icons */
    div[style*="width: 80px"][style*="height: 80px"] {
        width: 64px !important;
        height: 64px !important;
    }

    div[style*="width: 80px"][style*="height: 80px"] svg {
        width: 32px !important;
        height: 32px !important;
    }

    div[style*="width: 64px"][style*="height: 64px"][style*="border-radius: 50%"] svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* Golden Rule quote box */
    div[style*="padding: var(--space-6)"][style*="background: var(--bg-elevated)"] {
        padding: var(--space-4) !important;
    }

    div[style*="padding: var(--space-6)"][style*="background: var(--bg-elevated)"] .text-body-lg {
        font-size: var(--text-base) !important;
    }

    /* Key takeaways numbered list */
    div[style*="display: flex"][style*="gap: var(--space-3)"][style*="align-items: flex-start"] > div[style*="width: 24px"][style*="height: 24px"] {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    /* Final quiz options - ensure they're full width */
    .card label[style*="display: flex"][style*="align-items: flex-start"][style*="gap: var(--space-3)"] {
        gap: var(--space-2) !important;
        padding: var(--space-2) !important;
    }

    /* Reduce monospace prompt text size */
    div[style*="font-family: monospace"] {
        font-size: var(--text-xs) !important;
    }

    /* Privacy module header */
    .module-header h1.text-h1 {
        font-size: clamp(1.4rem, 5vw, 1.75rem) !important;
    }
}

/* Anonymization options mobile */
@media (max-width: 600px) {
    .anonymize-options {
        gap: var(--space-2) !important;
    }

    .anonymize-option {
        padding: var(--space-3) !important;
        font-size: var(--text-sm) !important;
    }

    .anonymize-option-letter {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: var(--text-xs) !important;
        margin-right: var(--space-2) !important;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    /* Make account reveal buttons smaller */
    button.card[data-action*="reveal"] {
        padding: var(--space-3) !important;
        min-height: 120px !important;
    }

    button.card[data-action*="reveal"] h3 {
        font-size: var(--text-sm) !important;
    }

    button.card[data-action*="reveal"] > div[style*="width: 48px"] {
        width: 40px !important;
        height: 40px !important;
    }

    /* Smaller prompt boxes */
    div[style*="border-left: 4px solid"] {
        padding: var(--space-2) var(--space-3) !important;
    }

    div[style*="border-left: 4px solid"] p {
        font-size: var(--text-sm) !important;
    }

    /* Quiz answer buttons - stack icon and text */
    button[data-action="account-choice"],
    button[data-action="safety-choice"] {
        flex-direction: row !important;
        justify-content: center !important;
        padding: var(--space-3) !important;
    }

    button[data-action="account-choice"] svg,
    button[data-action="safety-choice"] svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Anonymization options extra small */
    .anonymize-option {
        padding: var(--space-2) !important;
    }

    .anonymize-option-letter {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }
}

/* ==========================================
   Featured Card (Geminator)
   ========================================== */

.featured-card {
    position: relative;
    width: 100%;
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--radius-xl);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.featured-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.2);
}

.featured-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-normal);
    pointer-events: none;
}

.featured-card:hover .featured-card-glow {
    opacity: 1;
}

.featured-card-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.featured-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.featured-card-text {
    flex: 1;
    text-align: left;
}

.featured-card-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pink-400);
    margin-bottom: var(--space-1);
}

.featured-card-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
    background: linear-gradient(135deg, var(--pink-400), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-card-desc {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin: 0;
}

.featured-card-arrow {
    color: var(--pink-400);
    opacity: 0.5;
    transition: all var(--duration-fast);
}

.featured-card:hover .featured-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Mobile adjustments for featured card */
@media (max-width: 640px) {
    .featured-card {
        padding: var(--space-4);
    }

    .featured-card-content {
        gap: var(--space-4);
    }

    .featured-card-icon {
        width: 48px;
        height: 48px;
    }

    .featured-card-icon span {
        font-size: 1.5rem !important;
    }

    .featured-card-title {
        font-size: var(--text-xl);
    }

    .featured-card-desc {
        font-size: var(--text-sm);
    }
}

/* ==========================================
   Geminator Purpose Grid
   ========================================== */

.geminator-purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1000px;
    margin: 0 auto;
}

/* Center text in purpose cards */
.geminator-purpose-grid .radio-card-content {
    text-align: center;
}

.geminator-purpose-grid .radio-card-label {
    text-align: center;
    display: block;
}

.geminator-purpose-grid .radio-card-sub {
    text-align: center;
    display: block;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .geminator-purpose-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .geminator-purpose-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        max-width: 400px;
    }

    .geminator-purpose-grid .radio-card-content {
        padding: var(--space-4) !important;
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
    }

    .geminator-purpose-grid .radio-card-icon {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0;
    }

    .geminator-purpose-grid .radio-card-label {
        font-size: var(--text-base);
        text-align: left;
    }

    .geminator-purpose-grid .radio-card-sub {
        display: none;
    }
}

/* ==========================================
   Geminator Tone Grid
   ========================================== */

.geminator-tone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1000px;
    margin: 0 auto;
}

/* Center text in tone cards */
.geminator-tone-grid .radio-card-content {
    text-align: center;
}

.geminator-tone-grid .radio-card-label {
    text-align: center;
    display: block;
}

.geminator-tone-grid .radio-card-sub {
    text-align: center;
    display: block;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .geminator-tone-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .geminator-tone-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        max-width: 400px;
    }

    .geminator-tone-grid .radio-card-content {
        padding: var(--space-4) !important;
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
    }

    .geminator-tone-grid .radio-card-icon {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0;
    }

    .geminator-tone-grid .radio-card-label {
        font-size: var(--text-base);
        text-align: left;
    }

    .geminator-tone-grid .radio-card-sub {
        display: none;
    }
}

/* Geminator Result Page */
.geminator-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

@media (max-width: 1100px) {
    .geminator-result-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Pro tips grid responsive */
.geminator-pro-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .geminator-pro-tips-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
}

/* ==========================================
   ADMIN DASHBOARD
   ========================================== */

.admin-dashboard {
    max-width: 85vw;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.admin-header-actions {
    display: flex;
    gap: var(--space-3);
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Section */
.admin-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.admin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--border-accent);
    opacity: 0.6;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.admin-section-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.admin-section-header h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--teal-500);
}

/* Section color variations */
.admin-section--blue::before {
    background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
}

.admin-section--blue .admin-section-header h2::before {
    background: var(--blue-500);
    box-shadow: 0 0 10px var(--blue-500);
}

.admin-section--purple::before {
    background: linear-gradient(180deg, var(--purple-500), var(--purple-600));
}

.admin-section--purple .admin-section-header h2::before {
    background: var(--purple-500);
    box-shadow: 0 0 10px var(--purple-500);
}

.admin-section--orange::before {
    background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
}

.admin-section--orange .admin-section-header h2::before {
    background: var(--orange-500);
    box-shadow: 0 0 10px var(--orange-500);
}

/* Search/Filter */
.admin-search-container {
    margin-bottom: var(--space-4);
}

.admin-search-input {
    width: 100%;
    max-width: 300px;
    padding: var(--space-2) var(--space-3);
    padding-left: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.admin-search-input::placeholder {
    color: var(--text-muted);
}

.admin-search-wrapper {
    position: relative;
    display: inline-block;
}

.admin-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Charts Grid */
.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

@media (max-width: 900px) {
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart Card */
.admin-chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
    opacity: 0.7;
}

.admin-chart-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-chart-header {
    margin-bottom: var(--space-4);
}

.admin-chart-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.admin-chart-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.admin-chart-container {
    position: relative;
    height: 200px;
}

.admin-chart-container-lg {
    height: 300px;
}

/* KPI Cards Grid */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

@media (max-width: 1100px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.admin-kpi-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0.8;
}

.admin-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-kpi-card--green::before {
    background: linear-gradient(180deg, var(--green-400), var(--green-600));
}

.admin-kpi-card--green .admin-kpi-icon {
    color: var(--green-400);
    background: rgba(34, 197, 94, 0.15);
}

.admin-kpi-card--blue::before {
    background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
}

.admin-kpi-card--blue .admin-kpi-icon {
    color: var(--blue-400);
    background: rgba(59, 130, 246, 0.15);
}

.admin-kpi-card--amber::before {
    background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
}

.admin-kpi-card--amber .admin-kpi-icon {
    color: var(--amber-400);
    background: rgba(251, 191, 36, 0.15);
}

.admin-kpi-card--purple::before {
    background: linear-gradient(180deg, var(--purple-400), var(--purple-600));
}

.admin-kpi-card--purple .admin-kpi-icon {
    color: var(--purple-400);
    background: rgba(168, 85, 247, 0.15);
}

.admin-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-kpi-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.admin-kpi-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.admin-kpi-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.admin-kpi-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Progress Ring (SVG-based) */
.admin-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.admin-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.3));
}

.admin-ring-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 6;
}

.admin-ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-ring-value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.admin-ring-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Table */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: linear-gradient(90deg, var(--bg-elevated) 0%, rgba(20, 184, 166, 0.05) 100%);
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(20, 184, 166, 0.05);
}

.admin-name-cell {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.admin-domain {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    padding: 2px 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.admin-no-admin {
    color: var(--text-muted);
    font-style: italic;
}

.admin-actions {
    display: flex;
    gap: var(--space-2);
}

/* User cells */
.admin-user-cell-detail {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.admin-user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-avatar-sm span {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #000;
}

.admin-user-name {
    display: block;
    font-weight: 500;
}

.admin-user-email {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Role badges */
.admin-role-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.admin-role-user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-role-facilitator {
    background: rgba(20, 184, 166, 0.15);
    color: var(--teal-400);
    border: 1px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.15);
}

.admin-role-school_admin {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

.admin-role-district_admin {
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple-400);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.15);
}

.admin-role-developer {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.15));
    color: var(--orange-400);
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

/* Progress bars */
.admin-progress-bar {
    width: 100px;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--space-2);
}

.admin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.admin-progress-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Activity list */
.admin-activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.admin-activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.admin-activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-activity-avatar span {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #000;
}

.admin-activity-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-activity-name {
    font-weight: 500;
}

.admin-activity-time {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Staff grid */
.admin-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-4);
}

.admin-staff-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-staff-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-staff-card:hover::before {
    opacity: 1;
}

.admin-staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.admin-staff-card:hover .admin-staff-avatar {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5);
    transform: scale(1.05);
}

.admin-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-staff-avatar span {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #000;
}

.admin-staff-info {
    flex: 1;
    min-width: 0;
}

.admin-staff-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-staff-role {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
}

.admin-staff-school {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Module analytics grid */
.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

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

@media (max-width: 480px) {
    .admin-module-grid {
        grid-template-columns: 1fr;
    }
}

.admin-module-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: all 0.3s ease;
}

.admin-module-stat:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-module-progress {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(
        var(--teal-500) calc(var(--progress) * 1%),
        var(--border-subtle) calc(var(--progress) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.admin-module-stat:hover .admin-module-progress {
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

.admin-module-progress::before {
    content: '';
    position: absolute;
    width: 52px;
    height: 52px;
    background: var(--bg-elevated);
    border-radius: 50%;
}

.admin-module-percent {
    position: relative;
    z-index: 1;
    font-size: var(--text-sm);
    font-weight: 600;
}

.admin-module-name {
    font-size: var(--text-sm);
    font-weight: 500;
}

.admin-module-started {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Participant grid */
.admin-participant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.admin-participant-card {
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.admin-participant-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.admin-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-participant-avatar span {
    font-size: var(--text-base);
    font-weight: 600;
    color: #000;
}

.admin-participant-info {
    flex: 1;
    min-width: 0;
}

.admin-participant-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-participant-time {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.admin-participant-progress {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.admin-participant-progress .admin-progress-bar {
    flex: 1;
}

/* Empty state */
.admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-10);
    text-align: center;
}

.admin-empty p {
    color: var(--text-muted);
}

/* Loading state */
.admin-loading {
    padding: var(--space-6);
    text-align: center;
    color: var(--text-muted);
    position: relative;
}

.admin-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--teal-500);
    border-radius: 50%;
    margin-right: var(--space-2);
    vertical-align: middle;
    animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
    to { transform: rotate(360deg); }
}

/* Access denied */
.admin-access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.admin-access-denied-content {
    text-align: center;
    max-width: 400px;
}

.admin-access-denied-content h2 {
    margin: var(--space-4) 0 var(--space-2);
}

.admin-access-denied-content p {
    color: var(--text-muted);
}

/* Modal */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.admin-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.admin-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--blue-500), var(--purple-500));
}

.admin-modal--wide {
    max-width: 900px;
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-modal-content {
    padding: var(--space-6);
}

/* Form styles */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.form-group .input {
    width: 100%;
}

.form-help {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-tab {
    padding: var(--space-3) var(--space-4);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.admin-tab:hover {
    color: var(--text-secondary);
}

.admin-tab.active {
    color: var(--text-primary);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal-500);
    border-radius: 2px 2px 0 0;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Admin File Drop Zone */
.admin-file-drop {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-elevated);
}

.admin-file-drop:hover,
.admin-file-drop.dragover {
    border-color: var(--teal-500);
    background: rgba(20, 184, 166, 0.05);
}

.admin-file-drop i {
    display: block;
    margin: 0 auto var(--space-3);
    color: var(--text-muted);
}

.admin-file-drop p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.admin-file-drop span {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Admin Divider */
.admin-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.admin-divider::before,
.admin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.admin-divider span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Admin Preview List */
.admin-preview {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.admin-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.admin-preview-header strong {
    font-size: var(--text-sm);
    font-weight: 600;
}

.admin-preview-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.admin-preview-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 200px;
    overflow-y: auto;
}

.admin-preview-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.admin-preview-item i {
    width: 14px;
    height: 14px;
    color: var(--teal-500);
}

.admin-preview-more {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-2);
}

/* Admin Table Checkboxes */
.admin-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--teal-500);
}

/* Admin Assign Button (for site admin column) */
.admin-assign-btn {
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-2);
    min-height: auto;
    transition: all 0.2s ease;
}

.admin-assign-btn:hover {
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.1);
}

.admin-assign-btn .admin-no-admin {
    font-style: italic;
    opacity: 0.7;
}

/* Clickable name links in admin tables */
.admin-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.admin-name-link:hover {
    color: var(--teal-400);
}

.admin-name-link:hover span {
    text-decoration: underline;
}

/* ===========================================
   Module Sidebar Navigation - Floating Glass
   =========================================== */

/* Main layout container */
.module-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.module-layout.sidebar-open .module-main {
    margin-left: 290px;
    max-width: calc(100vw - 310px);
}

.module-layout.sidebar-closed .module-main {
    margin-left: 80px;
    max-width: calc(100vw - 100px);
}

.module-main {
    flex: 1;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* Floating Sidebar - Transparent with Floating Cards */
.module-sidebar {
    position: fixed;
    top: 80px;
    left: 16px;
    bottom: 80px;
    height: auto;
    background: transparent;
    border: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.module-sidebar.open {
    width: 268px;
}

.module-sidebar.collapsed {
    width: 56px;
}

/* Toggle button - floating card */
.sidebar-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--teal-400);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.2);
}

.module-sidebar.collapsed .sidebar-toggle {
    right: 50%;
    transform: translateX(50%);
    top: 0;
}

/* Sidebar header - floating card */
.sidebar-header {
    padding: 14px 16px;
    padding-right: 48px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sidebar-header h3,
.sidebar-header .sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.sidebar-header .sidebar-subtitle {
    font-size: 0.65rem;
    color: var(--teal-400);
    margin: 3px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Steps container */
.sidebar-steps {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-steps::-webkit-scrollbar {
    width: 4px;
}

.sidebar-steps::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Individual step button - floating card */
.sidebar-step {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Prevent text selection on double-click */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sidebar-step:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateX(3px);
}

.sidebar-step.active {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--teal-400);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-step.completed .step-indicator {
    background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-500) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

/* Step indicator circle */
.step-indicator {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.sidebar-step:hover .step-indicator {
    border-color: rgba(20, 184, 166, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.6);
}

.sidebar-step.active .step-indicator {
    border-color: var(--teal-400);
    background: rgba(0, 0, 0, 0.5);
    color: var(--teal-400);
}

/* Completed AND active - keep the filled checkmark style */
.sidebar-step.completed.active .step-indicator {
    background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-500) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

/* Started but not complete - teal ring only */
.sidebar-step.started .step-indicator {
    border-color: rgba(20, 184, 166, 0.5);
    border-width: 1px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(20, 184, 166, 0.7);
}

/* Completed step card gets subtle green tint */
.sidebar-step.completed {
    border-color: rgba(20, 184, 166, 0.2);
}

.sidebar-step.started .step-title {
    color: rgba(255, 255, 255, 0.7);
}

/* Step text content */
.step-content,
.step-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-step:hover .step-title {
    color: #fff;
}

.sidebar-step.active .step-title {
    color: var(--teal-400);
    font-weight: 600;
}

.step-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-step:hover .step-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Sidebar subtitle */
.sidebar-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 4px 0 0 0;
}

/* Collapsed sidebar - step icons */
.sidebar-steps-collapsed {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 0 0 0;
    gap: 6px;
}

.sidebar-step-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-step-icon:hover {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.15);
}

.sidebar-step-icon.active {
    border-color: var(--teal-400);
    background: rgba(0, 0, 0, 0.85);
    color: var(--teal-400);
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.25);
}

.sidebar-step-icon.completed {
    background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-500) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

.sidebar-step-icon.started {
    border-color: rgba(20, 184, 166, 0.5);
    background: rgba(0, 0, 0, 0.7);
    color: rgba(20, 184, 166, 0.7);
}

/* ==========================================
   Sidebar Footer (Reset Step & Theme Toggle)
   ========================================== */

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    gap: var(--space-2);
}

.sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-footer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--teal-400);
    color: var(--teal-400);
}

.sidebar-footer-btn:active {
    transform: scale(0.97);
}

/* Theme toggle button */
.sidebar-theme-toggle {
    padding: var(--space-2);
    min-width: 36px;
    justify-content: center;
}

.sidebar-theme-toggle .theme-icon-dark {
    display: block;
}

.sidebar-theme-toggle .theme-icon-light {
    display: none;
}

/* Light mode: show sun, hide moon */
.light-mode .sidebar-theme-toggle .theme-icon-dark {
    display: none;
}

.light-mode .sidebar-theme-toggle .theme-icon-light {
    display: block;
}

/* Collapsed sidebar footer - icon only buttons stacked vertically */
.sidebar-footer-collapsed {
    flex-direction: column;
    padding: var(--space-2);
    gap: var(--space-2);
    align-items: center;
}

.sidebar-footer-collapsed .sidebar-footer-btn {
    padding: var(--space-2);
    justify-content: center;
    width: 36px;
    height: 36px;
}

/* ==========================================
   Blue Module Sidebar Variant (Model Selection)
   ========================================== */

.module-sidebar--blue .sidebar-header .sidebar-subtitle {
    color: var(--blue-400);
}

.module-sidebar--blue .sidebar-toggle:hover {
    color: var(--blue-400);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.module-sidebar--blue .sidebar-step:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.module-sidebar--blue .sidebar-step.active {
    border-color: var(--blue-400);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.module-sidebar--blue .sidebar-step.completed .step-indicator {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.module-sidebar--blue .sidebar-step:hover .step-indicator {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--blue-400);
}

.module-sidebar--blue .sidebar-step.active .step-indicator {
    border-color: var(--blue-400);
    color: var(--blue-400);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.module-sidebar--blue .sidebar-step.started .step-indicator {
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(59, 130, 246, 0.8);
}

.module-sidebar--blue .sidebar-step:hover .step-title {
    color: var(--blue-300);
}

.module-sidebar--blue .sidebar-step.active .step-title {
    color: var(--blue-400);
}

.module-sidebar--blue .sidebar-step.started .step-title {
    color: rgba(59, 130, 246, 0.8);
}

.module-sidebar--blue .sidebar-step-icon:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--blue-400);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.module-sidebar--blue .sidebar-step-icon.active {
    border-color: var(--blue-400);
    color: var(--blue-400);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.module-sidebar--blue .sidebar-step-icon.completed {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.module-sidebar--blue .sidebar-step-icon.started {
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(59, 130, 246, 0.7);
}

/* ==========================================
   Purple Module Sidebar Variant (Multimodal)
   ========================================== */

.module-sidebar--purple .sidebar-header .sidebar-subtitle {
    color: var(--purple-400);
}

.module-sidebar--purple .sidebar-toggle:hover {
    color: var(--purple-400);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.module-sidebar--purple .sidebar-step:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.module-sidebar--purple .sidebar-step.active {
    border-color: var(--purple-400);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.module-sidebar--purple .sidebar-step.completed .step-indicator {
    background: linear-gradient(135deg, var(--purple-400) 0%, var(--purple-500) 100%);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.module-sidebar--purple .sidebar-step:hover .step-indicator {
    border-color: rgba(168, 85, 247, 0.5);
    color: var(--purple-400);
}

.module-sidebar--purple .sidebar-step.active .step-indicator {
    border-color: var(--purple-400);
    color: var(--purple-400);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.module-sidebar--purple .sidebar-step.started .step-indicator {
    border-color: rgba(168, 85, 247, 0.5);
    color: rgba(168, 85, 247, 0.8);
}

.module-sidebar--purple .sidebar-step:hover .step-title {
    color: var(--purple-300);
}

.module-sidebar--purple .sidebar-step.active .step-title {
    color: var(--purple-400);
}

.module-sidebar--purple .sidebar-step.started .step-title {
    color: rgba(168, 85, 247, 0.8);
}

.module-sidebar--purple .sidebar-step-icon:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: var(--purple-400);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.module-sidebar--purple .sidebar-step-icon.active {
    border-color: var(--purple-400);
    color: var(--purple-400);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.module-sidebar--purple .sidebar-step-icon.completed {
    background: linear-gradient(135deg, var(--purple-400) 0%, var(--purple-500) 100%);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.module-sidebar--purple .sidebar-step-icon.started {
    border-color: rgba(168, 85, 247, 0.5);
    color: rgba(168, 85, 247, 0.7);
}

/* Collapsed sidebar states */
.module-sidebar.collapsed .sidebar-header,
.module-sidebar.collapsed .step-content,
.module-sidebar.collapsed .step-info,
.module-sidebar.collapsed .sidebar-skip span,
.module-sidebar.collapsed .skip-hint {
    display: none;
}

.module-sidebar.collapsed .sidebar-steps {
    padding: 44px 0 0 0;
    align-items: center;
}

.module-sidebar.collapsed .sidebar-step {
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
}

.module-sidebar.collapsed .sidebar-footer {
    padding: 0;
}

.module-sidebar.collapsed .sidebar-skip {
    padding: 0;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .module-sidebar {
        top: 56px;
        left: 12px;
        bottom: 12px;
        height: auto;
        transform: translateX(calc(-100% - 24px));
        width: 260px !important;
    }

    .module-sidebar.open {
        transform: translateX(0);
    }

    .module-layout.sidebar-open .module-main,
    .module-layout.sidebar-closed .module-main {
        margin-left: 0;
    }

    /* Mobile toggle button */
    .module-sidebar.collapsed .sidebar-toggle,
    .module-sidebar .sidebar-toggle {
        position: fixed;
        top: 64px;
        left: 20px;
        right: auto;
        transform: none;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .module-sidebar.open .sidebar-toggle {
        position: absolute;
        top: 12px;
        right: 12px;
        left: auto;
    }

    /* Overlay when sidebar is open on mobile */
    .module-layout.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 99;
    }
}

/* ===================================
   Admin School Accordion Panels
   =================================== */
.admin-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.admin-accordion-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.admin-accordion-item:hover {
    border-color: var(--border-default);
}

.admin-accordion-item.expanded {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.admin-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.admin-accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-accordion-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
}

.admin-accordion-checkbox {
    flex-shrink: 0;
}

.admin-accordion-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-accordion-icon i {
    color: var(--blue-400);
}

.admin-accordion-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.admin-accordion-title h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-accordion-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.admin-accordion-stats {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-right: var(--space-4);
}

.admin-accordion-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    min-width: 60px;
}

.admin-accordion-stat-value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.admin-accordion-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-accordion-toggle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.admin-accordion-item.expanded .admin-accordion-toggle {
    transform: rotate(180deg);
    color: var(--blue-400);
}

.admin-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.admin-accordion-item.expanded .admin-accordion-body {
    max-height: 500px;
}

.admin-accordion-content {
    padding: 0 var(--space-4) var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.admin-accordion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    padding-top: var(--space-4);
}

.admin-accordion-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.admin-accordion-field-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-accordion-field-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.admin-accordion-actions {
    display: flex;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    .admin-accordion-stats {
        display: none;
    }

    .admin-accordion-header {
        padding: var(--space-3);
    }

    .admin-accordion-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* Clickable Stat Card */
.stat-card--clickable {
    cursor: pointer;
    user-select: none;
}

.stat-card--clickable:hover {
    border-color: var(--blue-500);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.stat-card--clickable:active {
    transform: translateY(0);
}

.stat-card--active {
    border-color: var(--blue-500);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.stat-card--active::before {
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
    opacity: 1;
}

.stat-card-icon {
    opacity: 0.6;
}

.stat-card--clickable:hover .stat-card-icon {
    opacity: 1;
}

/* ===================================
   School Leaderboard
   =================================== */
.admin-leaderboard {
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.leaderboard-rank--top {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
    color: var(--amber-400);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-users {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.leaderboard-progress {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.leaderboard-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.leaderboard-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.leaderboard-percent {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

/* ===================================
   Custom Checkboxes
   =================================== */
.admin-accordion-checkbox,
.school-checkbox,
#select-all-schools {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    flex-shrink: 0;
}

.admin-accordion-checkbox:hover,
.school-checkbox:hover,
#select-all-schools:hover {
    border-color: var(--teal-500);
    background: rgba(20, 184, 166, 0.1);
}

.admin-accordion-checkbox:checked,
.school-checkbox:checked,
#select-all-schools:checked {
    background: var(--teal-500);
    border-color: var(--teal-500);
}

.admin-accordion-checkbox:checked::after,
.school-checkbox:checked::after,
#select-all-schools:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.admin-accordion-checkbox:focus,
.school-checkbox:focus,
#select-all-schools:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* ===================================
   Account Role Badges - Dashboard Style
   =================================== */
.account-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid;
    transition: all 0.2s ease;
}

.account-role-badge--developer {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
    color: #FB923C;
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.15);
}

.account-role-badge--district {
    background: rgba(168, 85, 247, 0.15);
    color: #A78BFA;
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.account-role-badge--school {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.account-role-badge--facilitator {
    background: rgba(20, 184, 166, 0.15);
    color: #2DD4BF;
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.15);
}

.account-role-badge--user {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.account-org-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.account-org-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===================================
   Privacy Policy Page
   =================================== */
.privacy-policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.policy-header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.policy-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.policy-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(20px);
}

.policy-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.policy-section-title i {
    width: 20px;
    height: 20px;
    color: var(--teal-400);
}

.policy-section h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-3) 0;
}

.policy-section ul li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

.policy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--teal-400);
    border-radius: 50%;
}

.policy-section ul li strong {
    color: var(--text-primary);
}

.policy-section a {
    color: var(--teal-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.policy-section a:hover {
    color: var(--teal-300);
    text-decoration: underline;
}

.policy-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.policy-highlight p {
    margin: 0;
    color: var(--text-primary);
}

.contact-info {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.contact-info p {
    margin-bottom: var(--space-2);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.policy-footer {
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
}

@media (max-width: 640px) {
    .privacy-policy-page {
        padding: var(--space-6) var(--space-3);
    }

    .policy-section {
        padding: var(--space-4);
    }

    .policy-section-title {
        font-size: var(--text-base);
    }
}

/* ==========================================================================
   PRO TIPS - Anyra Pro Progression System
   ========================================================================== */

/* Pro Tip sidebar step styling - n8n inspired dark theme with vibrant orange */
.sidebar-step.pro-tip {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 30, 0.98));
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: var(--radius-lg);
    position: relative;
    backdrop-filter: blur(8px);
}

.sidebar-step.pro-tip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff8c32, #ff6b00);
    border-radius: 3px 0 0 3px;
}

.sidebar-step.pro-tip:hover {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 1));
    border-color: rgba(255, 140, 50, 0.6);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.sidebar-step.pro-tip.active {
    background: linear-gradient(135deg, rgba(35, 30, 45, 0.98), rgba(25, 20, 35, 1));
    border-color: #ff8c32;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.sidebar-step.pro-tip .step-indicator {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 140, 50, 0.1));
    border-color: rgba(255, 107, 0, 0.5);
    color: #ff8c32;
}

.sidebar-step.pro-tip:hover .step-indicator {
    border-color: #ff8c32;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.3), rgba(255, 140, 50, 0.2));
}

.sidebar-step.pro-tip.active .step-indicator {
    background: linear-gradient(135deg, #ff8c32, #ff6b00);
    border-color: transparent;
    color: #000;
}

.sidebar-step.pro-tip.completed .step-indicator {
    background: linear-gradient(135deg, #ff8c32, #ff6b00);
    border-color: transparent;
    color: #000;
    box-shadow: 0 2px 12px rgba(255, 107, 0, 0.5);
}

.sidebar-step.pro-tip .step-title {
    color: #ff8c32;
    font-weight: 600;
}

.sidebar-step.pro-tip .step-subtitle {
    color: rgba(255, 140, 50, 0.8);
}

/* Locked Pro Tip state */
.sidebar-step.pro-tip.locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-step.pro-tip.locked::before {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-step.pro-tip.locked .step-indicator {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-step.pro-tip.locked .step-title {
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-step.pro-tip.locked .step-subtitle {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
}

/* Newly unlocked animation */
.sidebar-step.pro-tip.newly-unlocked {
    animation: pro-tip-unlock 2s ease-in-out;
}

@keyframes pro-tip-unlock {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 107, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 140, 50, 0.5), 0 4px 16px rgba(0, 0, 0, 0.5);
        border-color: #ff8c32;
    }
}

/* Pro Tip label in header - n8n style */
.pro-tip-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 140, 50, 0.1));
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: #ff8c32;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
}

/* Pro Tip progress dots */
.pro-tip-progress-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.pro-tip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pro-tip-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #ff8c32;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.pro-tip-dot.completed {
    background: #ff6b00;
    border-color: transparent;
}

/* Pro Tip Card - n8n inspired dark theme */
.pro-tip-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 30, 0.98));
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pro-tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00, #ff8c32, #ff6b00);
}

.pro-tip-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 140, 50, 0.1));
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: #ff8c32;
}

.pro-tip-card-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: #ff8c32;
    margin-bottom: var(--space-4);
}

.pro-tip-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.pro-tip-shortcut kbd {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--text-primary);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.pro-tip-shortcut .plus {
    color: var(--text-muted);
    font-weight: 300;
}

.pro-tip-card-content {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pro-tip-card-humor {
    font-style: italic;
    color: var(--text-muted);
    font-size: var(--text-base);
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    margin: 0;
}

/* Pro Tip Navigation */
.pro-tip-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.pro-tip-complete-btn {
    background: linear-gradient(135deg, #ff8c32, #ff6b00) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.pro-tip-complete-btn:hover {
    background: linear-gradient(135deg, #ffaa55, #ff8c32) !important;
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
    transform: translateY(-2px);
}

/* Pro Tip Unlock Toast - n8n style */
.pro-tip-unlock-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(15, 15, 30, 0.99));
    border: 2px solid #ff8c32;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    box-shadow: 0 4px 24px rgba(255, 107, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: toast-slide-in 0.5s ease-out, toast-pulse 2s ease-in-out 0.5s;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toast-pulse {
    0%, 100% {
        box-shadow: 0 4px 24px rgba(255, 107, 0, 0.35), 0 8px 32px rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow: 0 4px 40px rgba(255, 140, 50, 0.55), 0 8px 32px rgba(0, 0, 0, 0.6);
    }
}

.pro-tip-unlock-toast-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff8c32, #ff6b00);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.pro-tip-unlock-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pro-tip-unlock-toast-title {
    font-weight: 600;
    color: #ff8c32;
    font-size: var(--text-base);
}

.pro-tip-unlock-toast-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Anyra Pro Progress Badge - n8n style */
.anyra-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 140, 50, 0.1));
    border: 1px solid rgba(255, 107, 0, 0.4);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    color: #ff8c32;
}

.anyra-pro-badge.complete {
    background: linear-gradient(135deg, #ff8c32, #ff6b00);
    border-color: transparent;
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(255, 107, 0, 0.4);
}

/* Anyra Pro Progress Bar - n8n style */
.anyra-pro-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 30, 0.9));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 0, 0.25);
}

.anyra-pro-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.anyra-pro-progress-label span:first-child {
    color: #ff8c32;
    font-weight: 500;
}

.anyra-pro-progress-label span:last-child {
    color: var(--text-muted);
}

.anyra-pro-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.anyra-pro-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ff8c32);
    border-radius: var(--radius-full);
    transition: width 0.5s ease-out;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

/* Collapsed sidebar Pro Tip icon - n8n style */
.sidebar-step-icon.pro-tip {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 140, 50, 0.1));
    border-color: rgba(255, 107, 0, 0.5);
    color: #ff8c32;
}

.sidebar-step-icon.pro-tip:hover {
    border-color: #ff8c32;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.3), rgba(255, 140, 50, 0.2));
}

.sidebar-step-icon.pro-tip.active {
    background: linear-gradient(135deg, #ff8c32, #ff6b00);
    border-color: transparent;
    color: #000;
}

.sidebar-step-icon.pro-tip.completed {
    background: linear-gradient(135deg, #ff8c32, #ff6b00);
    border-color: transparent;
    color: #000;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.4);
}

.sidebar-step-icon.pro-tip.locked {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

/* Pro Tip Feature Cards - animated gradient border styles in animations.css */

/* Responsive adjustments */
@media (max-width: 768px) {
    .pro-tip-card {
        padding: var(--space-6);
    }

    .pro-tip-card-title {
        font-size: var(--text-xl);
    }

    .pro-tip-card-content {
        font-size: var(--text-base);
    }

    .pro-tip-nav {
        flex-direction: column;
        gap: var(--space-3);
    }

    .pro-tip-nav .btn {
        width: 100%;
        justify-content: center;
    }

    /* Feature cards 2x2 on mobile */
    .pro-tip-intro-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==================== Header Step Navigation ==================== */
.header-pro-tips-nav {
    display: flex;
    align-items: flex-end;
    gap: var(--space-8);
}

/* Default white/neutral theme for regular steps */
.header-pro-tips-nav .nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.header-pro-tips-nav .nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
}

.header-pro-tips-nav .nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pro Tips orange theme */
.header-pro-tips-nav.pro-tips-theme .nav-btn {
    border-color: rgba(255, 140, 50, 0.3);
}

.header-pro-tips-nav.pro-tips-theme .nav-btn:hover:not(:disabled) {
    background: rgba(255, 140, 50, 0.1);
    border-color: rgba(255, 140, 50, 0.5);
    color: #ff8c32;
}

.header-pro-tips-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.header-pro-tips-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.header-pro-tips-nav.pro-tips-theme .header-pro-tips-title {
    color: #ff8c32;
}

.header-pro-tips-sub-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-pro-tips-sub-nav .sub-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}

.header-pro-tips-sub-nav .sub-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.header-pro-tips-nav.pro-tips-theme .sub-btn:hover:not(:disabled) {
    background: rgba(255, 140, 50, 0.15);
    color: #ff8c32;
}

.header-pro-tips-sub-nav .sub-btn:disabled {
    opacity: 0.3;
}

.header-pro-tips-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-pro-tips-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.header-pro-tips-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.header-pro-tips-dot.active {
    width: 18px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.header-pro-tips-dot.completed {
    background: rgba(255, 255, 255, 0.6);
}

/* Pro Tips orange dots */
.header-pro-tips-nav.pro-tips-theme .header-pro-tips-dot:hover {
    background: rgba(255, 140, 50, 0.5);
}

.header-pro-tips-nav.pro-tips-theme .header-pro-tips-dot.active {
    background: linear-gradient(90deg, #ff6b00, #ff8c32);
}

.header-pro-tips-nav.pro-tips-theme .header-pro-tips-dot.completed {
    background: #ff8c32;
}

/* Responsive adjustments for header nav */
@media (max-width: 768px) {
    .header-pro-tips-nav {
        gap: var(--space-2);
    }

    .header-pro-tips-nav .nav-btn span {
        display: none;
    }

    .header-pro-tips-nav .nav-btn {
        padding: 6px 10px;
    }

    .header-pro-tips-title {
        font-size: 0.75rem;
    }
}
