/* ============================================
   TRAKINDO OFFICE SUPPLIES - FORM-FIRST UI
   Clean • Focused • Immersive
   Version 4.0 - 2025
   ============================================ */

/* ============ DESIGN TOKENS ============ */
:root {
    /* Brand */
    --brand: #FFAF10;
    --brand-dark: #E69D00;
    --brand-light: #FFC940;
    --brand-glow: rgba(255, 175, 16, 0.35);
    --brand-subtle: rgba(255, 175, 16, 0.08);
    --black: #0A0A0A;
    --white: #FFFFFF;
    
    /* Surfaces */
    --surface-0: #F8FAFC;
    --surface-1: #FFFFFF;
    --surface-2: #F1F5F9;
    --surface-3: #E2E8F0;
    
    /* Text */
    --text-1: #0F172A;
    --text-2: #475569;
    --text-3: #94A3B8;
    --text-4: #CBD5E1;
    
    /* Borders */
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --border-focus: var(--brand);
    
    /* Glass */
    --glass: rgba(255, 255, 255, 0.65);
    --glass-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Status */
    --green: #10B981;
    --green-light: #D1FAE5;
    --orange: #F97316;
    --orange-light: #FEF3C7;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --blue: #3B82F6;
    --blue-light: #DBEAFE;
    
    /* Spacing */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.25rem;
    --s6: 1.5rem;
    --s8: 2rem;
    --s10: 2.5rem;
    --s12: 3rem;
    --s16: 4rem;
    --s20: 5rem;
    
    /* Radius */
    --r-sm: 0.375rem;
    --r-md: 0.5rem;
    --r-lg: 0.75rem;
    --r-xl: 1rem;
    --r-2xl: 1.25rem;
    --r-3xl: 1.5rem;
    --r-4xl: 2rem;
    --r-full: 9999px;
    
    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --t-xs: 0.75rem;
    --t-sm: 0.875rem;
    --t-base: 1rem;
    --t-lg: 1.125rem;
    --t-xl: 1.25rem;
    --t-2xl: 1.5rem;
    --t-3xl: 1.875rem;
    --t-4xl: 2.25rem;
    --t-5xl: 3rem;
    
    /* Shadows */
    --sh-xs: 0 1px 2px rgba(0,0,0,0.04);
    --sh-sm: 0 2px 8px rgba(0,0,0,0.06);
    --sh-md: 0 4px 16px rgba(0,0,0,0.08);
    --sh-lg: 0 8px 32px rgba(0,0,0,0.1);
    --sh-xl: 0 16px 48px rgba(0,0,0,0.12);
    --sh-glow: 0 0 40px var(--brand-glow);
    --sh-card: 
        0 0 0 1px var(--border),
        0 2px 4px rgba(0,0,0,0.02),
        0 8px 24px rgba(0,0,0,0.06);
    --sh-card-hover: 
        0 0 0 1px var(--brand),
        0 4px 8px rgba(0,0,0,0.04),
        0 16px 48px rgba(0,0,0,0.08);
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 250ms var(--ease);
    --t-slow: 400ms var(--ease);
    --t-spring: 500ms var(--ease-spring);
    
    /* Z-Index */
    --z-top-bar: 100;
    --z-fab: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    
    /* Form card max width */
    --form-width: 720px;
}

/* ============ DARK MODE ============ */
[data-theme="dark"] {
    --surface-0: #0B1120;
    --surface-1: #131C2E;
    --surface-2: #1A2540;
    --surface-3: #243352;
    
    --text-1: #F1F5F9;
    --text-2: #B0BFCF;
    --text-3: #5A6E83;
    --text-4: #344155;
    
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);
    
    --glass: rgba(19, 28, 46, 0.7);
    --glass-strong: rgba(19, 28, 46, 0.88);
    --glass-border: rgba(255,255,255,0.08);
    
    --sh-card: 
        0 0 0 1px var(--border),
        0 2px 4px rgba(0,0,0,0.1),
        0 8px 24px rgba(0,0,0,0.2);
    --sh-card-hover: 
        0 0 0 1px var(--brand),
        0 4px 8px rgba(0,0,0,0.15),
        0 16px 48px rgba(0,0,0,0.25);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--t-base);
    line-height: 1.6;
    color: var(--text-1);
    background: var(--surface-0);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ AMBIENT BACKGROUND ============ */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.sphere-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    opacity: 0.4;
    animation: drift 25s ease-in-out infinite;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.6) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    opacity: 0.3;
    animation: drift 25s ease-in-out infinite -8s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    opacity: 0.2;
    animation: drift 25s ease-in-out infinite -16s;
}

[data-theme="dark"] .gradient-sphere {
    opacity: 0.15;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, -20px) scale(1.02); }
}

/* Noise texture overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

[data-theme="dark"] .noise-overlay {
    opacity: 0.04;
}

/* Subtle grid */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
}

/* ============ PARTICLES (Optional JS-generated) ============ */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0;
    animation: particleFade 4s ease-in-out infinite;
}

@keyframes particleFade {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-30px); }
}

/* ============ APP SHELL ============ */
.app-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ============ TOP BAR ============ */
.top-bar {
    position: sticky;
    top: 0;
    z-index: var(--z-top-bar);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--s3) var(--s6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.brand-mark {
    display: flex;
    align-items: center;
    gap: var(--s3);
    text-decoration: none;
    color: var(--text-1);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--brand-glow);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: var(--t-sm);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: var(--t-xs);
    color: var(--text-3);
    font-weight: 500;
}

/* Top Actions */
.top-actions {
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: var(--t-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.icon-btn:hover {
    background: var(--brand);
    color: var(--black);
    border-color: var(--brand);
    box-shadow: var(--sh-glow);
    transform: translateY(-1px);
}

.divider-v {
    width: 1px;
    height: 24px;
    background: var(--border-strong);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s2) var(--s4);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-2);
    font-size: var(--t-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
}

.admin-link:hover {
    background: var(--brand-subtle);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.admin-link i {
    font-size: var(--t-base);
}

/* ============ STAGE (Main Content) ============ */
.stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--s8) var(--s6) var(--s12);
    max-width: 100%;
}

/* ============ HERO SECTION ============ */
.hero-section {
    text-align: center;
    margin-bottom: var(--s10);
    max-width: 600px;
    animation: fadeUp 0.6s var(--ease) both;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s1) var(--s4);
    background: var(--brand-subtle);
    border: 1px solid rgba(255, 175, 16, 0.2);
    border-radius: var(--r-full);
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--s5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge i {
    font-size: var(--t-sm);
}

.hero-title {
    font-size: var(--t-4xl);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: var(--s4);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark), #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: var(--t-lg);
    color: var(--text-2);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* ============ FORM STAGE ============ */
.form-stage {
    width: 100%;
    max-width: var(--form-width);
    animation: fadeUp 0.6s var(--ease) 0.1s both;
}

/* ============ STEP BAR ============ */
.step-bar {
    margin-bottom: var(--s8);
}

.step-track {
    height: 4px;
    background: var(--surface-3);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: var(--s4);
}

.step-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: var(--r-full);
    transition: width 0.5s var(--ease-spring);
    box-shadow: 0 0 12px var(--brand-glow);
}

.step-labels {
    display: flex;
    justify-content: space-between;
}

.step-label {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s2) var(--s3);
    background: none;
    border: none;
    color: var(--text-3);
    font-size: var(--t-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--r-lg);
    transition: all var(--t-fast);
}

.step-label:hover {
    color: var(--text-2);
    background: var(--surface-2);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--t-xs);
    font-weight: 800;
    transition: all var(--t-base);
}

.step-label.active {
    color: var(--text-1);
}

.step-label.active .step-num {
    background: var(--brand);
    color: var(--black);
    box-shadow: 0 0 16px var(--brand-glow);
}

.step-label.completed .step-num {
    background: var(--green);
    color: var(--white);
}

.step-label.completed {
    color: var(--green);
}

/* ============ FORM CARD ============ */
.form-card {
    background: var(--glass-strong);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-3xl);
    box-shadow: var(--sh-card);
    overflow: hidden;
    transition: box-shadow var(--t-base);
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark), var(--brand-light));
}

.form-card:hover {
    box-shadow: var(--sh-card-hover);
}

/* ============ STEP PANEL ============ */
.step-panel {
    display: none;
    padding: var(--s8);
    animation: panelIn 0.35s var(--ease) both;
}

.step-panel.active {
    display: block;
}

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

/* Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    gap: var(--s4);
    margin-bottom: var(--s8);
    padding-bottom: var(--s6);
    border-bottom: 1px solid var(--border);
}

.panel-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: var(--r-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--black);
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--brand-glow);
}

.panel-title {
    font-size: var(--t-xl);
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.panel-desc {
    font-size: var(--t-sm);
    color: var(--text-3);
    margin-top: var(--s1);
}

/* ============ FIELDS ============ */
.fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6) var(--s5);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.field.full-width {
    grid-column: 1 / -1;
}

.field-label {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-1);
}

.field-label i {
    font-size: var(--t-base);
    color: var(--brand);
}

.required-dot {
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}

.optional-tag {
    font-size: var(--t-xs);
    font-weight: 500;
    color: var(--text-3);
    margin-left: auto;
}

/* Field Input */
.field-input-wrap {
    position: relative;
}

.field-input {
    width: 100%;
    padding: var(--s3) var(--s4);
    background: var(--surface-1);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-xl);
    font-size: var(--t-base);
    font-family: inherit;
    color: var(--text-1);
    outline: none;
    transition: all var(--t-fast);
}

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

.field-input:hover {
    border-color: var(--text-4);
}

.field-input:focus {
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--brand-subtle);
}

[data-theme="dark"] .field-input:focus {
    background: var(--surface-2);
}

/* Animated border accent */
.field-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    transition: all 0.3s var(--ease-spring);
    transform: translateX(-50%);
}

.field-input:focus ~ .field-border {
    width: calc(100% - 4px);
}

/* Field Status Icon */
.field-status {
    position: absolute;
    right: var(--s3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: var(--t-lg);
    opacity: 0;
    transition: opacity var(--t-fast);
}

.field-input.valid ~ .field-status {
    opacity: 1;
}

/* Select */
.field-select {
    appearance: none;
    cursor: pointer;
    padding-right: var(--s10);
}

.field-caret {
    position: absolute;
    right: var(--s4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: var(--t-base);
    pointer-events: none;
    transition: transform var(--t-fast);
}

.field-select:focus ~ .field-caret {
    transform: translateY(-50%) rotate(180deg);
    color: var(--brand);
}

/* Textarea */
.field-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* Field Hints & Errors */
.field-hint {
    display: flex;
    align-items: center;
    gap: var(--s1);
    font-size: var(--t-xs);
    color: var(--text-3);
}

.field-hint i {
    font-size: var(--t-sm);
}

.field-error {
    font-size: var(--t-xs);
    color: var(--red);
    font-weight: 500;
    min-height: 0;
    overflow: hidden;
    transition: all var(--t-fast);
}

.field-error.show {
    min-height: var(--t-sm);
}

.field-input.error {
    border-color: var(--red);
    background: var(--red-light);
}

.field-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ============ STEP ACTIONS ============ */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s4);
    margin-top: var(--s8);
    padding-top: var(--s6);
    border-top: 1px solid var(--border);
}

.step-actions-left {
    flex: 1;
}

/* Buttons */
.btn-next {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3) var(--s6);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--black);
    border: none;
    border-radius: var(--r-full);
    font-size: var(--t-base);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
    box-shadow: var(--sh-sm);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--sh-lg), var(--sh-glow);
}

.btn-next:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3) var(--s5);
    background: transparent;
    color: var(--text-2);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-full);
    font-size: var(--t-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-back:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-subtle);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: var(--s4) var(--s8);
    background: var(--black);
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: var(--r-full);
    font-size: var(--t-lg);
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
    min-width: 200px;
}

.btn-submit:hover:not(:disabled) {
    background: var(--brand);
    color: var(--black);
    box-shadow: var(--sh-xl), var(--sh-glow);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.submit-content,
.submit-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s2) var(--s4);
    background: transparent;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-full);
    color: var(--text-2);
    font-size: var(--t-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn-ghost-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.btn-ghost-sm:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

/* ============ SEARCH SECTION (Step 2) ============ */
.search-section {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    margin-bottom: var(--s5);
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--s4);
    font-size: var(--t-xl);
    color: var(--brand);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: var(--s3) var(--s4) var(--s3) var(--s12);
    background: var(--surface-1);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-full);
    font-size: var(--t-base);
    font-family: inherit;
    color: var(--text-1);
    outline: none;
    transition: all var(--t-fast);
}

.search-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-subtle);
}

.search-clear {
    position: absolute;
    right: var(--s3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-2);
    border: none;
    color: var(--text-3);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: var(--t-sm);
    transition: all var(--t-fast);
}

.search-clear.show {
    display: inline-flex;
}

.search-clear:hover {
    background: var(--red-light);
    color: var(--red);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s1) var(--s3);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--text-2);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
}

.chip:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--black);
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.chip-dot.green { background: var(--green); }
.chip-dot.orange { background: var(--orange); }

/* ============ ITEMS AREA ============ */
.items-area {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--s2);
    margin-right: calc(var(--s2) * -1);
}

/* Custom scrollbar for items area */
.items-area::-webkit-scrollbar { width: 5px; }
.items-area::-webkit-scrollbar-track { background: transparent; }
.items-area::-webkit-scrollbar-thumb { 
    background: var(--text-4); 
    border-radius: var(--r-full); 
}
.items-area::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* Items List - Row Style */
.items-list {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.item-row {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s3) var(--s4);
    background: var(--surface-1);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    transition: all var(--t-fast);
    cursor: pointer;
}

.item-row:hover {
    border-color: var(--brand);
    background: var(--brand-subtle);
}

.item-row.in-cart {
    border-color: var(--brand);
    background: var(--brand-subtle);
}

.item-icon {
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-3);
    flex-shrink: 0;
}

.item-row.in-cart .item-icon {
    background: var(--brand);
    color: var(--black);
}

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

.item-name {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-top: var(--s1);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s1);
    padding: 2px var(--s2);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
}

.stock-badge.available {
    background: var(--green-light);
    color: #065F46;
}

.stock-badge.low {
    background: var(--orange-light);
    color: #92400E;
}

.stock-badge.out {
    background: var(--red-light);
    color: #991B1B;
}

.item-unit {
    font-size: var(--t-xs);
    color: var(--text-3);
}

/* Quantity Control */
.qty-group {
    display: flex;
    align-items: center;
    gap: var(--s1);
    flex-shrink: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-size: var(--t-lg);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    font-family: inherit;
}

.qty-btn:hover:not(:disabled) {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--black);
}

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

.qty-val {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: var(--t-sm);
    color: var(--text-1);
}

/* ============ SKELETON LOADING ============ */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.skel-row {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s4);
    background: var(--surface-2);
    border-radius: var(--r-xl);
}

.skel {
    background: linear-gradient(90deg, 
        var(--surface-3) 25%, 
        rgba(255,255,255,0.4) 50%, 
        var(--surface-3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--r-md);
}

.skel-icon { width: 44px; height: 44px; border-radius: var(--r-lg); flex-shrink: 0; }
.skel-line { height: 16px; flex: 1; }
.skel-btn { width: 80px; height: 32px; flex-shrink: 0; }

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

/* ============ EMPTY STATE ============ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--s12) var(--s4);
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-3);
    margin-bottom: var(--s4);
}

.empty-state h4 {
    font-size: var(--t-base);
    color: var(--text-1);
    margin-bottom: var(--s2);
}

.empty-state p {
    font-size: var(--t-sm);
    color: var(--text-3);
    margin-bottom: var(--s4);
}

/* ============ SELECTION SUMMARY (Inline Cart) ============ */
.selection-summary {
    margin-top: var(--s5);
    background: var(--surface-2);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: all var(--t-base);
}

.selection-summary.has-items {
    border-color: var(--brand);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) var(--s4);
    cursor: pointer;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-1);
}

.summary-title i {
    color: var(--brand);
    font-size: var(--t-lg);
}

.summary-count {
    min-width: 24px;
    height: 24px;
    padding: 0 var(--s2);
    background: var(--brand);
    color: var(--black);
    font-size: var(--t-xs);
    font-weight: 800;
    border-radius: var(--r-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.summary-body {
    padding: 0 var(--s4) var(--s4);
}

.summary-body.collapsed {
    display: none;
}

.summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    margin-bottom: var(--s3);
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s2) var(--s3);
    background: var(--surface-1);
    border-radius: var(--r-lg);
    font-size: var(--t-sm);
}

.summary-item-name {
    font-weight: 600;
    color: var(--text-1);
}

.summary-item-right {
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.summary-item-qty {
    color: var(--text-3);
    font-weight: 500;
}

.summary-item-remove {
    width: 24px;
    height: 24px;
    border-radius: var(--r-sm);
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.summary-item-remove:hover {
    background: var(--red-light);
    color: var(--red);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: var(--s3) var(--s4);
    background: var(--brand-subtle);
    border-radius: var(--r-lg);
    font-size: var(--t-sm);
    font-weight: 600;
}

.summary-total strong {
    font-size: var(--t-lg);
    color: var(--brand-dark);
}

/* ============ REVIEW SECTIONS (Step 3) ============ */
.review-sections {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    margin-bottom: var(--s6);
}

.review-block {
    background: var(--surface-2);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.review-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s3) var(--s4);
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
}

.review-block-title {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-1);
}

.review-block-title i {
    color: var(--brand);
    font-size: var(--t-lg);
}

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: var(--s1);
    padding: var(--s1) var(--s3);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-3);
    font-size: var(--t-xs);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-edit:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-subtle);
}

.review-block-body {
    padding: var(--s4);
}

.review-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s2) 0;
    font-size: var(--t-sm);
}

.review-data-row + .review-data-row {
    border-top: 1px solid var(--border);
}

.review-data-label {
    color: var(--text-3);
}

.review-data-value {
    font-weight: 600;
    color: var(--text-1);
    text-align: right;
}

.review-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.review-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s3);
    background: var(--surface-1);
    border-radius: var(--r-lg);
    font-size: var(--t-sm);
}

.review-item-name {
    font-weight: 600;
    color: var(--text-1);
}

.review-item-qty {
    color: var(--text-3);
    font-weight: 500;
}

.review-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s3) var(--s4);
    background: var(--brand-subtle);
    border-radius: var(--r-lg);
    margin-top: var(--s3);
    font-weight: 600;
}

.review-total-row strong {
    font-size: var(--t-xl);
    color: var(--brand-dark);
}

/* ============ AGREEMENT ============ */
.agreement-box {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding: var(--s4);
    background: var(--brand-subtle);
    border: 2px solid rgba(255, 175, 16, 0.25);
    border-radius: var(--r-xl);
    cursor: pointer;
    transition: border-color var(--t-fast);
    margin-top: var(--s4);
    margin-bottom: var(--s2);
}

.agreement-box:hover {
    border-color: var(--brand);
}

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

.agreement-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--surface-1);
    border: 2px solid var(--border-strong);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
    color: transparent;
    font-size: 14px;
}

.agreement-box input:checked ~ .agreement-check {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--black);
}

.agreement-text {
    font-size: var(--t-sm);
    color: var(--text-2);
    line-height: 1.5;
}

/* ============ FOOTER ============ */
.stage-footer {
    margin-top: auto;
    padding: var(--s6) var(--s6) var(--s4);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s3);
    font-size: var(--t-xs);
    color: var(--text-3);
    flex-wrap: wrap;
}

.footer-sep {
    color: var(--border-strong);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s1);
    color: var(--text-3);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--t-fast);
}

.footer-link:hover {
    color: var(--brand);
}

.footer-version {
    padding: var(--s1) var(--s2);
    background: var(--surface-2);
    border-radius: var(--r-full);
    font-weight: 600;
}

/* ============ TOAST STACK ============ */
.toast-stack {
    position: fixed;
    top: var(--s4);
    right: var(--s4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    pointer-events: none;
}

.toast-stack > * {
    pointer-events: auto;
}

.toast-msg {
    min-width: 280px;
    max-width: 380px;
    padding: var(--s3) var(--s4);
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    display: flex;
    align-items: center;
    gap: var(--s3);
    animation: toastIn 0.35s var(--ease) both;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-msg.out {
    animation: toastOut 0.25s var(--ease) both;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%) scale(0.95); }
}

.toast-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-msg.success .toast-dot { background: var(--green); }
.toast-msg.error .toast-dot { background: var(--red); }
.toast-msg.warning .toast-dot { background: var(--orange); }
.toast-msg.info .toast-dot { background: var(--blue); }

.toast-text {
    flex: 1;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--text-1);
}

/* ============ OVERLAY & MODAL ============ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s var(--ease-spring);
}

.modal-success.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-inner {
    width: 420px;
    max-width: 90vw;
    background: var(--glass-strong);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-3xl);
    padding: var(--s10) var(--s8);
    box-shadow: var(--sh-xl);
    text-align: center;
}

/* Animated Checkmark */
.success-anim {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--s6);
}

.checkmark-svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--green);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: circleIn 0.6s 0.2s var(--ease) forwards;
}

.checkmark-path {
    stroke: var(--green);
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: checkIn 0.4s 0.6s var(--ease) forwards;
}

@keyframes circleIn {
    to { stroke-dashoffset: 0; }
}

@keyframes checkIn {
    to { stroke-dashoffset: 0; }
}

.modal-inner h2 {
    font-size: var(--t-2xl);
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--s3);
}

.modal-inner > p {
    font-size: var(--t-sm);
    color: var(--text-2);
    margin-bottom: var(--s6);
    line-height: 1.6;
}

/* Result Card */
.result-card {
    background: var(--surface-2);
    border-radius: var(--r-xl);
    padding: var(--s4);
    margin-bottom: var(--s6);
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s2) 0;
    font-size: var(--t-sm);
}

.result-row + .result-row {
    border-top: 1px solid var(--border);
}

.result-label {
    color: var(--text-3);
}

.result-value {
    font-weight: 700;
    color: var(--text-1);
}

.result-value.mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.03em;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s1) var(--s3);
    background: var(--orange-light);
    color: #92400E;
    border-radius: var(--r-full);
    font-size: var(--t-xs);
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: var(--s3);
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3) var(--s5);
    background: transparent;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-full);
    color: var(--text-2);
    font-size: var(--t-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn-primary-modal {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3) var(--s5);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border: none;
    border-radius: var(--r-full);
    color: var(--black);
    font-size: var(--t-sm);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-primary-modal:hover {
    box-shadow: var(--sh-lg), var(--sh-glow);
    transform: translateY(-1px);
}

/* ============ FAB HELP ============ */
.fab-help {
    position: fixed;
    bottom: var(--s6);
    right: var(--s6);
    width: 52px;
    height: 52px;
    background: var(--surface-1);
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text-2);
    font-size: var(--t-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-fab);
    transition: all var(--t-fast);
    box-shadow: var(--sh-md);
}

.fab-help:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--black);
    box-shadow: var(--sh-lg), var(--sh-glow);
    transform: scale(1.08);
}

/* Help Popover */
.help-popover {
    position: fixed;
    bottom: calc(var(--s6) + 60px);
    right: var(--s6);
    width: 300px;
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-xl);
    z-index: var(--z-fab);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom right;
    transition: all 0.25s var(--ease-spring);
}

.help-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.help-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s4) var(--s4) var(--s2);
}

.help-popover-header h4 {
    font-size: var(--t-sm);
    font-weight: 700;
}

.help-close {
    width: 28px;
    height: 28px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: none;
    color: var(--text-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.help-close:hover {
    background: var(--red-light);
    color: var(--red);
}

.help-popover-body {
    padding: var(--s2) var(--s4) var(--s4);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.help-option {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3);
    border-radius: var(--r-xl);
    text-decoration: none;
    color: var(--text-1);
    transition: background var(--t-fast);
}

.help-option:hover {
    background: var(--surface-2);
}

.help-option-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-subtle);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--t-lg);
    color: var(--brand-dark);
    flex-shrink: 0;
}

.help-option-text {
    display: flex;
    flex-direction: column;
}

.help-option-text span {
    font-size: var(--t-sm);
    font-weight: 600;
}

.help-option-text small {
    font-size: var(--t-xs);
    color: var(--text-3);
}

/* ============ BACK TO TOP ============ */
.btn-top {
    position: fixed;
    bottom: var(--s6);
    left: var(--s6);
    width: 44px;
    height: 44px;
    background: var(--surface-1);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    color: var(--text-3);
    font-size: var(--t-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--t-base);
    z-index: var(--z-fab);
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-top:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--black);
    transform: translateY(-4px);
}

/* ============ SPINNER ============ */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 175, 16, 0.3);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

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

/* Tablet */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--t-3xl);
    }
    
    .hero-desc {
        font-size: var(--t-base);
    }
    
    .step-panel {
        padding: var(--s6);
    }
    
    .fields-grid {
        grid-template-columns: 1fr;
    }
    
    .step-text {
        display: none;
    }
    
    .step-label {
        padding: var(--s2);
    }
    
    .step-actions {
        flex-direction: column-reverse;
        gap: var(--s3);
    }
    
    .btn-next, .btn-back, .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .admin-link span {
        display: none;
    }
    
    .admin-link {
        padding: var(--s2);
        border-radius: var(--r-lg);
    }
    
    .modal-inner {
        padding: var(--s6);
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .help-popover {
        right: var(--s4);
        left: var(--s4);
        width: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .stage {
        padding: var(--s4) var(--s4) var(--s8);
    }
    
    .hero-section {
        margin-bottom: var(--s6);
    }
    
    .hero-title {
        font-size: var(--t-2xl);
    }
    
    .hero-badge {
        font-size: 10px;
    }
    
    .top-bar-inner {
        padding: var(--s3) var(--s4);
    }
    
    .brand-label {
        display: none;
    }
    
    .step-panel {
        padding: var(--s4);
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s3);
    }
    
    .panel-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .items-area {
        max-height: 300px;
    }
    
    .item-row {
        gap: var(--s3);
        padding: var(--s3);
    }
    
    .item-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .fab-help {
        width: 48px;
        height: 48px;
        bottom: var(--s4);
        right: var(--s4);
    }
    
    .btn-top {
        bottom: var(--s4);
        left: var(--s4);
        width: 40px;
        height: 40px;
    }
    
    .toast-stack {
        left: var(--s4);
        right: var(--s4);
    }
    
    .toast-msg {
        min-width: auto;
    }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .gradient-sphere { animation: none; }
    .step-fill { transition: none; }
}

@media (prefers-contrast: high) {
    .form-card, .top-bar {
        backdrop-filter: none;
        background: var(--surface-1);
        border: 2px solid var(--text-1);
    }
    .field-input {
        border-width: 2px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .form-card:hover { box-shadow: var(--sh-card); }
    .item-row:hover { border-color: var(--border); background: var(--surface-1); }
    .btn-next:hover, .btn-submit:hover { transform: none; }
}

/* ============ SELECTION & FOCUS ============ */
::selection {
    background: var(--brand);
    color: var(--black);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-4); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
* { scrollbar-width: thin; scrollbar-color: var(--text-4) transparent; }
