@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ══════════════════════════════════════════════
   HOURLY HUMANS — Light Theme (White + Indigo)
   ══════════════════════════════════════════════ */

:root {
    /* Indigo brand palette */
    --primary:       #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-mid:   #e0e7ff;
    --primary-border:#c7d2fe;
    --primary-glow:  rgba(79, 70, 229, 0.15);

    /* Neutrals */
    --bg-dark:    #ffffff;
    --card-bg:    #ffffff;
    --border-color: #e5e7eb;

    /* Text */
    --text-primary:   #111827;
    --text-secondary: #6b7280;
    --text-muted:     #9ca3af;

    /* Surfaces */
    --surface:     #ffffff;
    --surface-alt: #f9fafb;
    --surface-card:#ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111827;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.logo-font { font-family: 'Space Grotesk', sans-serif; }

/* ── Hero ── */
.hero-bg {
    background: linear-gradient(150deg, #eef2ff 0%, #ffffff 55%);
    border-bottom: 1px solid #e5e7eb;
}

/* ── Nav ── */
.glass-morphism {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}

/* Human marketplace cards override */
main .glass-morphism,
.glass-morphism.card-hover {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    backdrop-filter: none !important;
}

/* ── Card hover ── */
.card-hover {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

/* ── Active tab ── */
.active-tab {
    color: #4f46e5 !important;
    position: relative;
}
.active-tab::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 2px;
    background: #4f46e5;
    border-radius: 2px;
}

/* ── Chat bubbles ── */
.chat-bubble { max-width: 75%; padding: 12px 18px; border-radius: 20px; margin-bottom: 10px; }
.chat-bubble-me   { background: #4f46e5; color: #fff; align-self: flex-end; }
.chat-bubble-them { background: #f3f4f6; color: #111827; align-self: flex-start; }

/* ── Auth modal ── */
.active-auth-tab {
    color: #4f46e5 !important;
    border-bottom: 2px solid #4f46e5 !important;
}

.auth-step-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-step-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}
.auth-step-input::placeholder { color: #9ca3af; }

/* Auth modal panels */
#auth-modal .glass-morphism {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    backdrop-filter: none !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important;
    color: #111827 !important;
}
#auth-modal > div:first-child  { background: rgba(17,24,39,0.35) !important; backdrop-filter: blur(4px); }
#auth-modal .sticky            { background: #ffffff !important; border-bottom: 1px solid #e5e7eb !important; }
#auth-modal .bg-black\/60      { background: #ffffff !important; }
#tab-login, #tab-seller        { color: #6b7280 !important; }

/* Seller progress dots */
#dot-1, #dot-2, #dot-3 { background: #e5e7eb !important; }

/* ── Avatar upload ── */
.avatar-upload-area {
    width: 96px; height: 96px;
    border-radius: 16px;
    background: #eef2ff;
    border: 2px dashed #c7d2fe;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative; overflow: hidden;
}
.avatar-upload-area:hover { border-color: #4f46e5; }
.avatar-upload-area .text-white\/30 { color: #a5b4fc !important; }

/* ── Landing sections ── */
.landing-section     { padding: 80px 24px; }
.landing-section-alt { background: #f9fafb; }

.landing-eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #4f46e5; margin-bottom: 12px; display: block;
}

.landing-h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700; color: #111827;
    margin-bottom: 12px; line-height: 1.2;
}

.landing-sub {
    font-size: 15px; color: #6b7280;
    line-height: 1.7; margin-bottom: 40px; max-width: 520px;
}

.landing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px; padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.landing-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(79,70,229,0.08);
}

/* ── Stats ── */
.stat-num { font-size: 28px; font-weight: 700; color: #111827; }

/* ── Safety ── */
.safety-item { display: flex; gap: 16px; align-items: flex-start; }
.safety-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: #eef2ff; border: 1px solid #e0e7ff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.safety-icon i { color: #4f46e5 !important; }

/* ── Experiences ── */
.exp-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #eef2ff; border: 1px solid #e0e7ff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.exp-icon i { color: #4f46e5 !important; }

/* ── Blog ── */
.blog-card {
    background: #ffffff; border: 1px solid #e5e7eb;
    border-radius: 20px; overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(79,70,229,0.08);
}
.blog-thumb {
    height: 96px; background: #eef2ff;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #e0e7ff;
}
.blog-thumb i { color: #c7d2fe !important; }

/* ── Pills ── */
.pill-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ffffff; border: 1px solid #e5e7eb;
    border-radius: 100px; padding: 6px 14px;
    font-size: 12px; color: #374151;
    margin: 0 6px 8px 0; transition: border-color 0.15s, color 0.15s;
}
.pill-tag:hover { border-color: #a5b4fc; color: #4f46e5; }

/* ── Step dots ── */
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: #eef2ff; border: 1px solid #c7d2fe;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #4f46e5; flex-shrink: 0;
}

/* ── Contact ── */
.contact-input {
    width: 100%; background: #ffffff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 12px 16px; color: #111827;
    font-size: 14px; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 12px; font-family: inherit;
}
.contact-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.contact-input::placeholder { color: #9ca3af; }

/* ── Footer links ── */
.footer-link {
    font-size: 13px; color: #6b7280; margin-bottom: 10px;
    cursor: pointer; transition: color 0.2s; display: block; text-decoration: none;
}
.footer-link:hover { color: #4f46e5; }

/* ── Safety banner ── */
.safety-banner {
    background: #eef2ff; border-bottom: 1px solid #c7d2fe;
    padding: 12px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.safety-banner .fa-shield-halved  { color: #4f46e5 !important; }
.safety-banner .text-cyan-400     { color: #4f46e5 !important; }
.safety-banner .text-white\/50,
.safety-banner .text-white\/40    { color: #6b7280 !important; }

/* ── Booking modal ── */
#booking-modal > div:first-child { background: rgba(17,24,39,0.35) !important; }
#booking-modal .glass-morphism {
    background: #ffffff !important; border: 1px solid #e5e7eb !important;
    backdrop-filter: none !important; box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important;
}
#booking-datetime {
    background: #f9fafb !important; border: 1px solid #e5e7eb !important;
    color: #111827 !important; border-radius: 12px;
}
#booking-modal .bg-white\/5  { background: #f9fafb !important; }
#booking-modal .border-white\/5 { border-color: #e5e7eb !important; }

/* ── Chat window ── */
#chat-window {
    background: #ffffff !important; border: 1px solid #e5e7eb !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1) !important;
}
#chat-window .bg-white\/5    { background: #f9fafb !important; }
#chat-window .border-white\/10 { border-color: #e5e7eb !important; }
#chat-window h3, #chat-window .font-bold { color: #111827 !important; }
#chat-window .text-white\/40 { color: #9ca3af !important; }
#chat-messages .bg-cyan-500  { background: #4f46e5 !important; color: #fff !important; }
#chat-messages .bg-white\/10 { background: #f3f4f6 !important; color: #111827 !important; }
#chat-input {
    background: #f9fafb !important; border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
#chat-input::placeholder { color: #9ca3af !important; }

/* ── Search input ── */
#search-input {
    background: #ffffff !important; border: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
#search-input::placeholder { color: #9ca3af !important; }
#search-input:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }

/* ── Tailwind colour overrides ── */
.text-white            { color: #111827 !important; }
.text-white\/60        { color: #6b7280 !important; }
.text-white\/50        { color: #6b7280 !important; }
.text-white\/40        { color: #9ca3af !important; }
.text-white\/30        { color: #9ca3af !important; }
.text-white\/20        { color: #d1d5db !important; }
.text-white\/15        { color: #d1d5db !important; }
.text-cyan-400         { color: #4f46e5 !important; }
.bg-cyan-500           { background: #4f46e5 !important; }
.bg-cyan-400           { background: #4f46e5 !important; }
.hover\:bg-cyan-400:hover  { background: #4338ca !important; }
.hover\:bg-cyan-300:hover  { background: #4338ca !important; }
.hover\:text-cyan-400:hover { color: #4f46e5 !important; }
.border-cyan-500\/20   { border-color: #c7d2fe !important; }
.border-cyan-500\/30   { border-color: #a5b4fc !important; }
.bg-cyan-500\/10       { background: #eef2ff !important; }
.bg-cyan-500\/5        { background: #eef2ff !important; }
.shadow-cyan-500\/20   { box-shadow: 0 4px 12px rgba(79,70,229,0.12) !important; }
.bg-black              { background: #f9fafb !important; }
.border-white\/8       { border-color: #e5e7eb !important; }
.border-white\/10      { border-color: #e5e7eb !important; }
.border-white\/20      { border-color: #d1d5db !important; }
.border-white\/5       { border-color: #f3f4f6 !important; }
.bg-white\/5           { background: #f9fafb !important; }
.bg-white\/10          { background: #f3f4f6 !important; }
.bg-black\/80, .bg-black\/90 { background: rgba(17,24,39,0.35) !important; }

/* Primary buttons */
.bg-white.text-black            { background: #111827 !important; color: #ffffff !important; }
button.rounded-full.bg-white    { background: #111827 !important; color: #ffffff !important; }
button.rounded-full.bg-white:hover { background: #4f46e5 !important; }

/* Auth/modal submit buttons */
#login-btn, #signup-btn, #seller-submit-btn, #pay-btn, #contact-btn {
    background: #4f46e5 !important; color: #ffffff !important;
}
#login-btn:hover, #signup-btn:hover, #seller-submit-btn:hover,
#pay-btn:hover, #contact-btn:hover { background: #4338ca !important; }

/* Chat send button */
.bg-cyan-500.text-black { background: #4f46e5 !important; color: #ffffff !important; }

/* ── Nav active tab ── */
.active-tab { color: #4f46e5 !important; }

/* ── PWA banner ── */
#pwa-banner {
    background: #ffffff !important; border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05) !important;
}
#pwa-banner .text-white\/40 { color: #9ca3af !important; }

/* ── Testimonials ── */
.bg-cyan-600  { background: #4f46e5 !important; }
.bg-indigo-600 { background: #4338ca !important; }
.bg-purple-600 { background: #6366f1 !important; }
.italic { color: #6b7280 !important; }

/* ── Skeleton loader ── */
.animate-pulse .bg-white\/10 { background: #f3f4f6 !important; }

/* ── Footer ── */
footer.bg-black {
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
}
footer .text-white\/20 { color: #9ca3af !important; }
footer .text-white\/30 { color: #6b7280 !important; }

/* ── Profile page ── */
.section-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}
.field-input {
    background: #ffffff !important; border: 1px solid #e5e7eb !important;
    color: #111827 !important; border-radius: 12px;
    padding: 14px 18px; font-size: 14px; outline: none; width: 100%;
    font-family: inherit; transition: border-color 0.2s;
}
.field-input:focus  { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.field-input::placeholder { color: #9ca3af !important; }

/* ── Semantic colours stay intact ── */
.text-red-400    { color: #dc2626 !important; }
.text-green-400  { color: #16a34a !important; }
.text-yellow-400 { color: #d97706 !important; }
.bg-red-500      { background: #dc2626 !important; }
.border-red-500\/20 { border-color: #fca5a5 !important; }
.bg-red-500\/10     { background: #fef2f2 !important; }
.border-red-500\/30 { border-color: #fca5a5 !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
