/* =====================================================
   GISTFORGE - NEOBRUTALIST COMPONENT STYLES
   Keeping Fraunces for titles, Inter for body
   ===================================================== */

/* Header - Neobrutalist */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 3px solid var(--accent-primary);
    z-index: 40;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-primary);
}

.user-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-primary);
}

.user-login {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Wizard Navigation - Neobrutalist */
.wizard-nav {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent-primary);
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.wizard-steps {
    display: flex;
    padding: var(--space-md) var(--space-lg);
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: var(--space-sm);
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% + 10px);
    width: 30px;
    height: 3px;
    background: var(--border-medium);
}

.wizard-step.completed::after {
    background: var(--accent-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-medium);
    background: var(--bg-primary);
    color: var(--text-tertiary);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    transition: all var(--transition-fast);
}

.wizard-step.active .step-number {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-brutal-sm);
}

.wizard-step.completed .step-number {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.wizard-step.completed .step-number::after {
    content: '✓';
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.wizard-step.active .step-title {
    color: var(--text-primary);
}

.wizard-step.completed .step-title {
    color: var(--text-secondary);
}

.step-indicator {
    display: none;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-medium);
    background: var(--bg-secondary);
}

/* Buttons - Neobrutalist */
.btn {
    padding: var(--space-sm) var(--space-lg);
    border: 3px solid var(--accent-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-brutal-sm);
}

.btn-primary:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-md);
}

.btn-primary:active:not(:disabled) {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 var(--accent-primary);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-brutal-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-md);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

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

/* Forms - Neobrutalist */
.input {
    width: 100%;
    padding: var(--space-md);
    border: 3px solid var(--accent-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.input:focus {
    outline: none;
    box-shadow: var(--shadow-brutal-sm);
    transform: translate(-2px, -2px);
}

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

.input-large {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-group .input {
    padding-left: calc(var(--space-md) + 28px);
}

.input-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.input-helper {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

.input-helper a {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
}

/* Cards - Neobrutalist */
.repo-card {
    background: var(--bg-card);
    border: 3px solid var(--accent-primary);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.repo-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-brutal-md);
}

.repo-card.selected {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-brutal-lg);
    transform: translate(-4px, -4px);
}

.repo-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--accent-primary);
}

.repo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

.repo-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.2;
}

.repo-description {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

.repo-checkbox {
    width: 24px;
    height: 24px;
    border: 3px solid var(--accent-primary);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 900;
    flex-shrink: 0;
}

.repo-checkbox.checked {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Config Cards - Neobrutalist */
.config-card {
    background: var(--bg-card);
    border: 3px solid var(--accent-primary);
    padding: var(--space-lg);
}

.config-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.config-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
}

/* Extension Grid - Neobrutalist */
.extension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-sm);
}

.extension-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.extension-option:hover {
    border-color: var(--accent-primary);
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--accent-primary);
}

.extension-option.selected {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    box-shadow: 3px 3px 0 var(--accent-primary);
    transform: translate(-2px, -2px);
}

.extension-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-primary);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 900;
    flex-shrink: 0;
}

.extension-checkbox.checked {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.extension-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.extension-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toggle - Neobrutalist */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.toggle-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
    padding: var(--space-md);
    border: 2px solid var(--border-medium);
    transition: all var(--transition-fast);
}

.toggle-label:hover {
    border-color: var(--accent-primary);
}

.toggle {
    position: relative;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    transition: var(--transition-fast);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--accent-primary);
    transition: var(--transition-fast);
}

.toggle input:checked+.toggle-slider {
    background: var(--accent-primary);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(24px);
    background: var(--bg-primary);
}

.toggle-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.toggle-content p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* Progress - Neobrutalist */
.processing-container {
    padding: var(--space-lg);
}

.processing-card {
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-brutal-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.processing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg,
            var(--accent-primary) 0px,
            var(--accent-primary) 10px,
            var(--bg-primary) 10px,
            var(--bg-primary) 20px);
    animation: marquee 0.5s linear infinite;
}

@keyframes marquee {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 0;
    }
}

.processing-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-sm);
}

.processing-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: pulse-brutal 1s ease-in-out infinite;
}

@keyframes pulse-brutal {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.processing-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0;
}

.progress-section {
    margin-bottom: var(--space-md);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.progress-label-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.progress-label-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-track {
    width: 100%;
    height: 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    overflow: hidden;
}

.progress-track-files {
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    transition: width 100ms ease-out;
}

.progress-bar-files {
    background: var(--text-tertiary);
    animation: progress-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes progress-pulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.current-file-container {
    background: var(--bg-secondary);
    border: 2px solid var(--border-medium);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
}

.current-file-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
}

.current-file {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1.25em;
}

.current-file.status-done {
    color: var(--success-color);
}

.current-file.status-error {
    color: var(--error-color);
}

/* Live Stats - Neobrutalist */
.live-stats {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--space-md);
    border-top: 2px dashed var(--border-medium);
    margin-top: var(--space-md);
}

.live-stat {
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    min-width: 80px;
}

.live-stat-value {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

/* Ticker (vertical sliding numbers) */
.ticker {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    height: 1.25em;
    overflow: hidden;
    vertical-align: bottom;
}

.ticker .ticker-current,
.ticker .ticker-next {
    display: block;
    width: 100%;
    text-align: center;
    transition: transform 360ms cubic-bezier(.2, .9, .3, 1);
    flex-shrink: 0;
    height: 1.25em;
    line-height: 1.25em;
}

.ticker .ticker-next {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
}

.ticker.tick .ticker-current {
    transform: translateY(-100%);
}

.ticker.tick .ticker-next {
    transform: translateY(-100%);
}

/* Falling number effect when items are processed */
.processing-card {
    /* keep relative so falling numbers are positioned inside */
    position: relative;
}

.falling-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8%;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    color: var(--accent-primary);
    pointer-events: none;
    user-select: none;
    animation: fall-and-fade 900ms cubic-bezier(.2, .8, .2, 1) forwards;
    will-change: transform, opacity;
}

@keyframes fall-and-fade {
    0% {
        transform: translate(-50%, -10px) scale(1);
        opacity: 1;
    }

    60% {
        transform: translate(-50%, 90px) scale(0.92);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, 220px) scale(0.6);
        opacity: 0;
    }
}

.live-stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

/* Results - Neobrutalist */
.results-container {
    animation: fadeIn var(--transition-normal) ease-out;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 3px solid var(--accent-primary);
}

.results-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat span:first-child {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat span:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.output-content {
    background: var(--bg-card);
    border: 3px solid var(--accent-primary);
}

.output-pre {
    margin: 0;
    max-height: 50vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: var(--space-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Empty State - Neobrutalist */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.empty-state h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
    max-width: 300px;
}

/* Loading - Neobrutalist */
.loading-container {
    text-align: center;
    padding: var(--space-2xl);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--accent-primary);
    margin: 0 auto var(--space-md);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Auth Screen - Neobrutalist */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.logo {
    width: 64px;
    height: 64px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-brutal-md);
}

.heading-xlarge {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: var(--space-lg) 0;
    color: var(--text-primary);
}

.outline-text {
    -webkit-text-stroke: 2px var(--accent-primary);
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.auth-form {
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-brutal-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Feature Cards - Neobrutalist */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 2px solid var(--border-medium);
    background: var(--bg-primary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-content p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* How-To Steps - Neobrutalist */
.how-to-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--accent-primary);
}

.how-to-section .heading-medium {
    margin-bottom: var(--space-lg);
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.how-to-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-medium);
}

.how-to-number {
    background: var(--accent-primary);
    color: var(--bg-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    flex-shrink: 0;
}

.how-to-content h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
}

.how-to-content p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.security-notice {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--success-color);
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Section Headers */
.section-header {
    margin-bottom: var(--space-lg);
}

.heading-large {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.heading-medium {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
}

.body-large {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Repo Grid */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* Config Grid */
.config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

/* Notifications - Neobrutalist */
.app-notification,
.app-error-notification,
.error-notification {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-md);
    border: 3px solid var(--accent-primary);
    font-weight: 700;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    max-width: 400px;
}

.app-notification {
    background: var(--success-color);
    color: white;
}

.app-error-notification,
.error-notification {
    background: var(--error-color);
    color: white;
}

.app-notification.show,
.app-error-notification.show,
.error-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Private indicators */
.repo-private-indicator,
.repo-private-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.fade-in {
    animation: fadeIn var(--transition-normal) ease-out;
}

.slide-up {
    animation: slideUp var(--transition-normal) ease-out;
}

/* =====================================================
   RESPONSIVE DESIGN - Mobile First
   ===================================================== */

/* Small screens (phones) */
@media (max-width: 480px) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .header-content {
        gap: var(--space-sm);
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .user-name {
        font-size: 0.875rem;
    }

    .user-login {
        font-size: 0.75rem;
    }

    .wizard-steps {
        padding: var(--space-sm);
        gap: var(--space-md);
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-title {
        font-size: 0.625rem;
    }

    .wizard-step:not(:last-child)::after {
        width: 15px;
        left: calc(100% + 5px);
        height: 2px;
    }

    .wizard-actions {
        padding: var(--space-sm) var(--space-md);
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.75rem;
    }

    .section-header {
        margin-bottom: var(--space-md);
    }

    .heading-large {
        font-size: 1.25rem;
    }

    .body-large {
        font-size: 0.875rem;
    }

    .repo-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .repo-card {
        padding: var(--space-md);
    }

    .repo-name {
        font-size: 1rem;
    }

    .extension-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .extension-option {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }

    .extension-label {
        font-size: 0.625rem;
    }

    .extension-icon {
        width: 16px;
        height: 16px;
    }

    .extension-checkbox {
        width: 14px;
        height: 14px;
    }

    .config-card {
        padding: var(--space-md);
    }

    .config-title {
        font-size: 1rem;
    }

    .config-description {
        font-size: 0.8125rem;
        margin-bottom: var(--space-md);
    }

    .folder-tree-container {
        max-height: 280px;
    }

    .toggle-group {
        gap: var(--space-md);
    }

    .toggle-label {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    .toggle-content h4 {
        font-size: 0.8125rem;
    }

    .toggle-content p {
        font-size: 0.75rem;
    }

    .toggle {
        width: 40px;
        height: 20px;
    }

    .toggle-slider:before {
        height: 12px;
        width: 12px;
    }

    .toggle input:checked+.toggle-slider:before {
        transform: translateX(20px);
    }

    .processing-card {
        padding: var(--space-md);
    }

    .processing-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .processing-title {
        font-size: 1rem;
    }

    .live-stats {
        gap: var(--space-sm);
    }

    .live-stat {
        padding: var(--space-xs) var(--space-sm);
        min-width: 60px;
    }

    .live-stat-value {
        font-size: 1rem;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: var(--space-sm);
    }

    .results-stats {
        justify-content: center;
        gap: var(--space-md);
    }

    .results-actions {
        justify-content: center;
    }

    .auth-container {
        padding: 0;
    }

    .auth-form {
        padding: var(--space-md);
    }

    .hero-subtitle {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .feature-card {
        padding: var(--space-sm);
    }

    .app-notification,
    .app-error-notification,
    .error-notification {
        left: var(--space-sm);
        right: var(--space-sm);
        padding: var(--space-sm);
        font-size: 0.875rem;
    }

    /* Folder tree mobile styles */
    .folder-path {
        display: none;
    }

    .folder-tree-repo-header {
        flex-wrap: wrap;
    }

    .folder-tree-count {
        font-size: 0.6875rem;
    }

    .folder-item {
        font-size: 0.75rem;
    }

    .folder-tree-folders {
        max-height: 180px;
    }

    .folder-tree-repo-name {
        font-size: 0.875rem;
    }
}

/* Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 768px) {
    .wizard-steps {
        gap: var(--space-lg);
    }

    .repo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .extension-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

/* Large screens (desktop) */
@media (min-width: 769px) {
    .wizard-steps {
        justify-content: center;
        gap: var(--space-2xl);
    }

    .wizard-step:not(:last-child)::after {
        width: 60px;
        left: calc(100% + 20px);
    }

    .repo-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .extension-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-header {
        flex-wrap: nowrap;
    }

    .app-notification,
    .app-error-notification,
    .error-notification {
        left: auto;
        right: var(--space-lg);
        bottom: var(--space-lg);
        max-width: 350px;
    }
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 769px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.section {
    padding: var(--space-lg) 0;
}

@media (min-width: 769px) {
    .section {
        padding: var(--space-xl) 0;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Main app layout */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-app main {
    flex: 1;
}

.wizard-view {
    width: 100%;
}

/* =====================================================
   FOLDER TREE STYLES
   ===================================================== */

.config-card-full {
    grid-column: 1 / -1;
}

.folder-tree-container {
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid var(--border-medium);
    background: var(--bg-primary);
}

.folder-tree-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.folder-tree-content {
    padding: var(--space-sm);
}

.folder-tree-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
}

.folder-tree-empty-small {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-style: italic;
}

.folder-tree-repo {
    margin-bottom: var(--space-md);
    border: 2px solid var(--border-medium);
    background: var(--bg-secondary);
}

.folder-tree-repo:last-child {
    margin-bottom: 0;
}

.folder-tree-repo-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-medium);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.folder-tree-repo-icon {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
}

.folder-tree-repo-name {
    flex: 1;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-tree-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.folder-tree-error {
    font-size: 0.75rem;
    color: var(--error);
    font-weight: 500;
}

.folder-tree-folders {
    max-height: 200px;
    overflow-y: auto;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
}

.folder-item:hover {
    background: var(--bg-tertiary);
}

.folder-icon {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.folder-name {
    color: var(--text-primary);
    font-weight: 500;
}

.folder-path {
    color: var(--text-tertiary);
    font-size: 0.6875rem;
    margin-left: auto;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom checkbox styling */
.folder-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.folder-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.folder-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-primary);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.folder-checkbox:checked+.folder-checkbox-custom {
    background: var(--accent-primary);
}

.folder-checkbox:checked+.folder-checkbox-custom::after {
    content: '✓';
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 900;
}

.folder-checkbox:indeterminate+.folder-checkbox-custom::after {
    content: '−';
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 900;
}

.folder-checkbox:focus+.folder-checkbox-custom {
    box-shadow: 0 0 0 2px var(--accent-secondary);
}

.folder-item .folder-checkbox-custom {
    width: 14px;
    height: 14px;
}

.folder-item .folder-checkbox:checked+.folder-checkbox-custom::after {
    font-size: 10px;
}