/* ==========================================================================
    Trust Boon platform — core design system and responsive stylesheet
   Architecture: Mobile-First + Distinct Desktop Experiences
   ========================================================================== */

/* 1. CSS Reset & Base Normalization */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
}

/* Alpine x-show must be able to override utility display classes. */
[x-cloak], [x-show][style*="display: none"] {
    display: none !important;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    height: 100%;
    background-color: #e0f2fe;
    background-image: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    background-attachment: fixed;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
}

html.dark body {
    background-color: #090e17;
    background-image: radial-gradient(at 0% 0%, rgba(14, 116, 144, 0.15) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(3, 105, 161, 0.1) 0px, transparent 50%);
    color: #f8fafc;
}

/* 2. Critical SVG & Media Protection (Prevents SVG blowout) */
img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

svg:not([width]):not([height]) {
    width: 1.25rem;
    height: 1.25rem;
}

/* Explicit Dimensions for Utility Sizing */
.w-3 { width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }
.w-7 { width: 1.75rem !important; }
.h-7 { height: 1.75rem !important; }
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-9 { width: 2.25rem !important; }
.h-9 { height: 2.25rem !important; }
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.w-11 { width: 2.75rem !important; }
.h-11 { height: 2.75rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }
.w-24 { width: 6rem !important; }
.h-24 { height: 6rem !important; }
.w-28 { width: 7rem !important; }
.h-28 { height: 7rem !important; }
.w-32 { width: 8rem !important; }
.h-32 { height: 8rem !important; }
.w-36 { width: 9rem !important; }
.h-36 { height: 9rem !important; }
.w-48 { width: 12rem !important; }
.h-48 { height: 12rem !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }
.aspect-square { aspect-ratio: 1 / 1 !important; }
.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }
.shrink-0 { flex-shrink: 0 !important; }

/* 3. Typography Hierarchy */
.text-\[10px\] { font-size: 0.625rem !important; line-height: 0.875rem !important; }
.text-\[11px\] { font-size: 0.6875rem !important; line-height: 1rem !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.5rem !important; }
.text-5xl { font-size: 3rem !important; line-height: 1 !important; }
.text-6xl { font-size: 3.75rem !important; line-height: 1 !important; }

.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }
.uppercase { text-transform: uppercase !important; }
.capitalize { text-transform: capitalize !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.leading-none { line-height: 1 !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* 4. Color Palette Tokens */
/* Brand Blues */
.text-brand-50 { color: #f0f7ff !important; }
.text-brand-100 { color: #e0effe !important; }
.text-brand-500 { color: #0c84eb !important; }
.text-brand-600 { color: #0267c8 !important; }
.text-brand-700 { color: #0252a2 !important; }
.text-brand-800 { color: #064684 !important; }
.text-brand-900 { color: #0a3a6e !important; }

.bg-brand-50 { background-color: #f0f7ff !important; }
.bg-brand-100 { background-color: #e0effe !important; }
.bg-brand-500 { background-color: #0c84eb !important; }
.bg-brand-600 { background-color: #0267c8 !important; }
.bg-brand-700 { background-color: #0252a2 !important; }
.bg-brand-900 { background-color: #0a3a6e !important; }

.border-brand-100 { border-color: #e0effe !important; }
.border-brand-200 { border-color: #b9ddfd !important; }
.border-brand-300 { border-color: #7cc1fb !important; }
.border-brand-500 { border-color: #0c84eb !important; }
.border-brand-600 { border-color: #0267c8 !important; }

/* Slate Scale */
.text-white { color: #ffffff !important; }
.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-900 { color: #0f172a !important; }

.bg-white { background-color: #ffffff !important; }
.bg-slate-50 { background-color: #f8fafc !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-slate-200 { background-color: #e2e8f0 !important; }
.bg-slate-300 { background-color: #cbd5e1 !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-950 { background-color: #020617 !important; }

.border-white { border-color: #ffffff !important; }
.border-slate-100 { border-color: #f1f5f9 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-700 { border-color: #334155 !important; }
.border-slate-800 { border-color: #1e293b !important; }

/* Status Colors (Emerald, Amber, Rose, Purple, Sky) */
.text-emerald-500 { color: #10b981 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #065f46 !important; }
.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.bg-emerald-500 { background-color: #10b981 !important; }
.bg-emerald-600 { background-color: #059669 !important; }
.bg-emerald-700 { background-color: #047857 !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }

.text-amber-500 { color: #f59e0b !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.bg-amber-50 { background-color: #fffbeb !important; }
.bg-amber-100 { background-color: #fef3c7 !important; }
.bg-amber-500 { background-color: #f59e0b !important; }
.border-amber-200 { border-color: #fde68a !important; }

.text-rose-500 { color: #f43f5e !important; }
.text-rose-600 { color: #e11d48 !important; }
.text-rose-700 { color: #be123c !important; }
.text-rose-800 { color: #9f1239 !important; }
.bg-rose-50 { background-color: #fff1f2 !important; }
.bg-rose-100 { background-color: #ffe4e6 !important; }
.bg-rose-600 { background-color: #e11d48 !important; }
.bg-rose-700 { background-color: #be123c !important; }
.border-rose-200 { border-color: #fecdd3 !important; }

.text-purple-400 { color: #c084fc !important; }
.text-purple-600 { color: #9333ea !important; }
.bg-purple-50 { background-color: #faf5ff !important; }
.bg-purple-600 { background-color: #9333ea !important; }
.border-purple-200 { border-color: #e9d5ff !important; }

.text-sky-400 { color: #38bdf8 !important; }
.text-sky-600 { color: #0284c7 !important; }
.text-sky-700 { color: #0369a1 !important; }
.bg-sky-50 { background-color: #f0f9ff !important; }
.border-sky-200 { border-color: #bae6fd !important; }

/* 5. Flexbox & Grid System */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 1 0% !important; }

.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-3 { grid-column: span 3 / span 3 !important; }
.col-span-4 { grid-column: span 4 / span 4 !important; }
.col-span-5 { grid-column: span 5 / span 5 !important; }
.col-span-6 { grid-column: span 6 / span 6 !important; }
.col-span-7 { grid-column: span 7 / span 7 !important; }
.col-span-8 { grid-column: span 8 / span 8 !important; }
.col-span-9 { grid-column: span 9 / span 9 !important; }
.col-span-12 { grid-column: span 12 / span 12 !important; }

/* 6. Spacing Tokens */
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-7 { padding: 1.75rem !important; }
.p-8 { padding: 2rem !important; }
.p-10 { padding: 2.5rem !important; }
.p-12 { padding: 3rem !important; }

.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }

.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 0.75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.pt-8 { padding-top: 2rem !important; }
.pt-12 { padding-top: 3rem !important; }
.pt-16 { padding-top: 4rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 0.75rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-8 { padding-bottom: 2rem !important; }
.pb-12 { padding-bottom: 3rem !important; }
.pb-16 { padding-bottom: 4rem !important; }
.pb-20 { padding-bottom: 5rem !important; }
.pb-24 { padding-bottom: 6rem !important; }

.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mt-16 { margin-top: 4rem !important; }
.mt-20 { margin-top: 5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.-mt-12 { margin-top: -3rem !important; }
.-mt-20 { margin-top: -5rem !important; }
.-mt-24 { margin-top: -6rem !important; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem !important; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem !important; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem !important; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem !important; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem !important; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem !important; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem !important; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem !important; }

/* 7. Borders, Radius & Shadows */
.rounded { border-radius: 0.25rem !important; }
.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 9999px !important; }

.border { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-4 { border-width: 4px !important; }
.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }
.border-b-2 { border-bottom-width: 2px !important; }
.border-l { border-left-width: 1px !important; }
.border-r { border-right-width: 1px !important; }

.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06) !important; }

/* 8. Transitions & Effects */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.duration-200 { transition-duration: 200ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }

.hover\:-translate-y-1:hover { transform: translateY(-0.25rem) !important; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.hover\:bg-brand-700:hover { background-color: #0252a2 !important; }
.hover\:bg-slate-800:hover { background-color: #1e293b !important; }
.hover\:bg-slate-200:hover { background-color: #e2e8f0 !important; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9 !important; }
.hover\:bg-white:hover { background-color: #ffffff !important; }
.hover\:text-brand-600:hover { color: #0267c8 !important; }
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:text-slate-900:hover { color: #0f172a !important; }
.hover\:underline:hover { text-decoration-line: underline !important; }

.cursor-pointer { cursor: pointer !important; }
.select-none { user-select: none !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-85 { opacity: 0.85 !important; }
.opacity-90 { opacity: 0.9 !important; }
.opacity-100 { opacity: 1 !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.admin-user-actions { flex-wrap: nowrap; }
.admin-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #ffffff;
    font-weight: 700;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.admin-action-button:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12); }
.admin-action-button:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.35); outline-offset: 2px; }
.admin-action-button--verify { color: #0369a1; }
.admin-action-button--verify:hover { background: #e0f2fe; border-color: #7dd3fc; }
.admin-action-button--feature,
.admin-action-button--suspend { color: #b45309; }
.admin-action-button--feature:hover,
.admin-action-button--suspend:hover { background: #fef3c7; border-color: #fbbf24; }
.admin-action-button--edit { color: #334155; }
.admin-action-button--edit:hover { background: #f1f5f9; border-color: #94a3b8; }
.admin-action-button--delete { color: #be123c; }
.admin-action-button--delete:hover { background: #fff1f2; border-color: #fb7185; }

.dashboard-leads-header h2 { letter-spacing: -0.02em; }
.dashboard-leads-export { color: #0369a1; background: #f0f9ff; border: 1px solid #bae6fd; box-shadow: 0 4px 14px rgba(14, 165, 233, 0.08); }
.dashboard-leads-export:hover { color: #ffffff; background: #0284c7; border-color: #0284c7; }
.dashboard-leads-tabs { border-color: #e0f2fe !important; }
.dashboard-leads-tab { color: #0369a1; background: #f0f9ff; border: 1px solid #e0f2fe; white-space: nowrap; }
.dashboard-leads-tab:hover { color: #0284c7; background: #e0f2fe; }
.dashboard-leads-tab.is-active { color: #ffffff; background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); box-shadow: 0 5px 14px rgba(2, 132, 199, 0.25); }
.dashboard-leads-tab-count { background: #e0f2fe; color: #0369a1; }
.dashboard-leads-tab.is-active .dashboard-leads-tab-count { background: rgba(255,255,255,.25); color: #ffffff; }
.lead-contact-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 2.35rem; height: 2.25rem; padding: 0 .7rem; border-radius: .7rem; font-size: .7rem; font-weight: 800; transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.lead-contact-button:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(22,54,92,.12); }
.lead-contact-button--whatsapp { color: #ffffff; background: #25D366; border: 1px solid #20bd5a; }
.lead-contact-button--whatsapp:hover { color: #ffffff; background: #20bd5a; }
.lead-whatsapp-icon { flex: 0 0 auto; }
.lead-contact-button--call { color: #0369a1; background: #f0f9ff; border: 1px solid #bae6fd; }
.lead-contact-button--call:hover { color: #ffffff; background: #0284c7; border-color: #0284c7; }
html.dark .dashboard-leads-export,
html.dark .dashboard-leads-tab { color: #c9e6fb; background: #111c2e; border-color: #29415f; }
html.dark .dashboard-leads-export:hover,
html.dark .dashboard-leads-tab:hover { color: #7dd3fc; background: #1a3047; }
html.dark .dashboard-leads-tabs { border-color: #29415f !important; }
html.dark .dashboard-leads-tab-count { background: #1e344d; color: #b6c5d8; }
html.dark .dashboard-leads-tab.is-active { color: #ffffff; background: #075985; border-color: #075985; }
html.dark .lead-contact-button--whatsapp { color: #ffffff; background: #25D366; border-color: #20bd5a; }
html.dark .lead-contact-button--whatsapp:hover { color: #ffffff; background: #20bd5a; }
html.dark .lead-contact-button--call { color: #bae6fd; background: #123554; border-color: #2d6794; }
html.dark .lead-contact-button--call:hover { color: #ffffff; background: #075985; }

@media (max-width: 767px) {
    .lead-contact-button { width: 3rem; height: 3rem; padding: 0; border-radius: .85rem; }
    .lead-contact-button span { display: none; }
    .lead-contact-button--whatsapp { color: #ffffff; background: #25D366; border-color: #20bd5a; }
    .lead-contact-button--whatsapp:hover { color: #ffffff; background: #20bd5a; }
    .lead-whatsapp-icon { width: 1.6rem !important; height: 1.6rem !important; }
}

.dashboard-leads-table { border-color: #e0f2fe !important; box-shadow: 0 4px 20px rgba(14, 165, 233, 0.04) !important; }
.dashboard-leads-table thead { background: #f0f9ff !important; color: #0369a1 !important; }
.dashboard-lead-row:hover { background: #f0f9ff !important; }
html.dark .dashboard-leads-table { border-color: #1e293b !important; background: #0f172a !important; box-shadow: none !important; }
html.dark .dashboard-leads-table thead { background: #1e293b !important; }
html.dark .dashboard-lead-row:hover { background: #1e293b/50 !important; }

.dashboard-topbar {
    border-color: #e0f2fe !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.04);
}

.dashboard-home { max-width: 1440px; margin: 0 auto; }

.dashboard-metric-card,
.dashboard-panel {
    border-color: #e0f2fe !important;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.05) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dashboard-metric-card:hover,
.dashboard-panel:hover {
    border-color: #7dd3fc !important;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12) !important;
}

.dashboard-metric-card:hover { transform: translateY(-2px); }

html.dark .dashboard-topbar { border-color: #1e293b !important; background: #111827 !important; box-shadow: none; }
html.dark .dashboard-metric-card,
html.dark .dashboard-panel { border-color: #29415f !important; box-shadow: 0 16px 34px rgba(2, 8, 23, 0.24) !important; }
html.dark .dashboard-metric-card:hover,
html.dark .dashboard-panel:hover { border-color: #4b9cda !important; }

.dashboard-profile-promotion {
    background: linear-gradient(110deg, #eaf4ff 0%, #f8fbff 58%, #ffffff 100%);
    border-color: #cfe2f5;
    color: #12233f;
    box-shadow: 0 12px 28px rgba(22, 54, 92, 0.07);
}
.dashboard-profile-promotion > div:first-child > span,
.dashboard-profile-promotion > div:first-child p { color: #58708d; }
.dashboard-profile-promotion-dot { width: .5rem; height: .5rem; border-radius: 9999px; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.dashboard-profile-url { color: #075985; background: #ffffff; border: 1px solid #cfe2f5; }
.dashboard-profile-primary { color: #ffffff; background: #0267c8; box-shadow: 0 5px 12px rgba(2,103,200,.18); }
.dashboard-profile-primary:hover { background: #0252a2; }
.dashboard-profile-secondary { color: #16446d; background: #dceeff; }
.dashboard-profile-secondary:hover { color: #0f3555; background: #c7e3fb; }
html.dark .dashboard-profile-promotion { background: linear-gradient(110deg, #142b47 0%, #111c2e 62%, #0f172a 100%); border-color: #29415f; color: #f8fafc; box-shadow: 0 16px 34px rgba(2,8,23,.24); }
html.dark .dashboard-profile-promotion > div:first-child > span,
html.dark .dashboard-profile-promotion > div:first-child p { color: #b6c5d8; }
html.dark .dashboard-profile-url { color: #bae6fd; background: #0f1d31; border-color: #345574; }
html.dark .dashboard-profile-secondary { color: #dbeafe; background: #1e3d5c; }
html.dark .dashboard-profile-secondary:hover { background: #294f73; }

.notification-bell { display: inline-flex; align-items: center; justify-content: center; }
.notification-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.625rem;
    line-height: 1;
    font-weight: 800;
}
.notification-badge--mobile { top: -0.1rem; right: 0.65rem; }
.notification-badge--inquiry { top: 0.05rem; right: 0.2rem; }
html.dark .notification-badge { border-color: #111827; }

.dashboard-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    min-height: 4.5rem;
    padding: 0.45rem 0.5rem max(0.45rem, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #dce7f2;
    box-shadow: 0 -8px 24px rgba(22, 54, 92, 0.1);
    backdrop-filter: blur(16px);
}

.dashboard-mobile-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #6b8098;
    font-size: 0.65rem;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-mobile-nav-item:hover,
.dashboard-mobile-nav-item:focus-visible {
    color: #0267c8;
}

.dashboard-mobile-nav-item--primary { margin-top: -1.1rem; }
.dashboard-mobile-nav-primary-icon {
    display: flex;
    width: 3.1rem;
    height: 3.1rem;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0267c8, #0c84eb);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(2, 103, 200, 0.28);
}

.dashboard-mobile-nav-primary-icon--inquiry { background: #059669; }

html.dark .dashboard-mobile-nav {
    background: rgba(15, 23, 42, 0.97);
    border-top-color: #29415f;
    box-shadow: 0 -8px 24px rgba(2, 8, 23, 0.35);
}

html.dark .dashboard-mobile-nav-item { color: #b6c5d8; }
html.dark .dashboard-mobile-nav-item:hover,
html.dark .dashboard-mobile-nav-item:focus-visible { color: #7dd3fc; }
html.dark .dashboard-mobile-nav-primary-icon { border-color: #0f172a; }

/* Light mode refinement: quiet blue-gray canvas, crisp white surfaces, premium elevation. */
html:not(.dark) body {
    background: linear-gradient(135deg, #72d5e7 0%, #4aa9e3 52%, #5279e5 100%) !important;
    color: #12233f !important;
}

html:not(.dark) main,
html:not(.dark) .min-h-screen {
    background: linear-gradient(180deg, #72d5e7 0%, #5279e5 100%) !important;
}

html:not(.dark) .dashboard-sidebar + div,
html:not(.dark) .admin-sidebar + div {
    background: #e8fbfa !important;
}

html:not(.dark) .site-header {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom-color: #dce7f2 !important;
    box-shadow: 0 4px 18px rgba(22, 54, 92, 0.05);
}

html:not(.dark) .site-header-brand {
    color: #082f49 !important;
}

html.dark .site-header-brand {
    color: #ffffff !important;
}

html:not(.dark) .bg-white {
    background-color: #ffffff !important;
}

html:not(.dark) .border-slate-100,
html:not(.dark) .border-slate-200,
html:not(.dark) .border-slate-200\/80,
html:not(.dark) .border-slate-200\/90 {
    border-color: #7dd3fc !important;
}

html:not(.dark) .border-slate-300,
html:not(.dark) .border-gray-200,
html:not(.dark) .border-gray-300 {
    border-color: #7dd3fc !important;
}

html:not(.dark) [class*="border-slate-100"],
html:not(.dark) [class*="border-slate-200"],
html:not(.dark) [class*="border-slate-300"],
html:not(.dark) [class*="border-gray-200"],
html:not(.dark) [class*="border-gray-300"] {
    border-color: #7dd3fc !important;
}

html:not(.dark) .shadow-sm {
    box-shadow: 0 4px 16px rgba(22, 54, 92, 0.06) !important;
}

html:not(.dark) .shadow-xl {
    box-shadow: 0 18px 42px rgba(22, 54, 92, 0.1) !important;
}

html:not(.dark) .shadow-2xl {
    box-shadow: 0 24px 56px rgba(22, 54, 92, 0.13) !important;
}

html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
    background: #ffffff !important;
    border-color: #cbdbea !important;
    color: #12233f !important;
}

html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
    border-color: #36a1f8 !important;
    box-shadow: 0 0 0 3px rgba(54, 161, 248, 0.14) !important;
}

html:not(.dark) .bg-slate-50 {
    background-color: #eef5ff !important;
}

html:not(.dark) .bg-slate-100 {
    background-color: #e5f0fc !important;
}

html:not(.dark) .text-slate-900 {
    color: #12233f !important;
}

html:not(.dark) .text-slate-600 {
    color: #526781 !important;
}

html:not(.dark) .text-slate-500 {
    color: #6b8098 !important;
}

.premium-profile-page { color: #0f172a; }
.premium-profile-hero {
    border-color: #dbe7f3;
    box-shadow: 0 22px 50px rgba(15, 45, 80, 0.1);
}
.premium-profile-name { color: #0f172a; }
.premium-profile-headline { color: #0267c8; }
.premium-profile-call { color: #ffffff; background: #0f172a; }
.premium-profile-call:hover { background: #1e3a5f; }
.premium-profile-whatsapp { color: #ffffff; background: #059669; }
.premium-profile-whatsapp:hover { background: #047857; }
.premium-profile-message { color: #0267c8; background: #edf6ff; }
.premium-profile-message:hover { color: #ffffff; background: #0267c8; }
.premium-profile-inquiry { color: #1e3a5f; background: #eaf2fa; }
.premium-profile-inquiry:hover { color: #0f172a; background: #dbeafe; }
.premium-profile-favorite { color: #64748b; border-color: #dbe7f3; background: #ffffff; }
.premium-profile-favorite:hover,
.premium-profile-favorite.is-favorited { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.premium-profile-tabs { border-color: #dbe7f3; }
.premium-profile-panel { border-color: #dbe7f3; box-shadow: 0 12px 30px rgba(15, 45, 80, 0.06); }

html.dark .premium-profile-page { color: #f8fafc; background: #0b1220 !important; }
html.dark .premium-profile-hero,
html.dark .premium-profile-panel { background: #111c2e; border-color: #29415f; }
html.dark .premium-profile-name { color: #f8fafc; }
html.dark .premium-profile-headline { color: #7dd3fc; }
html.dark .premium-profile-call { background: #1e293b; }
html.dark .premium-profile-call:hover { background: #334155; }
html.dark .premium-profile-message { color: #bae6fd; background: #123554; }
html.dark .premium-profile-message:hover { color: #ffffff; background: #075985; }
html.dark .premium-profile-inquiry { color: #dbeafe; background: #1e344d; }
html.dark .premium-profile-inquiry:hover { background: #294766; }
html.dark .premium-profile-favorite { color: #b6c5d8; border-color: #3b536f; background: #111c2e; }
html.dark .premium-profile-favorite:hover,
html.dark .premium-profile-favorite.is-favorited { color: #fda4af; background: #3b1724; border-color: #7f3049; }
html.dark .premium-profile-tabs { border-color: #29415f; }

.featured-profile-card {
    border: 2px solid #0284c7;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(15, 45, 80, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.featured-profile-card:hover {
    transform: translateY(-4px);
    border-color: #0369a1;
    box-shadow: 0 24px 48px rgba(2, 103, 200, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.featured-profile-cover {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}

.featured-profile-badge,
.featured-profile-status {
    color: #ffffff;
    background: rgba(7, 37, 74, 0.78);
    border-color: rgba(255, 255, 255, 0.24);
}

.featured-profile-avatar {
    border-color: #ffffff;
}

.featured-profile-rating {
    color: #92400e;
    background: #fff8e1;
    border: 1px solid #f5d88a;
}

.featured-profile-name { color: #0f172a; }
.featured-profile-headline { color: #0267c8; }
.featured-profile-location { color: #64748b; }
.featured-profile-bio { color: #475569; }
.featured-profile-verified { color: #0369a1; background: #eff8ff; border-color: #b9ddfd; }
.featured-profile-tag { color: #1e4b73; background: #edf5fc; border: 1px solid #d7e7f5; }
.featured-profile-cta { color: #ffffff; background: #0267c8; }
.featured-profile-cta:hover { color: #ffffff; background: #0252a2; }

html.dark .featured-profile-card {
    background: rgba(17, 28, 46, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-color: #29415f;
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.28);
}

html.dark .featured-profile-card:hover {
    border-color: #4b9cda;
    box-shadow: 0 22px 42px rgba(2, 103, 200, 0.2);
}

html.dark .featured-profile-avatar { border-color: #111c2e; }
html.dark .featured-profile-rating { color: #fde68a; background: #3b2b0c; border-color: #76551b; }
html.dark .featured-profile-name { color: #f8fafc; }
html.dark .featured-profile-headline { color: #7dd3fc; }
html.dark .featured-profile-location { color: #b6c5d8; }
html.dark .featured-profile-bio { color: #cbd5e1; }
html.dark .featured-profile-verified { color: #bae6fd; background: #123554; border-color: #2d6794; }
html.dark .featured-profile-tag { color: #c9e6fb; background: #1a3047; border-color: #2e4c69; }
html.dark .featured-profile-cta { color: #ffffff; background: #0c84eb; }
html.dark .featured-profile-cta:hover { background: #38a1f8; }

.site-footer {
    background: #e0f2fe;
    color: #475569;
    border-top: 1px solid #bae6fd;
}

.site-footer .site-footer-grid {
    border-bottom-color: #bae6fd !important;
}

.site-footer .site-footer-brand,
.site-footer h3 {
    color: #082f49;
}

.site-footer p,
.site-footer li,
.site-footer span {
    color: #1e4b73;
}

.site-footer a {
    color: #475569;
}

.site-footer a:hover {
    color: #0267c8 !important;
}

.site-footer .text-sky-400 {
    color: #0369a1 !important;
}

.site-footer-meta {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.site-footer-copyright {
    color: #64748b;
    line-height: 1.5;
}

.site-footer-meta-links {
    color: #475569;
}

.site-footer-meta-links a {
    color: #475569;
    font-weight: 600;
    transition: color 150ms ease;
}

.site-footer-meta-links a:hover {
    color: #0267c8 !important;
}

html.dark .site-footer-meta {
    border-top-color: #1e293b;
}

html.dark .site-footer-copyright,
html.dark .site-footer-meta-links,
html.dark .site-footer-meta-links a {
    color: #b6c5d8;
}

html.dark .site-footer-meta-links a:hover {
    color: #7dd3fc !important;
}

.home-growth-section {
    background: #eef6ff;
    color: #0f172a;
}

.home-growth-heading,
.home-growth-card-heading {
    color: #0f172a;
}

.home-growth-copy,
.home-growth-card-copy {
    color: #475569;
}

.home-growth-cta {
    color: #0f172a;
    background: #ffffff;
}

.home-growth-cta:hover {
    background: #dbeafe;
}

.home-growth-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: #cbdff5;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

html.dark .home-growth-section {
    background: #0f1d31;
    color: #f8fafc;
}

html.dark .home-growth-heading,
html.dark .home-growth-card-heading {
    color: #f8fafc;
}

html.dark .home-growth-copy,
html.dark .home-growth-card-copy {
    color: #b6c5d8;
}

html.dark .home-growth-cta {
    color: #0f172a;
    background: #f8fafc;
}

html.dark .home-growth-cta:hover {
    background: #dbeafe;
}

html.dark .home-growth-card {
    background: rgba(30, 45, 66, 0.86);
    border-color: #334b68;
    box-shadow: 0 16px 32px rgba(2, 8, 23, 0.24);
}

html.dark .site-footer {
    background: #0f172a;
    color: #cbd5e1;
    border-top-color: #1e293b;
}

html.dark .site-footer .site-footer-grid {
    border-bottom-color: #1e293b !important;
}

html.dark .site-footer .site-footer-brand,
html.dark .site-footer h3 {
    color: #f8fafc;
}

html.dark .site-footer p,
html.dark .site-footer li,
html.dark .site-footer span,
html.dark .site-footer a {
    color: #cbd5e1;
}

html.dark .site-footer a:hover {
    color: #7dd3fc !important;
}

html.dark .site-footer .text-sky-400 {
    color: #7dd3fc !important;
}

html.dark .admin-action-button { border-color: #475569; background: #111827; }
html.dark .admin-action-button--verify { color: #7dd3fc; }
html.dark .admin-action-button--verify:hover { background: #0c4a6e; border-color: #38bdf8; }
html.dark .admin-action-button--feature,
html.dark .admin-action-button--suspend { color: #fcd34d; }
html.dark .admin-action-button--feature:hover,
html.dark .admin-action-button--suspend:hover { background: #78350f; border-color: #f59e0b; }
html.dark .admin-action-button--edit { color: #cbd5e1; }
html.dark .admin-action-button--edit:hover { background: #1e293b; border-color: #64748b; }
html.dark .admin-action-button--delete { color: #fda4af; }
html.dark .admin-action-button--delete:hover { background: #881337; border-color: #fb7185; }

/* Trust Boon product palette: blue and white for actions, status colors for meaning. */
.text-purple-400,
.text-purple-600,
.text-purple-700 { color: #0267c8 !important; }

.bg-purple-50 { background-color: #f0f7ff !important; }
.bg-purple-500,
.bg-purple-600,
.bg-purple-700 { background-color: #0267c8 !important; }
.border-purple-200 { border-color: #b9ddfd !important; }

.hover\:bg-purple-50:hover { background-color: #f0f7ff !important; }
.hover\:bg-purple-700:hover,
.hover\:bg-purple-900\/60:hover { background-color: #0252a2 !important; }
.hover\:text-purple-600:hover { color: #0267c8 !important; }

.bg-purple-950\/60 { background-color: rgba(7, 37, 74, 0.72) !important; }
.border-purple-800\/60 { border-color: rgba(6, 70, 132, 0.72) !important; }
.shadow-purple-500\/20,
.shadow-purple-500\/25,
.shadow-purple-600\/30 { box-shadow: 0 10px 24px rgba(2, 103, 200, 0.2) !important; }

html.dark .text-purple-400,
html.dark .text-purple-600,
html.dark .text-purple-700 { color: #7dd3fc !important; }

html.dark .bg-purple-50 { background-color: #172554 !important; }
html.dark .bg-purple-500,
html.dark .bg-purple-600,
html.dark .bg-purple-700 { background-color: #075985 !important; }
html.dark .border-purple-200 { border-color: #1e4f76 !important; }
html.dark .hover\:bg-purple-50:hover { background-color: #1e293b !important; }
html.dark .hover\:bg-purple-700:hover,
html.dark .hover\:bg-purple-900\/60:hover { background-color: #0c4a6e !important; }
html.dark .bg-purple-950\/60 { background-color: rgba(7, 37, 74, 0.82) !important; }
html.dark .border-purple-800\/60 { border-color: #1e4f76 !important; }

/* 9. Layout Containers */
.max-w-xs { max-width: 20rem !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.max-w-6xl { max-width: 72rem !important; }
.max-w-7xl { max-width: 80rem !important; }

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.inset-0 { inset: 0px !important; }
.top-0 { top: 0px !important; }
.bottom-0 { bottom: 0px !important; }
.left-0 { left: 0px !important; }
.right-0 { right: 0px !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Backdrop Blur */
.backdrop-blur-sm { backdrop-filter: blur(4px) !important; -webkit-backdrop-filter: blur(4px) !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
.backdrop-blur-lg { backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important; }

/* Custom Gradient Backgrounds */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)) !important; }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important; }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)) !important; }
.from-brand-600 { --tw-gradient-from: #0267c8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(2, 103, 200, 0)); }
.to-sky-400 { --tw-gradient-to: #38bdf8; }
.from-slate-950\/80 { --tw-gradient-from: rgba(2, 6, 23, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(2, 6, 23, 0)); }
.via-slate-900\/30 { --tw-gradient-stops: var(--tw-gradient-from), rgba(15, 23, 42, 0.3), var(--tw-gradient-to, rgba(15, 23, 42, 0)); }
.to-transparent { --tw-gradient-to: transparent; }

/* Interactive Form Inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], select, textarea {
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
    border-color: #0267c8 !important;
    box-shadow: 0 0 0 3px rgba(2, 103, 200, 0.15) !important;
}

/* ==========================================================================
   10. DISTINCT MOBILE VIEW STYLING (Phones & Tablets <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout Overrides */
    body {
        padding-bottom: 4.5rem !important; /* Reserve room for mobile bottom bar */
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile Header App Bar */
    .mobile-app-header {
        position: sticky;
        top: 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #e2e8f0;
    }

    /* Mobile Fixed Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        height: 4.25rem;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 16px -2px rgba(15, 23, 42, 0.08);
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        align-items: center;
        padding: 0 0.5rem;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.35rem 0.25rem;
        color: #64748b;
        text-decoration: none;
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        transition: color 0.15s ease;
    }

    .mobile-nav-item.active, .mobile-nav-item:hover {
        color: #0267c8;
    }

    .mobile-nav-item svg {
        width: 1.35rem !important;
        height: 1.35rem !important;
        margin-bottom: 0.2rem;
    }

    .mobile-nav-item-highlight {
        position: relative;
        top: -0.65rem;
    }

    .mobile-nav-item-highlight-btn {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 9999px;
        background: linear-gradient(135deg, #0267c8 0%, #0c84eb 100%);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px -2px rgba(2, 103, 200, 0.45);
        border: 3px solid #ffffff;
    }

    /* Mobile Horizontal Snap Trays for Categories */
    .mobile-horizontal-scroll {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding: 0.5rem 0;
        scrollbar-width: none; /* Firefox */
    }

    .mobile-horizontal-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .mobile-horizontal-scroll > * {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Mobile Sticky Profile Action Bar */
    .mobile-profile-sticky-cta {
        position: fixed;
        bottom: 4.25rem;
        left: 0;
        right: 0;
        z-index: 45;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid #e2e8f0;
        padding: 0.65rem 1rem;
        display: flex;
        gap: 0.5rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    }

    /* Mobile Hero Layout */
    .mobile-hero-stack {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
        text-align: center;
    }

    .mobile-hero-title {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }

    /* Single-column adjustments */
    .sm\:grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
}

/* ==========================================================================
   11. DISTINCT DESKTOP VIEW STYLING (Screens >= 769px)
   ========================================================================== */
@media (min-width: 769px) {
    .max-w-7xl {
        max-width: none !important;
    }

    .desktop-only {
        display: block !important;
    }

    .mobile-only, .mobile-bottom-nav, .mobile-profile-sticky-cta {
        display: none !important;
    }

    /* Desktop Navigation Header */
    .desktop-navbar {
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.85);
        box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
    }

    /* Multi-column grid rules for tablets and desktops */
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }

    .md\:flex-row { flex-direction: row !important; }
    .md\:items-center { align-items: center !important; }
    .md\:justify-between { justify-content: space-between !important; }
    .md\:block { display: block !important; }
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .lg\:block { display: block !important; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }

    /* Desktop Hover Lift Micro-Interactions */
    .desktop-card-hover {
        transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease;
    }

    .desktop-card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(2, 103, 200, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
        border-color: #b9ddfd !important;
    }

    /* Desktop Sticky Sidebar */
    .desktop-sticky-sidebar {
        position: sticky;
        top: 6rem;
    }
}

/* ==========================================================================
   12. PERSISTENT LIGHT / DARK THEME
   ========================================================================== */
html.dark {
    color-scheme: dark;
}

html.dark body {
    background-color: #0b1220 !important;
    color: #e2e8f0 !important;
}

html.dark .bg-white,
html.dark .bg-white\/95,
html.dark .bg-white\/90,
html.dark .bg-white\/80 {
    background-color: #111827 !important;
}

html.dark .bg-slate-50\/50,
html.dark .bg-slate-100\/70 {
    background-color: #172033 !important;
}

html.dark .bg-slate-50 {
    background-color: #0f172a !important;
}

html.dark .bg-slate-100 {
    background-color: #111827 !important;
}

html.dark .bg-slate-200 {
    background-color: #1e293b !important;
}

html.dark .text-slate-900,
html.dark .text-slate-800 {
    color: #f1f5f9 !important;
}

html.dark .text-slate-700 {
    color: #cbd5e1 !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500 {
    color: #94a3b8 !important;
}

html.dark .text-slate-400 {
    color: #94a3b8 !important;
}

html.dark .text-emerald-800,
html.dark .text-rose-800,
html.dark .text-amber-800,
html.dark .text-sky-800 {
    color: #f8fafc !important;
}

html.dark .text-rose-700 {
    color: #fecdd3 !important;
}

html.dark .text-amber-700 {
    color: #fde68a !important;
}

html.dark .text-slate-500 {
    color: #cbd5e1 !important;
}

html.dark .text-slate-300 {
    color: #cbd5e1 !important;
}

html.dark .text-brand-500,
html.dark .text-brand-600,
html.dark .text-brand-700,
html.dark .text-brand-800,
html.dark .text-brand-900 {
    color: #7dd3fc !important;
}

html.dark .text-emerald-500,
html.dark .text-emerald-600,
html.dark .text-emerald-700 {
    color: #6ee7b7 !important;
}

html.dark .text-amber-500,
html.dark .text-amber-600 {
    color: #fcd34d !important;
}

html.dark .text-rose-500,
html.dark .text-rose-600 {
    color: #fda4af !important;
}

html.dark .text-purple-400,
html.dark .text-purple-600 {
    color: #d8b4fe !important;
}

html.dark .text-sky-400,
html.dark .text-sky-600,
html.dark .text-sky-700 {
    color: #7dd3fc !important;
}

html.dark .border-slate-100,
html.dark .border-slate-200 {
    border-color: #334155 !important;
}

html.dark .border-slate-300 {
    border-color: #475569 !important;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #334155 !important;
}

html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-100:hover {
    background-color: #1e293b !important;
}

html.dark input,
html.dark select,
html.dark textarea {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}

html.dark .bg-brand-50 {
    background-color: #172554 !important;
}

.mobile-menu-link {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    transition: color 150ms ease, background-color 150ms ease;
}

.mobile-menu-link:hover {
    background-color: #f0f7ff;
    color: #0267c8;
}

.mobile-menu-link-active {
    background-color: #0267c8;
    color: #ffffff !important;
}

html.dark .mobile-menu-link {
    color: #f1f5f9;
}

html.dark .mobile-menu-link:hover {
    background-color: #1e293b;
    color: #bae6fd;
}

html.dark .mobile-menu-link-active {
    background-color: #075985;
    color: #ffffff !important;
    box-shadow: inset 4px 0 0 #7dd3fc;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 3rem !important;
        padding: 3rem 0 6rem !important;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2rem 1.25rem !important;
        padding-bottom: 2rem !important;
    }

    .site-footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .site-footer-grid > :first-child > div:first-child {
        gap: 0.75rem !important;
    }

    .site-footer-grid > :first-child .text-2xl {
        font-size: 1.375rem !important;
    }

    .site-footer-grid > :first-child p {
        max-width: 34rem !important;
        font-size: 0.8125rem !important;
        line-height: 1.6 !important;
    }

    .site-footer-grid h3 {
        margin-bottom: 0.75rem !important;
        font-size: 0.6875rem !important;
        letter-spacing: 0.08em !important;
    }

    .site-footer-grid ul {
        display: grid;
        gap: 0.5rem !important;
    }

    .site-footer-grid ul li,
    .site-footer-grid ul a,
    .site-footer-grid ul span {
        font-size: 0.8125rem !important;
        line-height: 1.35 !important;
    }

    .site-footer > div > div:last-child {
        align-items: flex-start !important;
        gap: 1rem !important;
        padding-top: 1.25rem !important;
    }

    .site-footer > div > div:last-child p {
        max-width: 20rem;
        line-height: 1.5;
    }

    .site-footer > div > div:last-child > div {
        flex-wrap: wrap;
        gap: 0.75rem 1rem !important;
    }
}

html.dark .hover\:bg-brand-50:hover,
html.dark .bg-brand-50 {
    color: #bae6fd !important;
}

html.dark .home-hero {
    background-image: linear-gradient(to bottom, #0b1220, #111c32 52%, #0f172a) !important;
}

html.dark .home-hero .bg-gradient-to-tr {
    opacity: 0.14 !important;
}

html.dark .home-hero .text-slate-600 {
    color: #cbd5e1 !important;
}

html.dark .home-hero .text-slate-400 {
    color: #94a3b8 !important;
}

html.dark .bg-emerald-50 {
    background-color: #052e2a !important;
}

html.dark .bg-emerald-100 {
    background-color: #064e3b !important;
}

html.dark .bg-rose-100 {
    background-color: #881337 !important;
}

html.dark .bg-amber-100 {
    background-color: #78350f !important;
}

html.dark .bg-sky-100 {
    background-color: #0c4a6e !important;
}

html.dark .bg-rose-50 {
    background-color: #3b1018 !important;
}

html.dark .bg-amber-50 {
    background-color: #3b2606 !important;
}

html.dark .bg-sky-50 {
    background-color: #082f49 !important;
}

html.dark .bg-purple-50 {
    background-color: #2e1065 !important;
}

html.dark table thead {
    background-color: #172033 !important;
}

html.dark table tbody tr:hover {
    background-color: #172033 !important;
}

html.dark .shadow-sm,
html.dark .shadow-xl,
html.dark .shadow-2xl {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
}

html.dark .text-brand-600 {
    color: #60a5fa !important;
}

.profile-bio h1,
.profile-bio h2,
.profile-bio h3,
.profile-bio h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-bio h1 { font-size: 1.5rem; }
.profile-bio h2 { font-size: 1.25rem; }
.profile-bio h3 { font-size: 1.125rem; }

.profile-bio p,
.profile-bio ul,
.profile-bio ol {
    margin-bottom: 0.75rem;
}

.profile-bio ul,
.profile-bio ol {
    padding-left: 1.25rem;
}

.profile-bio ul { list-style: disc; }
.profile-bio ol { list-style: decimal; }

html.dark .profile-bio h1,
html.dark .profile-bio h2,
html.dark .profile-bio h3,
html.dark .profile-bio h4 {
    color: #f1f5f9;
}

.theme-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

html.dark .theme-toggle {
    border-color: #475569;
    background: #1e293b;
    color: #fbbf24;
}

@media (max-width: 768px) {
    .theme-toggle {
        right: 0.75rem;
        bottom: 5.75rem;
    }
}

/* ==========================================================================
   Sky Blue Light Mode & Executive Polish Enhancements
   ========================================================================== */

/* Luminous sky selection */
::selection {
    background-color: #38bdf8;
    color: #ffffff;
}

/* Light mode card glow with subtle sky-tinted ambient border */
body:not(.dark) .dashboard-leads-page .bg-white,
body:not(.dark) .dashboard-panel {
    border-color: rgba(224, 242, 254, 0.95);
    box-shadow: 0 4px 20px -2px rgba(186, 230, 253, 0.28), 0 2px 6px -1px rgba(14, 165, 233, 0.04);
}

html:not(.dark) .bg-white.rounded-3xl,
html:not(.dark) .bg-white.rounded-2xl,
html:not(.dark) .dashboard-metric-card,
html:not(.dark) .dashboard-panel,
html:not(.dark) .premium-profile-hero,
html:not(.dark) .premium-profile-panel,
html:not(.dark) .featured-profile-card,
html:not(.dark) .home-growth-card {
    border: 2px solid #0284c7 !important;
}

/* Sky focus rings for inputs */
input:focus, select:focus, textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Executive sky blue scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f9ff;
}
::-webkit-scrollbar-thumb {
    background: #bae6fd;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7dd3fc;
}

html.dark ::-webkit-scrollbar-track {
    background: #090e17;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #1e293b;
}
html.dark ::-webkit-scrollbar-thumb:hover {
    background: #334155;
}
