/* ========================================
   DESIGN SYSTEM & VARIABLES
   Based on Premium Brand Guidelines
   ======================================== */
:root {
    /* Brand Typography */
    --font-display: 'Recht Black', 'Inter Tight', 'IBM Plex Sans', 'Arial Black', sans-serif;
    --font-accent: 'Cake Mono Bold', 'JetBrains Mono', 'IBM Plex Mono', 'Space Mono', monospace;
    --font-body: 'Geologica', 'Inter', 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    --font-numbers: 'TA-DA! Custom Numerals', 'Inter Tight', 'IBM Plex Sans', 'Arial Black', sans-serif;

    /* Brand Colors */
    --primary: #F4C430;
    --primary-dark: #D4A520;
    --primary-light: #F7D35A;

    /* Status Colors (used sparingly, only in icons/indicators) */
    --success: #02AE6E;
    --success-dark: #028A58;
    --error: #F04C3E;
    --error-dark: #D43A2E;
    --warning: #F58026;
    --info: #75866F;

    /* Neutral Palette - Warm Grays */
    --text-primary: #1A1919;
    --text-secondary: #1A1919;
    --gray-50: #FAFAF9;
    --gray-100: #F5F5F4;
    --gray-200: #E7E5E4;
    --gray-300: #D6D3D1;
    --gray-400: #A8A29E;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;

    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAF9F7;
    --bg-card: #FFFFFF;

    /* Spacing Scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-base: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.1875rem;
    --font-xl: 1.4375rem;
    --font-2xl: 1.75rem;
    --font-3xl: 2.125rem;
    --font-4xl: 2.5625rem;

    /* Shadows - Soft and Minimal */
    --shadow-sm: 0 1px 2px rgba(26, 25, 25, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 25, 25, 0.06);
    --shadow-lg: 0 8px 24px rgba(26, 25, 25, 0.08);
    --shadow-xl: 0 16px 40px rgba(26, 25, 25, 0.1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    line-height: 1.4;
    font-size: var(--font-md);
    text-rendering: optimizeLegibility;
}

body,
.font-sans,
input,
textarea,
select,
button {
    font-family: var(--font-body);
}

/* ========================================
   TYPOGRAPHY
   Hierarchy through size and weight, NOT color
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-wrap: balance;
}

h1 { font-size: var(--font-4xl); }
h2 { font-size: var(--font-3xl); }
h3 { font-size: var(--font-2xl); }
h4 { font-size: var(--font-xl); }
h5 { font-size: var(--font-lg); }
h6 { font-size: var(--font-md); }

p {
    color: var(--text-primary);
    line-height: 1.45;
    max-width: 90ch;
}

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

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Subheading style - monospace accent */
.subheading {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.ui-kicker {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: var(--font-sm);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ui-display {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.ui-page-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.3rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.ui-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.ui-lead {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.45;
    color: var(--gray-600);
    max-width: 62ch;
}

.ui-body-note {
    font-size: var(--font-sm);
    line-height: 1.4;
    color: var(--gray-500);
}

.ui-number {
    font-family: var(--font-numbers);
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.ui-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 1.1rem;
    background: var(--primary);
    color: var(--text-primary);
}

.ui-summary-card {
    border-radius: 1.5rem;
    border: 1px solid var(--gray-200);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.ui-summary-label {
    font-family: var(--font-accent);
    font-size: var(--font-xs);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.ui-summary-value {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.ui-stat-value {
    font-family: var(--font-numbers);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.ui-soft-surface {
    background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.ui-shell {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.ui-shell-muted {
    background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
    border: 1px solid var(--gray-200);
    border-radius: 2rem;
}

.ui-accent-panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.ui-accent-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 1.25rem;
    width: 3.25rem;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.ui-callout-note {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--gray-200);
    border-radius: 1.25rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.ui-callout-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.9rem;
    background: rgba(244, 196, 48, 0.18);
}

.ui-highlight-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.ui-highlight-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
}

.ui-meta-list {
    display: grid;
    gap: 0.85rem;
}

.ui-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.ui-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ui-meta-label {
    font-family: var(--font-accent);
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.ui-meta-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.ui-table-head {
    font-family: var(--font-accent);
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.ui-primary-cta {
    box-shadow: 0 16px 36px rgba(244, 196, 48, 0.28);
}

::selection {
    background: rgba(244, 196, 48, 0.35);
    color: var(--text-primary);
}

/* ========================================
   BUTTONS
   Primary uses brand yellow, secondary is transparent
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-md);
    outline: none;
    user-select: none;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

/* PRIMARY BUTTON - Brand Yellow */
.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

/* SECONDARY BUTTON - Transparent with border */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* SUCCESS BUTTON */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-dark);
}

/* DANGER BUTTON */
.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: var(--error-dark);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-lg);
}

.btn-block {
    width: 100%;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-label-fixed {
    min-height: 2.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: var(--font-md);
    font-family: inherit;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.15);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: var(--gray-300);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* RADIO & CHECKBOX */
.form-radio,
.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: var(--spacing-base);
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
    background: var(--bg-primary);
    font-weight: 500;
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    background: var(--bg-primary) !important;
    border-color: var(--gray-400) !important;
    box-shadow: inset 0 0 0 1px var(--gray-400) !important;
}

/* Alternative selector for broader browser support */
.radio-option input:checked ~ span,
.checkbox-option input:checked ~ span {
    font-weight: 600;
}

/* ========================================
   CARD COMPONENT
   White background, minimal shadow
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

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

.card-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-100);
}

.card-body {
    margin: var(--spacing-lg) 0;
}

.card-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

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

.product-name {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.product-meta {
    display: flex;
    gap: var(--spacing-base);
    font-size: var(--font-sm);
    color: var(--text-primary);
    flex-wrap: wrap;
    opacity: 0.8;
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

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

.icon-btn.danger:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* ========================================
   PROGRESS BAR
   Thin, brand yellow fill
   ======================================== */
.progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--spacing-base) 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    font-size: var(--font-sm);
}

.alert-success {
    background: rgba(2, 174, 110, 0.08);
    border-color: var(--success);
    color: var(--text-primary);
}

.alert-error {
    background: rgba(240, 76, 62, 0.08);
    border-color: var(--error);
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(245, 128, 38, 0.08);
    border-color: var(--warning);
    color: var(--text-primary);
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 25, 25, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    margin: 10% auto;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.modal-footer {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-base);
    justify-content: flex-end;
}

/* ========================================
   BADGE
   Small pill, brand yellow
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 700;
}

.badge-primary {
    background: var(--primary);
    color: var(--text-primary);
}

.badge-success {
    background: rgba(2, 174, 110, 0.15);
    color: var(--success);
}

.badge-error {
    background: rgba(240, 76, 62, 0.15);
    color: var(--error);
}

.badge-warning {
    background: rgba(245, 128, 38, 0.15);
    color: var(--warning);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* ========================================
   RATING DISPLAY
   ======================================== */
#rating-circle {
    transition: stroke-dasharray 1s ease;
}

.rating-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.rating-scale {
    font-size: var(--font-lg);
    color: var(--gray-500);
    font-weight: 600;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */
.tab-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--gray-100);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-step:hover {
    background: var(--gray-200);
}

.tab-step-active {
    background: var(--primary);
    color: var(--text-primary);
    font-weight: 700;
}

.tab-step-active:hover {
    background: var(--primary-light);
}

.tab-step-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile tabs */
@media (max-width: 768px) {
    .tab-step {
        padding: 0.625rem 0.875rem;
        font-size: var(--font-xs);
    }

    .tab-step span {
        display: none;
    }
}

/* ========================================
   FILE UPLOAD ZONE
   ======================================== */
.file-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(244, 196, 48, 0.04);
}

.file-upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(244, 196, 48, 0.08);
    transform: scale(1.01);
}

.file-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: var(--radius-lg);
}

.file-upload-icon i {
    color: var(--text-primary) !important;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--primary);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.file-item-name {
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    font-size: var(--font-xs);
    color: var(--gray-500);
}

.file-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    color: var(--error);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-item-remove:hover {
    background: var(--error);
    color: white;
}

/* File type badges - warm neutral colors only */
.file-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
}

.file-badge-pdf {
    background: rgba(245, 128, 38, 0.15);
    color: var(--warning);
}

.file-badge-excel {
    background: rgba(2, 174, 110, 0.15);
    color: var(--success);
}

.file-badge-doc {
    background: var(--gray-100);
    color: var(--text-primary);
}

.file-badge-csv {
    background: var(--gray-100);
    color: var(--text-primary);
}

.file-badge-txt {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* ========================================
   VALIDATION STYLES
   ======================================== */
.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(240, 76, 62, 0.1) !important;
}

.form-input:invalid,
.form-textarea:invalid,
.form-select:invalid,
input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none;
    outline: none;
}

.field-error {
    display: block;
    color: var(--error);
    font-size: var(--font-xs);
    font-weight: 600;
    margin-top: 0.25rem;
}

.field-error.hidden {
    display: none;
}

.field-hint {
    display: block;
    color: var(--gray-500);
    font-size: var(--font-xs);
    margin-top: 0.25rem;
}

.mandatory-indicator {
    display: none;
}

/* ========================================
   STEP SECTIONS
   ======================================== */
.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    margin-bottom: var(--spacing-xl);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    color: var(--text-primary);
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
}

.strength-card {
    background: rgba(2, 174, 110, 0.04);
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.weakness-card {
    background: rgba(245, 128, 38, 0.04);
    border: 2px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-base { margin-top: var(--spacing-base); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-base { margin-bottom: var(--spacing-base); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.flex { display: flex; }
.gap-sm { gap: var(--spacing-sm); }
.gap-base { gap: var(--spacing-base); }
.gap-lg { gap: var(--spacing-lg); }

.hidden { display: none; }
.block { display: block; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: var(--font-2xl); }
    h2 { font-size: var(--font-xl); }
    h3 { font-size: var(--font-lg); }

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

    .card {
        padding: var(--spacing-lg);
    }

    .product-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: var(--spacing-base);
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: var(--spacing-lg);
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .radio-option,
    .checkbox-option {
        width: 100%;
    }
}

/* ========================================
   MAIN CONTAINER OVERRIDE
   Clean, premium look
   ======================================== */
.main-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.main-header {
    background: var(--bg-primary);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-100);
}

.main-footer {
    background: var(--bg-primary);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--gray-100);
}

/* ========================================
   SUPPLIER FORM MOBILE RESPONSIVE STYLES
   ======================================== */

/* Scrollable tabs container */
.tabs-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}
.tabs-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Mobile-first form improvements */
@media (max-width: 639px) {
    /* Container padding */
    .max-w-4xl {
        padding: 12px !important;
    }

    /* Main container */
    .main-container {
        border-radius: 16px !important;
    }

    /* Header */
    .main-header {
        padding: 12px 16px !important;
    }

    /* Tabs section */
    .main-header + div {
        padding: 12px 16px !important;
    }

    /* Tab buttons - smaller on mobile */
    .tab-step {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
    }
    .tab-step i {
        width: 16px !important;
        height: 16px !important;
    }
    .tab-step span {
        display: none;
    }

    /* Progress bar section */
    .progress + div,
    .px-6.md\\:px-8.pt-6 {
        padding: 16px !important;
    }

    /* Content area */
    .px-6.md\\:px-8.py-8 {
        padding: 16px !important;
    }

    /* Step header */
    .step-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .step-header h2 {
        font-size: 1.5rem !important;
    }
    .step-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .step-icon i {
        width: 20px !important;
        height: 20px !important;
    }

    /* Form groups */
    .form-group {
        margin-bottom: 1rem !important;
    }

    /* Form labels */
    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }

    /* Form inputs - larger touch targets */
    .form-input,
    .form-textarea,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        padding: 14px 12px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 10px !important;
    }

    /* Radio and checkbox groups */
    .radio-group,
    .checkbox-group {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .radio-option,
    .checkbox-option {
        width: 100% !important;
        padding: 14px 12px !important;
        justify-content: flex-start !important;
    }

    /* File upload zone */
    .file-upload-zone {
        padding: 24px 16px !important;
    }
    .file-upload-icon {
        width: 48px !important;
        height: 48px !important;
    }
    .file-upload-icon i {
        width: 24px !important;
        height: 24px !important;
    }
    .file-upload-zone p.text-lg {
        font-size: 1rem !important;
    }

    /* Product form */
    #product-form {
        padding: 16px !important;
        margin: 0 -16px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    #product-form h3 {
        font-size: 1.1rem !important;
    }
    #product-form h4 {
        font-size: 0.7rem !important;
    }

    /* Product cards */
    .product-card {
        padding: 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .product-info {
        width: 100% !important;
    }
    .product-name {
        font-size: 1rem !important;
    }
    .product-meta {
        font-size: 0.75rem !important;
    }
    .product-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }

    /* Buttons */
    .btn {
        padding: 14px 16px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .btn-sm {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }

    /* Footer navigation */
    .main-footer {
        padding: 16px !important;
    }
    .main-footer > div {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .main-footer .btn {
        width: 100% !important;
        order: 0 !important;
    }
    #step-counter {
        order: -1 !important;
        width: 100% !important;
        justify-content: center !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--gray-100) !important;
        margin-bottom: 4px !important;
    }
    #prev-btn {
        order: 1 !important;
    }
    #next-btn {
        order: 2 !important;
    }

    /* Results step */
    #step-4 .w-20 {
        width: 60px !important;
        height: 60px !important;
    }
    #step-4 .w-20 i {
        width: 32px !important;
        height: 32px !important;
    }
    #step-4 h2 {
        font-size: 1.5rem !important;
    }
    #step-4 .text-lg {
        font-size: 0.9rem !important;
    }

    /* Rating card */
    .results-card {
        padding: 24px 16px !important;
    }
    .results-card .w-36 {
        width: 120px !important;
        height: 120px !important;
    }
    .rating-value {
        font-size: 2.5rem !important;
    }
    .rating-scale {
        font-size: 1rem !important;
    }

    /* Strength/Weakness cards */
    .strength-card,
    .weakness-card {
        padding: 16px !important;
    }
    .strength-card h4,
    .weakness-card h4 {
        font-size: 1rem !important;
    }
    .strength-card .w-9,
    .weakness-card .w-9 {
        width: 32px !important;
        height: 32px !important;
    }
    .strength-card ul,
    .weakness-card ul {
        font-size: 0.875rem !important;
    }

    /* Modal */
    .modal-content {
        width: 95% !important;
        margin: 10% auto !important;
        padding: 20px !important;
        border-radius: 16px !important;
    }
    .modal-title {
        font-size: 1.1rem !important;
    }

    /* Grid adjustments */
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet styles */
@media (min-width: 640px) and (max-width: 1023px) {
    .main-header,
    .main-footer {
        padding: 16px 24px !important;
    }

    .tab-step span {
        display: inline !important;
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .tab-step,
    .radio-option,
    .checkbox-option,
    .icon-btn,
    .file-upload-zone {
        min-height: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    /* Larger touch targets for file items */
    .file-item {
        padding: 12px !important;
    }
    .file-item-remove {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Landscape phone */
@media (max-width: 896px) and (orientation: landscape) {
    .main-header,
    .main-footer {
        padding: 10px 16px !important;
    }

    .step-header h2 {
        font-size: 1.25rem !important;
    }

    .results-card .w-36 {
        width: 100px !important;
        height: 100px !important;
    }
}
