/* ============================================
   WE ÖTZI - BAUHAUS DESIGN SYSTEM
   Philosophy: Form follows utility. Data follows ethics.
   ============================================ */

:root {
    /* Bauhaus Color Palette - Light Mode (Default) */
    --bg: #F2F0E9;
    --fg: #0A0A0A;
    --primary-red: #E23E28;
    --primary-yellow: #F4B942;
    --primary-blue: #1A4B8E;
    --error-color: #E23E28;
    --success-color: #22c55e;
    
    /* Text on light/colored backgrounds - always dark for contrast */
    --text-on-light: #0A0A0A;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-technical: 'JetBrains Mono', 'Consolas', monospace;

    /* Structure & Effects */
    --border-width: 3px;
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --zoom-factor: 0.9;

    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Touch-friendly sizes */
    --touch-min: 44px;
    --touch-comfortable: 48px;

    /* Layout */
    --container-width: 1400px; /* Widened for better card display */
    --container-wide: 1200px;
    --question-max-width: 700px;

    /* Legacy compatibility */
    --bg-color: var(--bg);
    --text-primary: var(--fg);
    --text-secondary: #6b6b75;
    --text-muted: #9b9b9b;
    --border-color: var(--fg);
    --primary-color: var(--primary-red);
    --surface-color: rgba(10, 10, 10, 0.03);
    --surface-hover: rgba(10, 10, 10, 0.06);
    --glass-bg: rgba(10, 10, 10, 0.02);
    --glass-border: var(--fg);
    --font-sans: var(--font-primary);
    --font-serif: var(--font-primary);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0A0A0A;
    --fg: #F2F0E9;
    --primary-red: #FF4D35;
    --primary-yellow: #FFC857;
    --primary-blue: #3A86FF;
    --text-secondary: #a0a0a8;
    --text-muted: #6b6b75;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.02);
    
    /* Text on light/colored backgrounds - stays dark for contrast */
    --text-on-light: #0A0A0A;
}

.app-container, .btn, .btn-option, .btn-option-wide, .artist-card, .upload-area, .preview-item, .bauhaus-card-creative, .bauhaus-sub-card, .technical-selection-sheet, .sheet-entry, .side-option-bauhaus, .question-container, .step {
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-primary);
    font-size: calc(15px * var(--zoom-factor));
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    transition: background-color var(--transition), color var(--transition);
}

/* Bauhaus Noise Texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* APP CONTAINER */
.app-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* HEADER */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    z-index: 100;
    padding: 0 40px;
    background: var(--bg);
    box-sizing: border-box;
}

.nav-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: var(--border-width) solid var(--fg);
    border-radius: 0;
    color: var(--fg);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-btn:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateX(-3px);
}

.header-logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--fg);
    text-transform: uppercase;
    z-index: 10;
}

/* PROGRESS BAR - BAUHAUS DYNAMIC */
.progress-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.5s ease-out;
    margin-bottom: 40px; /* Space before content */
    flex-shrink: 0;
}

.progress-info {
    display: flex;
    justify-content: center; /* Centered above bar */
}

.progress-step-info {
    font-family: var(--font-technical);
    font-size: 0.75rem; /* Slightly larger */
    font-weight: 900;
    text-transform: uppercase;
    color: #0A0A0A !important; /* Always black in both modes */
    letter-spacing: 0.1em;
    background: var(--primary-yellow);
    padding: 4px 12px;
    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-container {
    height: 20px; /* Enlarge size */
    background: var(--bg);
    border: 3px solid var(--fg);
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(90deg, transparent 95%, rgba(10, 10, 10, 0.1) 95%),
        linear-gradient(0deg, transparent 95%, rgba(10, 10, 10, 0.1) 95%);
    background-size: 10% 100%; /* More segments for better resolution */
}

.progress-bar {
    height: 100%;
    background: var(--primary-red);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-right: 3px solid var(--fg);
    position: relative;
}

.progress-message {
    font-family: var(--font-technical);
    font-size: 0.75rem; /* Larger and below */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.9;
    text-align: center;
    margin-top: 4px;
    animation: slideInMessage 0.3s ease-out;
    letter-spacing: 0.05em;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: var(--primary-blue);
    opacity: 0.3;
}

/* MAIN CONTENT */
main {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: flex-start; /* Move to top */
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    min-height: auto;
    padding: 105px 40px 70px 40px; /* 80px header + 25px gap */
}

/* STEPS */
.step {
    display: none;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    
    /* Layout safety: prevent overlapping header/footer */
    margin: auto 0; /* Center vertically within main if space allows */
    padding: 20px 10px;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
}

.step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Remove absolute positioning transform-based centering */
.step.slide-out-left, .step.slide-out-right {
    display: none;
}

/* TYPOGRAPHY - BAUHAUS */
h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--fg);
}

h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.subtitle {
    font-family: var(--font-technical);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hint-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* QUESTION CONTAINER */
.question-container {
    width: 100%;
    max-width: var(--question-max-width);
    margin: 0 auto;
    text-align: center;
    animation: fadeUp 0.5s ease-out;
}

.question-container.wide {
    max-width: var(--container-wide);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* HERO CONTENT (Welcome) - BAUHAUS */
.hero-content {
    text-align: center;
    animation: fadeUp 0.8s var(--transition);
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: var(--primary-red);
    color: var(--bg);
    border: var(--border-width) solid var(--fg);
}

.brand-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin-top: 100px;
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    margin-bottom: 1rem;
    color: var(--fg);
}

.hero-text {
    font-family: var(--font-technical);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* INPUTS - BAUHAUS BRUTALIST */
input,
textarea,
select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 4px solid var(--fg);
    color: var(--fg);
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: var(--space-md) 0;
    font-family: var(--font-primary);
    outline: none;
    margin-bottom: var(--space-lg);
    transition: border-color var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--fg);
    outline: none !important;
}

/* Focus visible for keyboard navigation */
input:focus-visible,
button:focus-visible,
.btn-option:focus-visible,
.checkbox-option:focus-visible {
    outline: none !important;
}

textarea {
    resize: none;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    border: none;
    border-bottom: 4px solid var(--fg);
    padding: var(--space-md) 0;
    border-radius: 0;
    background: transparent;
    min-height: 150px;
}

textarea:focus {
    border-color: var(--fg);
}

.char-count {
    font-family: var(--font-technical);
    text-align: right;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Textarea Wrapper - Bauhaus Style */
.textarea-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.textarea-wrapper textarea {
    margin-bottom: var(--space-sm);
}

.textarea-counter {
    font-family: var(--font-technical);
    text-align: right;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.textarea-counter span {
    color: var(--primary-red);
    font-weight: 700;
}

/* Form Toast Notification */
.form-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fg);
    color: var(--bg);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
    border: var(--border-width) solid var(--primary-red);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-toast.show {
    bottom: 20px;
}

/* TEL INPUT GROUP */
.tel-group {
    display: flex;
    gap: 0;
    align-items: flex-end;
    margin-bottom: var(--space-lg);
    border-bottom: 4px solid var(--fg);
}

.tel-group:focus-within {
    border-color: var(--fg);
}

.country-select {
    width: 110px !important;
    border: none !important;
    border-bottom: none !important;
    padding: var(--space-md) 10px !important;
    font-size: 1rem !important;
    background: transparent !important;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--fg);
}

.tel-group input {
    flex: 1;
    border: none !important;
    margin-bottom: 0 !important;
    padding-left: 15px !important;
}

/* City Input with GPS */
.city-input-group {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: var(--space-lg);
    border-bottom: 4px solid var(--fg);
}

.city-input-group input {
    flex: 1;
    border: none !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.btn-gps {
    width: 50px;
    background: transparent;
    border: none;
    border-left: 3px solid var(--fg);
    color: var(--fg);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gps:hover {
    background: var(--fg);
    color: var(--bg);
}

.btn-gps:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-gps.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.input-group {
    position: relative;
    border: none !important;
}

.input-group input {
    padding-right: 50px;
}

.btn-icon {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 10px;
    transition: transform var(--transition-fast);
}

.btn-icon:hover {
    transform: scale(1.1);
}

.input-prefix {
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding-right: 8px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 1.5rem;
}

/* BUTTONS - BAUHAUS BRUTALIST */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    min-height: var(--touch-min);
    border-radius: 0;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    width: 100%;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: var(--border-width) solid var(--fg);
    color: var(--fg);
    width: 100%;
}

.btn-secondary:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateY(-3px);
}

.btn-large {
    font-size: 1.1rem;
    padding: var(--space-lg) var(--space-xl);
    min-height: var(--touch-comfortable);
}

.btn-text {
    background: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: var(--space-sm);
    min-height: var(--touch-min);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

/* ACTION LAYOUTS */
.actions-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* OPTION BUTTONS */
.grid-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.grid-options.dense {
    grid-template-columns: none; /* Reset grid if applied elsewhere */
    gap: 10px;
}

@media (min-width: 500px) {
    .grid-options {
        display: flex;
    }

    .grid-options.dense {
        display: flex;
    }

    .grid-options .btn-option {
        flex: 0 0 calc(25% - 12px);
    }
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.options-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-option {
    background: transparent;
    border: var(--border-width) solid var(--fg);
    color: var(--fg);
    padding: var(--space-lg) var(--space-md);
    min-height: var(--touch-comfortable);
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--transition);
}

.btn-option:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--bg);
    transform: translateY(-4px);
}

.btn-option:active {
    transform: translateY(-2px);
}

.btn-option.selected {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.btn-option .option-icon {
    font-size: 1.5rem;
}

.btn-option .option-label {
    font-weight: 900;
}

.btn-option .option-hint {
    font-family: var(--font-technical);
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-option.selected .option-hint {
    color: var(--bg);
    opacity: 0.7;
}

/* Wide option buttons */
.btn-option-wide {
    background: transparent;
    border: var(--border-width) solid var(--fg);
    color: var(--fg);
    padding: 16px 20px;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    text-align: left;
}

.btn-option-wide:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--bg);
    transform: translateX(5px);
}

.btn-option-wide.selected {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 0;
    flex-shrink: 0;
    border: 2px solid var(--fg);
}

/* Large option buttons (Yes/No) */
.btn-option-large {
    background: transparent;
    border: var(--border-width) solid var(--fg);
    color: var(--fg);
    padding: 24px 20px;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    flex: 1;
    min-width: 140px;
}

.btn-option-large i {
    font-size: 2rem;
    color: var(--primary-red);
}

.btn-option-large:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--bg);
    transform: translateY(-5px);
}

.btn-option-large:hover i {
    color: var(--bg);
}

/* ARTIST CARD - BAUHAUS BLOCK */
.artist-card {
    background: var(--bg);
    border-radius: 0;
    padding: var(--space-xl);
    text-align: center;
    border: var(--border-width) solid var(--fg);
    margin-bottom: var(--space-xl);
    transition: all var(--transition);
}

.artist-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
}

.artist-avatar-container {
    width: 88px;
    height: 88px;
    margin: 0 auto var(--space-md);
    position: relative;
}

.artist-profile-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: var(--border-width) solid var(--fg);
    border-radius: 0;
}

.artist-avatar {
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg);
    border: var(--border-width) solid var(--fg);
}

.artist-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--fg);
}

.artist-meta {
    font-family: var(--font-technical);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    text-transform: uppercase;
}

.artist-details {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-technical);
}

.detail-item i {
    color: var(--primary-red);
}

.detail-item a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.detail-item a:hover {
    color: var(--primary-red);
}

.artist-price {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--bg);
    background: var(--primary-red);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 0;
    display: inline-block;
    text-transform: uppercase;
}

/* UPLOAD AREA - BAUHAUS BRUTALIST */
.upload-area {
    border: var(--border-width) dashed var(--fg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.upload-area:hover {
    border-style: solid;
    border-color: var(--primary-red);
    background: rgba(226, 62, 40, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-red);
}

.upload-area p {
    font-family: var(--font-technical);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--fg);
}

.upload-area .highlight {
    font-weight: 900;
    text-decoration: underline;
    color: var(--primary-red);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.preview-item {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border: var(--border-width) solid var(--fg);
    transition: all var(--transition);
    position: relative;
}

.preview-item .remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    color: var(--bg);
    border: var(--border-width) solid var(--fg);
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 20;
    transition: all var(--transition);
}

.preview-item .remove-btn:hover {
    background: var(--fg);
    color: var(--primary-red);
    transform: scale(1.1);
}

.preview-item:hover {
    border-color: var(--primary-red);
    transform: scale(1.05);
    z-index: 10;
}

@media (min-width: 480px) {
    .preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.body-view-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 24px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.tab-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.body-silhouette-container {
    display: flex;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    min-height: 360px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.body-view {
    display: none;
    width: 100%;
    max-width: 250px;
}

.body-view.active {
    display: block;
}

.body-svg {
    width: 100%;
    height: auto;
}

.body-part {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.body-part:hover {
    fill: rgba(255, 215, 0, 0.15);
    stroke: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.body-part.selected {
    fill: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

.selected-parts {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
}

.selected-parts .empty-selection {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.selected-tag {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-tag button {
    background: none;
    border: none;
    color: var(--bg-color);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.selected-tag button:hover {
    opacity: 1;
}

/* FILE UPLOAD */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.03);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--text-secondary);
}

.upload-area .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.preview-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.preview-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.preview-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--error-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CHECKBOX OPTIONS (Multiple Choice) */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.checkbox-option:hover {
    border-color: var(--primary-color);
}

.checkbox-option input {
    display: none;
}

.checkbox-box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.checkbox-option input:checked+.checkbox-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input:checked+.checkbox-box::after {
    content: '✓';
    color: var(--bg-color);
    font-weight: bold;
}

.checkbox-option i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.checkbox-option span:last-child {
    font-size: 1rem;
}

/* CHECKBOX WRAPPER (Single) */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 1.5rem 0;
    padding: 12px 16px;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.checkbox-wrapper input:checked+.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-wrapper input:checked+.checkmark::after {
    content: '✓';
    color: var(--bg-color);
    font-weight: bold;
    font-size: 0.875rem;
}

/* BUDGET INPUT */
.budget-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.budget-input-group select {
    width: 120px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.budget-input-group input {
    flex: 1;
}

/* SUMMARY CARD */
.summary-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: left;
    max-height: 50vh;
    overflow-y: auto;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-edit-small {
    background: transparent;
    border: 2px solid var(--fg);
    color: var(--fg);
    padding: 4px 12px;
    font-family: var(--font-technical);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-edit-small:hover {
    background: var(--fg);
    color: var(--bg);
}

.summary-link {
    color: var(--primary-blue);
    text-decoration: underline;
    font-size: 0.85rem;
}

.summary-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.summary-thumb {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--fg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 15px;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* SUCCESS SCREEN */
.success-content {
    text-align: center;
    animation: fadeUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 2rem;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

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

.success-quote-id {
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.success-msg {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

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

/* Next Steps Section */
.next-steps-section {
    width: 100%;
    max-width: 450px;
    margin: 2rem 0;
    text-align: left;
    border: var(--border-width) solid var(--fg);
    background: var(--surface-color);
}

.next-steps-section h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 1rem 1.5rem;
    background: var(--fg);
    color: var(--bg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.next-steps-section h3 i {
    color: var(--primary-yellow);
}

.next-steps-content {
    padding: 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--fg);
}

.next-steps-content p {
    margin-bottom: 1rem;
}

.next-steps-content p:last-child {
    margin-bottom: 0;
}

.next-steps-content strong {
    color: var(--primary-red);
}

/* Success Action Buttons */
.success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 400px;
    width: 100%;
}

.success-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 320px;
}

.success-actions .btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: var(--border-width) solid var(--fg);
}

.success-actions .btn-primary:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 0 var(--fg);
}

.success-actions .btn-secondary {
    background: transparent;
    color: var(--fg);
    border: var(--border-width) solid var(--fg);
}

.success-actions .btn-secondary:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translateY(-4px);
}

/* ============================================
   CREATE ACCOUNT INVITATION SECTION
   ============================================ */

.create-account-section {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    border: var(--border-width) solid var(--fg);
    background: var(--bg);
}

.account-benefits {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2c5aa0 100%);
    color: white;
}

.account-benefits h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.account-benefits h3 i {
    margin-right: 0.5rem;
}

.benefits-intro {
    font-family: var(--font-technical);
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.benefits-list li {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    width: 20px;
    text-align: center;
    color: var(--primary-yellow);
}

.account-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-create-account {
    background: var(--primary-green, #2E7D32) !important;
    border-color: var(--fg) !important;
}

.btn-create-account:hover {
    background: #1b5e20 !important;
    transform: translateY(-4px);
    box-shadow: 0 6px 0 0 var(--fg);
}

.btn-skip-account {
    background: transparent !important;
    color: var(--fg) !important;
    border: var(--border-width) solid var(--fg) !important;
    font-size: 0.85rem !important;
}

.btn-skip-account:hover {
    background: var(--fg) !important;
    color: var(--bg) !important;
}

/* Account Reminder (shown when skipping account creation) */
.account-reminder {
    width: 100%;
    max-width: 450px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    background: rgba(var(--primary-blue-rgb, 26, 75, 142), 0.1);
    border-left: 4px solid var(--primary-blue);
    text-align: left;
}

.account-reminder p {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--fg);
    margin: 0;
}

.account-reminder i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.account-reminder a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
}

.account-reminder a:hover {
    color: var(--primary-red);
}

@media (max-width: 600px) {
    .create-account-section {
        margin: 1.5rem auto;
    }
    
    .account-benefits {
        padding: 1.25rem;
    }
    
    .account-benefits h3 {
        font-size: 1rem;
    }
    
    .benefits-list li {
        font-size: 0.8rem;
    }
    
    .account-actions {
        padding: 1.25rem;
    }
}

@media (max-width: 600px) {
    .next-steps-section {
        margin: 1.5rem auto;
    }
    
    .next-steps-section h3 {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }
    
    .next-steps-content {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    .success-actions {
        padding: 0 1rem;
    }
    
    .success-actions .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   BAUHAUS FOOTER COMPONENT
   ============================================ */
.bauhaus-footer {
    width: 100%;
    height: 50px;
    background: var(--bg);
    border-top: var(--border-width) solid var(--fg);
    position: relative;
    margin-top: 10vh;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 40px;
    flex-wrap: nowrap; /* Force single row */
}

.footer-text, .footer-copyright {
    font-family: var(--font-technical);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fg);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.social-icon {
    color: var(--fg);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Responsive Footer - Maintain single row but scale down */
@media (max-width: 768px) {
    .footer-content {
        gap: 20px;
        padding: 0 20px;
    }
    
    .footer-text, .footer-copyright {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 10px;
    }
    .footer-text, .footer-copyright {
        display: none; /* Hide side text on very small screens to keep icons in row */
    }
    .footer-content::before {
        content: 'WE ÖTZI';
        font-family: var(--font-technical);
        font-size: 0.7rem;
        font-weight: 900;
    }
}

/* LOADING OVERLAY - Glassmorphism */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    opacity: 0.9;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: var(--space-lg);
}

.loader {
    width: 56px;
    height: 56px;
    border: 4px solid var(--fg);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ERROR MESSAGE */
.error-msg {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

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

/* SCROLLBAR - AT EDGE OF SCREEN */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--fg);
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* RESPONSIVE - Mobile First Approach */
/* Base styles are already mobile-first (320px+) */

/* Small devices adjustments (max-width: 600px) */
@media (max-width: 600px) {
    .app-container {
        padding: 15px;
    }

    .brand-title {
        margin-top: 40px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .grid-options {
        display: flex;
        gap: 10px;
    }

    .grid-options.dense {
        display: flex;
    }

    .grid-options .btn-option {
        flex: 0 0 calc(50% - 10px);
    }

    /* Very small devices */
    @media (max-width: 380px) {
        .grid-options {
            display: flex;
        }
        
        .grid-options.dense {
            display: flex;
        }

        .grid-options .btn-option {
            flex: 0 0 100%;
        }
    }

    .options-row {
        flex-direction: column;
    }

    .btn-option-large {
        width: 100%;
        min-height: var(--touch-comfortable);
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        justify-content: center;
    }

    .actions-row {
        flex-direction: column-reverse;
        gap: 10px;
    }

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

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

    .body-silhouette-container {
        min-height: 250px;
        padding: var(--space-sm);
    }

    .summary-card {
        padding: var(--space-md);
        grid-template-columns: 1fr;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .app-container {
        padding: var(--space-xl);
    }

    .grid-options {
        display: flex;
        gap: var(--space-md);
    }

    .grid-options.dense {
        display: flex;
    }

    .grid-options .btn-option {
        flex: 0 0 calc(25% - var(--space-md));
    }

    h2 {
        font-size: 2rem;
    }

    .question-container {
        max-width: var(--question-max-width);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    /* Desktop adjustments */
    .grid-options {
        display: flex;
    }

    .grid-options.dense {
        display: flex;
    }

    .grid-options .btn-option {
        flex: 0 0 calc(20% - var(--space-md));
    }

    .question-container {
        max-width: var(--question-max-width);
    }

    .question-container.wide {
        max-width: var(--container-wide);
    }
}

/* Wide Desktop (1400px+) */
@media (min-width: 1400px) {
    .grid-options {
        display: flex;
    }

    .grid-options.dense {
        display: flex;
    }

    .grid-options .btn-option {
        flex: 0 0 calc(16.66% - var(--space-md));
    }

    .grid-options.dense .btn-option {
        flex: 0 0 calc(12.5% - var(--space-md));
    }
}

/* FLATPICKR OVERRIDES (DEPRECATED - MOVED TO BAUHAUS THEME SECTION) */
/* .flatpickr-calendar { ... } */

/* ============================================
   BAUHAUS BODY SELECTOR - CREATIVE CARDS
   ============================================ */
.body-selector-container {
    margin-bottom: 2rem;
    min-height: 450px;
    position: relative;
    border: var(--border-width) solid var(--fg);
    background: var(--bg);
    overflow: hidden;
    padding: var(--space-xl);
}

/* Nav Header Bauhaus */
.body-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem; /* More space between nav and cards */
    padding-bottom: 1rem;
    border-bottom: var(--border-width) solid var(--fg);
    gap: 20px;
}

.body-nav-header .btn-text {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 900;
}

.body-nav-header .btn-text:hover {
    color: var(--fg);
}

.current-zone-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8rem; /* Larger text */
    text-transform: uppercase;
    color: var(--primary-blue);
    text-align: right;
    flex-grow: 1;
    letter-spacing: -1px;
}

@media (max-width: 600px) {
    .body-nav-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .current-zone-title {
        text-align: left;
        font-size: 1.4rem;
    }
}

/* Equal-sized Creative Grid */
.bauhaus-grid-creative {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

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

/* Creative Card Bauhaus Style */
.bauhaus-card-creative {
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    transform: rotate(var(--card-rot, 0deg));
}

.bauhaus-card-creative:hover {
    transform: translate(-8px, -8px) rotate(0deg);
    box-shadow: 12px 12px 0 var(--fg);
    border-color: var(--primary-red);
    z-index: 5;
}

.bauhaus-card-creative.selected {
    border-color: var(--primary-blue);
    background: var(--surface-hover);
}

/* Image Wrapper with Bauhaus Fallback */
.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--fg);
    border-bottom: var(--border-width) solid var(--fg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: transform 0.6s var(--transition);
    /* No filter - images from Supabase are already in correct colors */
}

[data-theme="dark"] .card-img-wrapper img {
    /* No inversion needed for color images */
}

.bauhaus-card-creative:hover .card-img-wrapper img {
    transform: scale(1.1) rotate(5deg);
}

/* Abstract Bauhaus Pattern for no image */
.card-img-wrapper.no-image {
    background: var(--bg);
    background-image: 
        radial-gradient(circle at 30% 30%, var(--primary-red) 20%, transparent 20.5%),
        linear-gradient(135deg, var(--primary-blue) 25%, transparent 25.5%),
        linear-gradient(225deg, var(--primary-yellow) 20%, transparent 20.5%);
    background-size: 100% 100%, 50% 50%, 40% 40%;
    background-position: center, top left, bottom right;
    background-repeat: no-repeat;
}

/* Creative Title Block (Rotated like marketplace) */
.card-title-block {
    background: var(--fg);
    color: var(--bg);
    padding: 12px;
    margin: 0 -1rem 0.8rem -1rem;
    transform: rotate(-2deg);
    transition: all var(--transition);
    border-top: var(--border-width) solid var(--fg);
    border-bottom: var(--border-width) solid var(--fg);
    z-index: 2;
}

.bauhaus-card-creative:hover .card-title-block {
    transform: rotate(0deg);
    background: var(--primary-red);
}

.card-title-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Content Area with Pattern Grid */
.bauhaus-pattern-grid {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    background-color: var(--bg);
}

/* Technical Data Bauhaus */
.card-technical-data {
    font-family: var(--font-technical);
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-item i {
    color: var(--primary-red);
    width: 14px;
    text-align: center;
}

/* Bauhaus Sub-part Card (Derived from Creative Card) */
.bauhaus-sub-card {
    border: var(--border-width) solid var(--fg);
    padding: var(--space-md);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.bauhaus-sub-card:hover {
    background: var(--surface-hover);
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--fg);
}

.bauhaus-sub-card.selected {
    background: var(--primary-yellow);
    color: var(--text-on-light);
}

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

.sub-card-label {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
}

.sub-card-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--fg);
}

.bauhaus-sub-card.selected .sub-card-indicator {
    background: var(--fg);
    color: var(--bg);
}

/* Technical Selection Sheet Redesign */
.technical-selection-sheet {
    margin-top: 2.5rem;
    border: var(--border-width) solid var(--fg);
    background: var(--bg);
    position: relative;
    box-shadow: 10px 10px 0 var(--fg);
}

.sheet-header {
    background: var(--fg);
    color: var(--bg);
    padding: 10px 20px;
    font-family: var(--font-technical);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sheet-content {
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
    background-image: radial-gradient(var(--fg) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--bg);
}

.sheet-entry {
    background: var(--bg);
    border: 2px solid var(--fg);
    margin-bottom: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-technical);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.sheet-entry:hover {
    transform: translateX(5px);
    border-color: var(--primary-red);
}

.entry-path {
    display: flex;
    align-items: center;
    gap: 12px;
}

.path-zone { font-weight: 900; color: var(--primary-red); }
.path-sep { color: var(--fg); opacity: 0.3; }
.path-part { font-weight: 700; color: var(--fg); }
.path-side { 
    background: var(--primary-yellow);
    color: var(--text-on-light);
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 900;
}

.btn-entry-remove {
    background: var(--fg);
    color: var(--bg);
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-entry-remove:hover {
    background: var(--primary-red);
}

/* Side Overlay Bauhaus Refined */
.bauhaus-side-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) 20px; /* Reduced side padding */
    justify-content: center;
    align-items: center;
}

.side-overlay-header {
    width: 100%;
    max-width: 800px;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 4px solid var(--fg);
    padding-bottom: 0.5rem;
}

.side-options-container {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Slightly reduced gap */
}

.side-option-bauhaus {
    border: var(--border-width) solid var(--fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg);
    transition: all var(--transition);
    padding: var(--space-md); /* Reduced internal padding */
    text-align: center;
    min-height: 180px; /* Scaled down height */
    position: relative;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
    background-size: 15px 15px;
}

.side-option-bauhaus:nth-child(1) { transform: rotate(-1deg); }
.side-option-bauhaus:nth-child(2) { transform: rotate(1.5deg); }
.side-option-bauhaus:nth-child(3) { transform: rotate(-0.5deg); }

.side-option-bauhaus:hover {
    background-color: var(--primary-yellow);
    transform: translate(-5px, -5px) rotate(0deg) !important;
    box-shadow: 8px 8px 0 var(--fg);
    z-index: 10;
}

.side-option-bauhaus i {
    font-size: 2.5rem; /* Scaled down icon */
    margin-bottom: 1rem;
    color: var(--primary-red);
    transition: transform 0.4s var(--transition);
}

.side-option-bauhaus:hover i {
    transform: scale(1.1);
}

.side-option-bauhaus span {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem; /* Scaled down font */
    letter-spacing: -0.5px;
    background: var(--fg);
    color: var(--bg);
    padding: 4px 12px;
}

@media (max-width: 950px) {
    .side-options-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .side-option-bauhaus span {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .bauhaus-side-overlay {
        padding: var(--space-lg);
        overflow-y: auto;
        position: relative; /* Allow flow on smaller screens if content is too tall */
        min-height: auto;
    }
    .side-options-container {
        grid-template-columns: 1fr;
        max-width: 280px;
        gap: 20px;
    }
    .side-option-bauhaus {
        min-height: 120px;
    }
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* BODY PART INFO MODAL */
.body-info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.body-info-modal {
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    border-radius: 0;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

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

.body-info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.body-info-modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.body-info-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.body-info-modal-close:hover {
    color: var(--primary-color);
}

.body-info-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.body-info-modal-body .pain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.body-info-modal-body .pain-badge.pain-low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.body-info-modal-body .pain-badge.pain-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.body-info-modal-body .pain-badge.pain-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.body-info-section {
    margin-bottom: 20px;
}

.body-info-section:last-child {
    margin-bottom: 0;
}

.body-info-section h4 {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.body-info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   FLATPICKR - BAUHAUS BRUTALIST THEME
   ============================================ */

.flatpickr-calendar {
    background: var(--bg) !important;
    border: var(--border-width) solid var(--fg) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--font-technical) !important;
    width: 100% !important;
    max-width: 400px !important;
}

.flatpickr-calendar.open {
    z-index: 1000;
}

.flatpickr-months {
    background: var(--fg) !important;
    padding: var(--space-sm) !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: var(--bg) !important;
    fill: var(--bg) !important;
    height: 40px !important;
}

.flatpickr-current-month {
    font-family: var(--font-primary) !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--bg) !important;
    padding: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: var(--bg) !important;
    font-weight: 900 !important;
}

.flatpickr-current-month input.cur-year {
    color: var(--bg) !important;
    font-weight: 900 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--bg) !important;
    color: var(--bg) !important;
    padding: 8px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: var(--primary-red) !important;
    color: var(--primary-red) !important;
}

.flatpickr-weekdays {
    background: var(--fg) !important;
    padding: var(--space-xs) 0 !important;
}

span.flatpickr-weekday {
    background: transparent !important;
    color: var(--bg) !important;
    font-family: var(--font-technical) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
}

.flatpickr-days {
    border: none !important;
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-day {
    font-family: var(--font-technical) !important;
    font-weight: 400 !important;
    color: var(--fg) !important;
    border-radius: 0 !important;
    border: 1px solid transparent !important;
    max-width: none !important;
    height: 40px !important;
    line-height: 40px !important;
    transition: all var(--transition) !important;
}

.flatpickr-day:hover {
    background: var(--surface-hover) !important;
    border-color: var(--fg) !important;
}

.flatpickr-day.today {
    border-color: var(--fg) !important;
    border-width: 2px !important;
    font-weight: 700 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--bg) !important;
    font-weight: 700 !important;
}

.flatpickr-day.inRange {
    background: rgba(226, 62, 40, 0.15) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-muted) !important;
    background: transparent !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: var(--surface-hover) !important;
}

/* Checkbox wrapper for flexibility */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-family: var(--font-technical);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

/* ============================================
   GOOGLE MAPS AUTOCOMPLETE - BAUHAUS STYLE
   ============================================ */

.pac-container {
    background: var(--bg) !important;
    border: var(--border-width) solid var(--fg) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: var(--font-primary) !important;
    margin-top: 4px;
}

.pac-item {
    padding: var(--space-md) !important;
    border-bottom: 1px solid var(--fg) !important;
    cursor: pointer;
    font-family: var(--font-primary) !important;
    transition: background var(--transition) !important;
}

.pac-item:last-child {
    border-bottom: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background: var(--primary-red) !important;
}

.pac-item:hover .pac-item-query,
.pac-item:hover .pac-matched,
.pac-item-selected .pac-item-query,
.pac-item-selected .pac-matched {
    color: var(--bg) !important;
}

.pac-item-query {
    font-weight: 900 !important;
    color: var(--fg) !important;
    font-size: 1rem !important;
}

.pac-matched {
    font-weight: 900 !important;
}

.pac-icon {
    display: none !important;
}

/* ARTIST SEARCH EXTRAS */
.artist-search-extras {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.search-help, .recommendation-path {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-hint {
    font-family: var(--font-technical);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.match-reason-badge {
    font-family: var(--font-technical);
    font-size: 0.7rem;
    color: var(--primary-red);
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.match-reason-badge i {
    font-size: 0.65rem;
    margin-right: 3px;
}

/* Match Badges (Multiple criteria display) */
.match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.match-badge {
    font-family: var(--font-technical);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--surface-color);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.match-badge i {
    font-size: 0.6rem;
}

@keyframes pulse-promo {
    0% { opacity: 0.7; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(0.98); }
}

/* MISMATCH DISPLAY (Travel Question) */
.mismatch-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--surface-color);
    border: var(--border-width) solid var(--fg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    text-align: center;
}

.mismatch-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mismatch-label {
    font-family: var(--font-technical);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.mismatch-value {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--fg);
}

.mismatch-divider {
    font-size: 1.5rem;
    color: var(--primary-red);
}

@media (max-width: 480px) {
    .mismatch-display {
        flex-direction: column;
        gap: 10px;
    }
    .mismatch-divider {
        transform: rotate(90deg);
    }
}

/* RECOMMENDATIONS GRID */
.recommendations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.recommendation-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    text-align: left;
    padding: var(--space-lg);
    border: var(--border-width) solid var(--fg);
    background: var(--bg);
}

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

.artist-profile-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: var(--border-width) solid var(--fg);
    background: var(--primary-red);
}

.recommendation-card .artist-avatar {
    width: 64px;
    height: 64px;
    margin: 0;
    flex-shrink: 0;
}

.recommendation-card .artist-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.recommendation-card .artist-styles {
    font-family: var(--font-technical);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.recommendation-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.artist-meta-small {
    font-family: var(--font-technical);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-transform: uppercase;
}

.artist-meta-small span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-tag {
    color: var(--primary-red);
    font-weight: 700;
}

.recommendation-links {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.recommendation-links .btn-text {
    padding: 0;
    font-size: 0.75rem;
}

.recommendation-card .btn {
    margin-top: auto;
}

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

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 600px) {
    :root {
        --zoom-factor: 0.85;
    }

    .app-header {
        padding: var(--space-md);
        height: 60px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .header-logo {
        font-size: 1rem;
    }

    h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    main, .main-content {
        padding: 90px 10px 10px 10px; /* Top padding accounts for fixed header */
    }

    .grid-options {
        display: flex;
        gap: var(--space-sm);
    }

    .grid-options .btn-option {
        flex: 0 0 calc(50% - var(--space-sm));
    }

    .btn-option {
        padding: var(--space-md);
    }

    .option-icon {
        font-size: 1.5rem;
    }

    .flatpickr-calendar {
        max-width: 100% !important;
    }

    .flatpickr-day {
        height: 36px !important;
        line-height: 36px !important;
    }

    /* Body selector responsive */
    .body-main-grid {
        grid-template-columns: 1fr !important;
    }

    .zone-card-content {
        flex-direction: row;
        text-align: left;
    }

    .zone-image-container {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    :root {
        --zoom-factor: 0.8;
    }

    .grid-options {
        display: flex;
    }

    .grid-options .btn-option {
        flex: 0 0 100%;
    }

    .options-row {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .btn-option-large {
        width: 100%;
    }
}

/* ============================================
   TATTOO STYLES SELECTOR - GRID & CARDS
   ============================================ */
.styles-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
    gap: var(--space-md);
}

.styles-loading i {
    font-size: 2rem;
    color: var(--primary-red);
}

/* Grid: Equal-sized cards */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: var(--space-md);
}

@media (max-width: 1200px) {
    .styles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Style Card - Square proportions */
.style-card {
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    aspect-ratio: 1 / 1.15;
}

.style-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--fg);
    border-color: var(--primary-red);
    z-index: 5;
}

.style-card.selected {
    border-color: var(--primary-blue);
    box-shadow: 6px 6px 0 var(--primary-blue);
}

.style-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    border: 2px solid var(--bg);
    z-index: 10;
}

.style-card.selected::before {
    content: '\2713';
    position: absolute;
    top: 13px;
    right: 16px;
    font-size: 16px;
    color: var(--bg);
    font-weight: 900;
    z-index: 11;
}

/* Card Cover - Image area */
.style-card-cover {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: var(--fg);
    overflow: hidden;
}

.style-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.3s ease;
    filter: grayscale(30%);
}

.style-card:hover .style-card-img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.style-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 20% 30%, var(--primary-red) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, var(--primary-blue) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, var(--primary-yellow) 0%, transparent 40%),
        var(--surface-color);
    color: var(--text-muted);
    font-size: 2.5rem;
}

/* Info icon overlay */
.style-card-info-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: var(--bg);
    border: 2px solid var(--fg);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: all var(--transition);
    z-index: 5;
}

.style-card:hover .style-card-info-btn {
    opacity: 1;
}

.style-card-info-btn:hover {
    background: var(--primary-yellow);
    transform: scale(1.1);
}

/* Badge for substyles count */
.style-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--fg);
    color: var(--bg);
    padding: 6px 12px;
    font-family: var(--font-technical);
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Card Body - Title area */
.style-card-body {
    padding: 12px 14px;
    background: var(--bg);
    border-top: var(--border-width) solid var(--fg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.style-card-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin: 0;
    color: var(--fg);
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.style-card-desc {
    font-family: var(--font-technical);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
    display: none; /* Hidden in grid view */
}

/* ============================================
   STYLE DETAIL MODAL
   ============================================ */
.style-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.style-detail-overlay.hidden {
    display: none;
}

.style-detail-modal {
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header with Image */
.style-detail-header {
    position: relative;
    height: 280px;
    background: var(--fg);
    overflow: hidden;
    flex-shrink: 0;
}

.style-detail-header img,
.style-detail-header video {
    width: 100%;
    height: 100%;
    /* object-fit is set via inline styles for customization */
}

.style-detail-header-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 30% 40%, var(--primary-red) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, var(--primary-blue) 0%, transparent 40%),
        var(--surface-color);
    font-size: 5rem;
    color: var(--bg);
}

.style-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    color: var(--fg);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.style-detail-close:hover {
    background: var(--primary-red);
    color: var(--bg);
    transform: rotate(90deg);
}

.style-detail-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fg);
    color: var(--bg);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.style-detail-title-bar h2 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--bg);
}

.style-detail-title-bar .substyles-count {
    font-family: var(--font-technical);
    font-size: 0.8rem;
    background: var(--primary-yellow);
    color: var(--text-on-light);
    padding: 6px 14px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Modal Body */
.style-detail-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.style-detail-description {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--surface-color);
}

/* Substyles Section */
.style-detail-substyles {
    margin-bottom: 24px;
}

.style-detail-substyles h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--fg);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.style-detail-substyles h3::before {
    content: '';
    width: 20px;
    height: 4px;
    background: var(--primary-red);
}

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

.substyle-option {
    background: var(--bg);
    border: 2px solid var(--fg);
    padding: 14px 16px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.substyle-option:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
    border-color: var(--primary-red);
}

.substyle-option.selected {
    background: var(--primary-yellow);
    border-color: var(--fg);
}

.substyle-option-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.substyle-option-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition);
}

.substyle-option.selected .substyle-option-check {
    background: var(--fg);
    color: var(--bg);
}

/* Modal Actions */
.style-detail-actions {
    padding: 20px 24px;
    border-top: var(--border-width) solid var(--fg);
    display: flex;
    gap: 12px;
    background: var(--surface-color);
    flex-shrink: 0;
}

.style-detail-actions .btn {
    flex: 1;
}

.btn-select-style {
    background: var(--fg);
    color: var(--bg);
    border: none;
    padding: 16px 24px;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-select-style:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

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

.btn-cancel-style {
    background: transparent;
    border: var(--border-width) solid var(--fg);
    color: var(--fg);
    padding: 16px 24px;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cancel-style:hover {
    background: var(--fg);
    color: var(--bg);
}

/* Modal Responsive */
@media (max-width: 600px) {
    .style-detail-modal {
        max-height: 95vh;
    }

    .style-detail-header {
        height: 200px;
    }

    .style-detail-title-bar h2 {
        font-size: 1.3rem;
    }

    .style-detail-body {
        padding: 16px;
    }

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

    .style-detail-actions {
        flex-direction: column;
        padding: 16px;
    }
}

/* Body Part Detail Modal Specifics */
.metric-container {
    background: var(--surface-color);
    padding: 20px;
    margin-bottom: 24px;
    border: 2px solid var(--fg);
}

.metric-row {
    margin-bottom: 12px;
}

.metric-row:last-child {
    margin-bottom: 0;
}

.metric-row label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.metric-value {
    float: right;
    font-family: var(--font-technical);
    font-weight: 700;
    background: var(--primary-yellow);
    padding: 2px 8px;
    font-size: 0.8rem;
    transform: translateY(-28px);
}

.metric-bar-bg {
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--fg);
    position: relative;
    width: 100%;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow), var(--primary-red));
    border-right: 2px solid var(--fg);
}

.metric-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--font-technical);
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.expanded-info-section h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-yellow);
    margin: 0 0 16px 0;
    letter-spacing: 0.05em;
}

.info-block {
    margin-bottom: 20px;
}

.info-block h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--fg);
    opacity: 0.8;
}

.info-text-box {
    background: var(--bg);
    border: 1px solid var(--fg);
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fg);
}

.btn-info-trigger {
    background: transparent;
    border: none;
    color: var(--fg);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--fg);
}

.btn-info-trigger:hover {
    background: var(--primary-yellow);
    transform: scale(1.1);
}

/* Update styles for cards to position the info button */
.bauhaus-card-creative {
    position: relative;
}

.bauhaus-sub-card {
    position: relative;
}

/* ============================================
   DRAFT RECOVERY MODAL
   ============================================ */

.draft-recovery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.draft-recovery-overlay.hidden {
    display: none;
}

.draft-recovery-modal {
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
    animation: slideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.draft-recovery-modal .recovery-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-yellow);
    border: var(--border-width) solid var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--fg);
}

.draft-recovery-modal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: var(--fg);
}

.draft-recovery-modal .recovery-subtitle {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.draft-summary-info {
    background: var(--bg-secondary);
    border: 1px solid var(--fg);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.draft-summary-info p {
    margin: 0.25rem 0;
    color: var(--fg);
}

.draft-summary-info strong {
    color: var(--primary-yellow);
}

.steps-progress-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.steps-column {
    background: var(--bg-secondary);
    border: 1px solid var(--fg);
    padding: 1rem;
}

.steps-column h4 {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.steps-completed-column h4 i {
    color: var(--success, #22c55e);
}

.steps-pending-column h4 i {
    color: var(--text-muted);
}

.steps-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
}

.steps-column li {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    color: var(--fg);
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.steps-column li:last-child {
    border-bottom: none;
}

.steps-completed-column li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--success, #22c55e);
}

.steps-pending-column li::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.recovery-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recovery-actions .btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recovery-actions .btn-primary {
    background: var(--primary-yellow);
    color: var(--text-on-light);
    border: var(--border-width) solid var(--fg);
    font-weight: 700;
}

.recovery-actions .btn-primary:hover {
    background: var(--fg);
    color: var(--bg);
}

.recovery-actions .btn-secondary {
    background: transparent;
    color: var(--fg);
    border: var(--border-width) solid var(--fg);
}

.recovery-actions .btn-secondary:hover {
    background: var(--fg);
    color: var(--bg);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .draft-recovery-modal {
        padding: 1.5rem;
    }
    
    .steps-progress-container {
        grid-template-columns: 1fr;
    }
    
    .steps-column ul {
        max-height: 100px;
    }
}

/* ============================================
   EMAIL REUSE MODAL
   Shares base styles with .draft-recovery-modal
   ============================================ */

.reuse-icon {
    background: var(--primary-red) !important;
    color: var(--bg) !important;
}

.reuse-question {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--fg);
    margin: 0 0 1.5rem;
    font-weight: 700;
}

#reuse-summary-info .reuse-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

#reuse-summary-info .reuse-detail:last-child {
    border-bottom: none;
}

#reuse-summary-info .reuse-label {
    font-family: var(--font-technical);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

#reuse-summary-info .reuse-value {
    font-family: var(--font-primary);
    font-weight: 900;
    color: var(--fg);
    font-size: 0.95rem;
}

#reuse-summary-info .reuse-value.highlight {
    color: var(--primary-red);
}

/* ============================================
   QUOTATION LOGIN MODAL - BAUHAUS
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-login,
.nav-btn-logged {
    position: relative;
}

.nav-btn-logged {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.nav-btn-logged:hover {
    background: var(--primary-yellow);
    color: var(--fg);
}

/* Overlay */
.q-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.q-login-overlay.hidden {
    display: none;
}

/* Modal container */
.q-login-modal {
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.q-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: var(--border-width) solid var(--fg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fg);
    font-size: 1rem;
    transition: background 0.15s, color 0.15s;
}

.q-login-close:hover {
    background: var(--fg);
    color: var(--bg);
}

/* Header */
.q-login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.q-login-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    border: var(--border-width) solid var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.q-login-icon-success {
    background: var(--primary-yellow);
    color: var(--fg);
}

.q-login-header h2 {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
    color: var(--fg);
}

.q-login-subtitle {
    font-family: var(--font-technical);
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    margin: 0;
}

/* Form */
.q-form-group {
    margin-bottom: 1rem;
}

.q-form-group label {
    display: block;
    font-family: var(--font-technical);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 4px;
}

.q-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: var(--border-width) solid var(--fg);
    border-radius: 0;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.q-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 4px 4px 0 var(--primary-blue);
}

.q-input::placeholder {
    color: var(--text-muted, #999);
    font-family: var(--font-technical);
    font-size: 0.82rem;
}

/* Message */
.q-form-message {
    font-family: var(--font-technical);
    font-size: 0.78rem;
    padding: 0;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
    text-align: center;
}

.q-form-message:empty {
    display: none;
}

.q-msg-error {
    color: var(--primary-red);
}

.q-msg-success {
    color: #4CAF50;
}

.q-msg-info {
    color: var(--primary-blue);
}

/* Submit button */
.q-btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--fg);
    color: var(--bg);
    border: var(--border-width) solid var(--fg);
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.q-btn-submit:hover:not(:disabled) {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--fg);
}

.q-btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.q-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Footer links */
.q-login-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fg);
}

.q-login-footer a {
    font-family: var(--font-technical);
    font-size: 0.78rem;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.q-login-footer a:hover {
    text-decoration: underline;
}

.q-login-back {
    margin-top: 0.75rem;
}

.q-login-back a {
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.q-login-back a:hover {
    color: var(--primary-blue);
}

/* Post-login decision */
.q-decision-text {
    font-family: var(--font-technical);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--fg);
}

.q-decision-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.q-decision-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary) !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px;
}

/* View toggle */
.q-login-view.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .q-login-modal {
        max-width: 100%;
        padding: 2rem 1.25rem 1.5rem;
    }

    .q-login-header h2 {
        font-size: 1.2rem;
    }
}
