/**
 * Gokelpy End-User Design System
 * 
 * Trust-based marketplace design system for construction industry
 * Focus: Clear hierarchy, trust indicators, strong CTAs, minimal cognitive load
 * 
 * Design System:
 * - Font: Inter (or Roboto fallback)
 * - Primary: navy (#0F172A)
 * - Secondary: slate (#1E293B)
 * - Accent: construction yellow (#F59E0B) for CTAs
 * - Background: slate-50 (#F8FAFC)
 */

/* Import Master Color System */
@import url('colors.css');

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    /* Typography - Friendly but professional */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px; /* Slightly larger than admin (14px) for better readability */
    --line-height-base: 1.6;
    
    /* Spacing - Consistent with admin */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Shadows - Subtle like admin, no heavy shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Border Radius - Consistent with admin (6-8px) */
    --radius-sm: 0.375rem; /* 6px */
    --radius: 0.5rem; /* 8px */
    --radius-md: 0.75rem; /* 12px */
    --radius-lg: 1rem; /* 16px */
    --radius-xl: 1.5rem; /* 24px */
    --radius-full: 9999px;
    
    /* Transitions - Smooth and friendly */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Colors - Matching admin style */
    --border-color: #E5E7EB; /* gray-200 */
    --border-color-hover: #D1D5DB; /* gray-300 */
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Professional but friendly */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1F2937; /* gray-800 */
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family);
}

h1 { 
    font-size: 2.25rem; /* 36px */
    font-weight: 700; 
    line-height: 1.2;
}
h2 { 
    font-size: 1.875rem; /* 30px */
    font-weight: 600; 
}
h3 { 
    font-size: 1.5rem; /* 24px */
    font-weight: 600; 
}
h4 { 
    font-size: 1.25rem; /* 20px */
    font-weight: 600; 
}
h5 { 
    font-size: 1.125rem; /* 18px */
    font-weight: 600; 
}
h6 { 
    font-size: 1rem; /* 16px */
    font-weight: 600; 
}

p {
    margin-bottom: var(--spacing-md);
    color: #374151; /* gray-700 */
    line-height: 1.6;
}

/* ============================================
   BUTTONS - Professional & Friendly
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border-radius: var(--radius); /* 8px */
    font-weight: 500;
    font-size: 0.9375rem; /* 15px */
    padding: 0.625rem 1.25rem; /* Slightly larger than admin for friendliness */
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-family);
    line-height: 1.5;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Primary Button - Blue (like admin but friendly) */
.btn-primary {
    background: #2563EB; /* blue-600 */
    color: white;
    border-color: #2563EB;
}

.btn-primary:hover {
    background: #1D4ED8; /* blue-700 */
    border-color: #1D4ED8;
}

.btn-primary:active {
    background: #1E40AF; /* blue-800 */
}

/* Accent Button - Yellow (Strong CTAs) */
.btn-accent {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
    border-color: var(--color-accent);
    font-weight: 600;
}

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

/* Outline Buttons */
.btn-outline-primary {
    border: 1px solid #2563EB;
    color: #2563EB;
    background: white;
}

.btn-outline-primary:hover {
    background: #2563EB;
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #D1D5DB; /* gray-300 */
    color: #374151; /* gray-700 */
    background: white;
}

.btn-outline-secondary:hover {
    background: #F9FAFB; /* gray-50 */
    border-color: #9CA3AF; /* gray-400 */
}

.btn-outline-accent {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    background: white;
    font-weight: 600;
}

.btn-outline-accent:hover {
    background: var(--color-accent);
    color: var(--color-text-on-accent);
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem; /* 14px */
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem; /* 16px */
}

/* Success, Danger, Warning */
.btn-success {
    background: #16A34A; /* green-600 */
    color: white;
    border-color: #16A34A;
}

.btn-success:hover {
    background: #15803D; /* green-700 */
    border-color: #15803D;
}

.btn-danger {
    background: #DC2626; /* red-600 */
    color: white;
    border-color: #DC2626;
}

.btn-danger:hover {
    background: #B91C1C; /* red-700 */
    border-color: #B91C1C;
}

.btn-warning {
    background: #D97706; /* amber-600 */
    color: white;
    border-color: #D97706;
}

.btn-warning:hover {
    background: #B45309; /* amber-700 */
    border-color: #B45309;
}

/* ============================================
   CARDS - Clean & Professional
   ============================================ */

.card {
    border: 1px solid var(--border-color); /* #E5E7EB */
    border-radius: var(--radius); /* 8px */
    box-shadow: var(--shadow-sm); /* Subtle shadow like admin */
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    background: white;
}

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

.card-header {
    background: #F9FAFB; /* gray-50 */
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1F2937; /* gray-800 */
}

.card-body {
    padding: 1.5rem;
    background: white;
}

/* Tender/Job Cards */
.tender-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* 8px */
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow-sm);
    min-height: fit-content;
}

.tender-card:hover {
    border-color: #2563EB; /* blue-600 */
    box-shadow: var(--shadow-md);
}

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

.tender-card-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #1F2937; /* gray-800 */
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.tender-card-badge {
    background: var(--color-success);
    color: var(--color-text-on-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tender-card-body {
    flex: 1;
    margin-bottom: var(--spacing-md);
    min-height: 0;
}

.tender-card-description {
    color: #374151; /* gray-700 */
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.tender-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem; /* 14px */
    color: #6B7280; /* gray-500 */
}

.tender-card-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tender-card-meta-item i {
    color: var(--color-primary);
    width: 16px;
    text-align: center;
}

.tender-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.tender-card-budget {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

/* Provider Profile Cards */
.provider-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* 8px */
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: white;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* ============================================
   TRUST INDICATORS
   ============================================ */

.trust-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-trust);
    border: 1px solid var(--color-bg-trust-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-success);
}

.trust-indicator i {
    font-size: 0.75rem;
}

/* Rating Stars */
.rating-stars {
    color: var(--color-accent);
    font-size: 1.125rem;
    display: inline-flex;
    gap: 0.125rem;
    align-items: center;
}

.rating-stars i {
    width: 1em;
    height: 1em;
}

.rating-value {
    font-weight: 700;
    color: var(--color-text-primary);
    margin-left: var(--spacing-sm);
    font-size: 1rem;
}

.rating-count {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-left: var(--spacing-xs);
}

/* Trust & Safety Block */
.trust-safety-block {
    background: linear-gradient(135deg, var(--color-bg-trust) 0%, #F0FDF4 100%);
    border: 2px solid var(--color-bg-trust-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.trust-safety-block h4 {
    color: var(--color-success);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.trust-safety-block h4 i {
    font-size: 1.5rem;
}

.trust-safety-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-safety-block li {
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
}

.trust-safety-block li i {
    color: var(--color-success);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: var(--gradient-hero);
    color: var(--color-text-on-dark);
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.1;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    color: #fff;
}

/* Search Box */
.search-hero {
    background: white;
    border-radius: var(--radius); /* 8px */
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.search-hero .form-control,
.search-hero .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* 8px */
    padding: 0.625rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    color: #1F2937; /* gray-800 */
    font-family: var(--font-family);
    font-size: 0.9375rem; /* 15px */
}

.search-hero .form-control:focus,
.search-hero .form-select:focus {
    border-color: #2563EB; /* blue-600 */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-hero .form-control::placeholder {
    color: #9CA3AF; /* gray-400 */
}

/* ============================================
   PROFILE HEADER
   ============================================ */

.profile-header {
    background: var(--gradient-hero);
    color: var(--color-text-on-dark);
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--color-bg-primary);
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.profile-meta {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    opacity: 0.9;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
}

/* ============================================
   INFO CARDS
   ============================================ */

.info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* 8px */
    padding: 1.5rem;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    font-weight: 600;
    font-size: 1rem; /* 16px */
    color: #1F2937; /* gray-800 */
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-card-title i {
    color: var(--color-primary);
}

.info-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    gap: var(--spacing-md);
}

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

.info-card-label {
    color: #6B7280; /* gray-500 */
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-card-value {
    color: #1F2937; /* gray-800 */
    font-weight: 500;
    font-size: 0.9375rem; /* 15px */
    text-align: right;
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */

.filter-sidebar {
    background: white;
    border-radius: var(--radius); /* 8px */
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-section {
    margin-bottom: var(--spacing-xl);
}

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

.filter-section-title {
    font-weight: 600;
    font-size: 0.9375rem; /* 15px */
    color: #1F2937; /* gray-800 */
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-section-title i {
    color: #2563EB; /* blue-600 */
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* 8px */
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem; /* 14px */
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
}

.filter-sidebar .form-control:focus,
.filter-sidebar .form-select:focus {
    border-color: #2563EB; /* blue-600 */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ============================================
   FORM CONTROLS - Consistent Styling
   ============================================ */

.form-control,
.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius); /* 8px */
    font-size: 0.9375rem; /* 15px */
    font-family: var(--font-family);
    background: white;
    color: #1F2937; /* gray-800 */
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563EB; /* blue-600 */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled,
.form-select:disabled,
.form-input:disabled,
.form-textarea:disabled {
    background: #F9FAFB; /* gray-50 */
    color: #9CA3AF; /* gray-400 */
    cursor: not-allowed;
}

.form-control::placeholder,
.form-input::placeholder {
    color: #9CA3AF; /* gray-400 */
}

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

.form-label {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.375rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* Form Errors */
.form-control.is-invalid,
.form-select.is-invalid,
.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: #DC2626; /* red-600 */
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem; /* 14px */
    color: #DC2626; /* red-600 */
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    line-height: 1.2;
}

.badge-success {
    background: #D1FAE5; /* green-100 */
    color: #065F46; /* green-800 */
}

.badge-warning {
    background: #FEF3C7; /* amber-100 */
    color: #92400E; /* amber-800 */
}

.badge-primary {
    background: #DBEAFE; /* blue-100 */
    color: #1E40AF; /* blue-800 */
}

.badge-accent {
    background: #FEF3C7; /* amber-100 */
    color: #92400E; /* amber-800 */
}

.badge-secondary {
    background: #F3F4F6; /* gray-100 */
    color: #374151; /* gray-700 */
}

.badge-danger {
    background: #FEE2E2; /* red-100 */
    color: #991B1B; /* red-800 */
}

.badge-info {
    background: #DBEAFE; /* blue-100 */
    color: #1E40AF; /* blue-800 */
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    color: var(--color-text-light);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--color-gray-300);
    margin-bottom: var(--spacing-md);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   STEP-BASED FLOW (For Booking)
   ============================================ */

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border-light);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.step-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-bg-primary);
    border: 3px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-on-primary);
}

.step.completed .step-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-text-on-primary);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
}

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

.step-content {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
}

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

@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-hero {
        padding: var(--spacing-lg);
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: var(--spacing-xl);
    }
    
    .tender-card {
        padding: var(--spacing-md);
    }
    
    .tender-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .tender-card-footer .btn {
        width: 100%;
    }
    
    .tender-card-budget {
        width: 100%;
        justify-content: center;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .step-indicator::before {
        display: none;
    }
    
    .profile-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .tender-card-title {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: var(--transition);
}

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

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 0.875rem;
    background: var(--color-bg-trust);
    border: 1px solid var(--color-bg-trust-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-success);
}

.trust-badge i {
    font-size: 1rem;
}

/* Attachment Grid Styles */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    background: var(--color-bg-secondary);
    padding: 16px;
    border-radius: 8px;
}

.attachment-item {
    position: relative;
    background: var(--color-bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--color-shadow-sm);
}

.attachment-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* hover overlay */
.attachment-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .2s;
}

.attachment-item:hover .attachment-overlay {
    opacity: 1;
}

.btn-delete {
    background: var(--color-danger);
    color: var(--color-text-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.btn-delete:hover {
    background: var(--color-danger-hover);
}

.file-preview {
    height: 140px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.file-icon {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
}

.file-name {
    font-size: 12px;
    text-align: center;
    word-break: break-all;
    margin-top: 6px;
}

.file-preview .btn-delete {
    position: absolute;
    top: 6px;
    right: 6px;
}

