/* ============================================================
   XcelGreen Style Guide - Utility & Component Classes
   ============================================================
   Purpose: Centralized CSS to eliminate all inline styles.
   Naming: u-{property}-{value} for utilities
   Usage: Replace style="..." with class="u-..." combinations
   ============================================================ */

/* ============================================================
   1. DISPLAY UTILITIES
   ============================================================ */
.u-block { display: block; }
.u-inline { display: inline; }
.u-inline-block { display: inline-block; }
.u-inline-flex { display: inline-flex; }
.u-none { display: none; }
.u-table { display: table; }
.u-table-cell { display: table-cell; }
.u-contents { display: contents; }

/* ============================================================
   2. FLEXBOX UTILITIES (supplements main.css)
   ============================================================ */
.u-flex { display: flex; }
.u-flex-col { flex-direction: column; }
.u-flex-row { flex-direction: row; }
.u-flex-wrap { flex-wrap: wrap; }
.u-flex-nowrap { flex-wrap: nowrap; }
.u-flex-1 { flex: 1; }
.u-flex-auto { flex: auto; }
.u-flex-none { flex: none; }
.u-flex-grow { flex-grow: 1; }
.u-flex-shrink-0 { flex-shrink: 0; }

.u-items-center { align-items: center; }
.u-items-start { align-items: flex-start; }
.u-items-end { align-items: flex-end; }
.u-items-stretch { align-items: stretch; }
.u-items-baseline { align-items: baseline; }

.u-justify-center { justify-content: center; }
.u-justify-between { justify-content: space-between; }
.u-justify-start { justify-content: flex-start; }
.u-justify-end { justify-content: flex-end; }
.u-justify-around { justify-content: space-around; }
.u-justify-evenly { justify-content: space-evenly; }

.u-self-start { align-self: flex-start; }
.u-self-center { align-self: center; }
.u-self-end { align-self: flex-end; }
.u-self-stretch { align-self: stretch; }

/* ============================================================
   3. GAP UTILITIES
   ============================================================ */
.u-gap-0 { gap: 0; }
.u-gap-1 { gap: 0.25rem; }
.u-gap-2 { gap: 0.5rem; }
.u-gap-3 { gap: 0.75rem; }
.u-gap-4 { gap: 1rem; }
.u-gap-5 { gap: 1.25rem; }
.u-gap-6 { gap: 1.5rem; }
.u-gap-8 { gap: 2rem; }
.u-gap-10 { gap: 2.5rem; }
.u-gap-12 { gap: 3rem; }

/* ============================================================
   4. MARGIN UTILITIES
   ============================================================ */
.u-m-0 { margin: 0; }
.u-m-1 { margin: 0.25rem; }
.u-m-2 { margin: 0.5rem; }
.u-m-3 { margin: 0.75rem; }
.u-m-4 { margin: 1rem; }
.u-m-auto { margin: auto; }

.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: 0.25rem; }
.u-mt-2 { margin-top: 0.5rem; }
.u-mt-3 { margin-top: 0.75rem; }
.u-mt-4 { margin-top: 1rem; }
.u-mt-5 { margin-top: 1.25rem; }
.u-mt-6 { margin-top: 1.5rem; }
.u-mt-8 { margin-top: 2rem; }

.u-mb-0 { margin-bottom: 0; }
.u-mb-1 { margin-bottom: 0.25rem; }
.u-mb-2 { margin-bottom: 0.5rem; }
.u-mb-3 { margin-bottom: 0.75rem; }
.u-mb-4 { margin-bottom: 1rem; }
.u-mb-5 { margin-bottom: 1.25rem; }
.u-mb-6 { margin-bottom: 1.5rem; }
.u-mb-8 { margin-bottom: 2rem; }
.u-mb-10 { margin-bottom: 2.5rem; }
.u-mb-12 { margin-bottom: 3rem; }

.u-ml-0 { margin-left: 0; }
.u-ml-1 { margin-left: 0.25rem; }
.u-ml-2 { margin-left: 0.5rem; }
.u-ml-3 { margin-left: 0.75rem; }
.u-ml-4 { margin-left: 1rem; }
.u-ml-auto { margin-left: auto; }

.u-mr-0 { margin-right: 0; }
.u-mr-1 { margin-right: 0.25rem; }
.u-mr-2 { margin-right: 0.5rem; }
.u-mr-3 { margin-right: 0.75rem; }
.u-mr-4 { margin-right: 1rem; }
.u-mr-auto { margin-right: auto; }

.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-my-0 { margin-top: 0; margin-bottom: 0; }
.u-my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.u-my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.u-my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.u-my-8 { margin-top: 2rem; margin-bottom: 2rem; }

/* ============================================================
   5. PADDING UTILITIES
   ============================================================ */
.u-p-0 { padding: 0; }
.u-p-1 { padding: 0.25rem; }
.u-p-2 { padding: 0.5rem; }
.u-p-3 { padding: 0.75rem; }
.u-p-4 { padding: 1rem; }
.u-p-5 { padding: 1.25rem; }
.u-p-6 { padding: 1.5rem; }
.u-p-8 { padding: 2rem; }
.u-p-10 { padding: 2.5rem; }

.u-pt-0 { padding-top: 0; }
.u-pt-2 { padding-top: 0.5rem; }
.u-pt-3 { padding-top: 0.75rem; }
.u-pt-4 { padding-top: 1rem; }
.u-pt-6 { padding-top: 1.5rem; }
.u-pt-8 { padding-top: 2rem; }

.u-pb-0 { padding-bottom: 0; }
.u-pb-2 { padding-bottom: 0.5rem; }
.u-pb-3 { padding-bottom: 0.75rem; }
.u-pb-4 { padding-bottom: 1rem; }
.u-pb-6 { padding-bottom: 1.5rem; }
.u-pb-8 { padding-bottom: 2rem; }

.u-pl-0 { padding-left: 0; }
.u-pl-2 { padding-left: 0.5rem; }
.u-pl-3 { padding-left: 0.75rem; }
.u-pl-4 { padding-left: 1rem; }
.u-pl-6 { padding-left: 1.5rem; }

.u-pr-0 { padding-right: 0; }
.u-pr-2 { padding-right: 0.5rem; }
.u-pr-3 { padding-right: 0.75rem; }
.u-pr-4 { padding-right: 1rem; }
.u-pr-6 { padding-right: 1.5rem; }

.u-px-0 { padding-left: 0; padding-right: 0; }
.u-px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.u-px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.u-px-4 { padding-left: 1rem; padding-right: 1rem; }
.u-px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.u-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.u-px-8 { padding-left: 2rem; padding-right: 2rem; }

.u-py-0 { padding-top: 0; padding-bottom: 0; }
.u-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.u-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.u-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.u-py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.u-py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.u-py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.u-py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ============================================================
   6. WIDTH & HEIGHT UTILITIES
   ============================================================ */
.u-w-full { width: 100%; }
.u-w-auto { width: auto; }
.u-w-50 { width: 50%; }
.u-w-screen { width: 100vw; }
.u-w-8 { width: 2rem; }
.u-w-10 { width: 2.5rem; }
.u-w-12 { width: 3rem; }
.u-w-14 { width: 3.5rem; }
.u-w-16 { width: 4rem; }
.u-w-20 { width: 5rem; }
.u-w-24 { width: 6rem; }
.u-w-32 { width: 8rem; }
.u-w-40 { width: 10rem; }
.u-w-48 { width: 12rem; }
.u-w-60 { width: 15rem; }
.u-w-64 { width: 16rem; }
.u-max-w-sm { max-width: 24rem; }
.u-max-w-md { max-width: 28rem; }
.u-max-w-lg { max-width: 32rem; }
.u-max-w-xl { max-width: 36rem; }
.u-max-w-2xl { max-width: 42rem; }
.u-max-w-3xl { max-width: 48rem; }
.u-max-w-full { max-width: 100%; }
.u-min-w-0 { min-width: 0; }

.u-h-full { height: 100%; }
.u-h-auto { height: auto; }
.u-h-screen { height: 100vh; }
.u-h-4 { height: 1rem; }
.u-h-5 { height: 1.25rem; }
.u-h-6 { height: 1.5rem; }
.u-h-8 { height: 2rem; }
.u-h-10 { height: 2.5rem; }
.u-h-12 { height: 3rem; }
.u-h-14 { height: 3.5rem; }
.u-h-16 { height: 4rem; }
.u-h-20 { height: 5rem; }
.u-h-24 { height: 6rem; }
.u-min-h-0 { min-height: 0; }
.u-min-h-screen { min-height: 100vh; }

/* Common icon sizes */
.u-icon-xs { width: 12px; height: 12px; }
.u-icon-sm { width: 14px; height: 14px; }
.u-icon-md { width: 16px; height: 16px; }
.u-icon-base { width: 20px; height: 20px; }
.u-icon-lg { width: 24px; height: 24px; }
.u-icon-xl { width: 32px; height: 32px; }
.u-icon-2xl { width: 40px; height: 40px; }
.u-icon-3xl { width: 48px; height: 48px; }
.u-icon-4xl { width: 60px; height: 60px; }
.u-icon-5xl { width: 80px; height: 80px; }

/* ============================================================
   7. TYPOGRAPHY UTILITIES
   ============================================================ */

/* Font Sizes */
.u-text-2xs { font-size: 0.625rem; }
.u-text-xs { font-size: 0.75rem; }
.u-text-sm { font-size: 0.875rem; }
.u-text-base { font-size: 1rem; }
.u-text-lg { font-size: 1.125rem; }
.u-text-xl { font-size: 1.25rem; }
.u-text-2xl { font-size: 1.5rem; }
.u-text-3xl { font-size: 1.75rem; }
.u-text-4xl { font-size: 2rem; }
.u-text-5xl { font-size: 2.5rem; }
.u-text-6xl { font-size: 3rem; }

/* Font Weights */
.u-font-light { font-weight: 300; }
.u-font-normal { font-weight: 400; }
.u-font-medium { font-weight: 500; }
.u-font-semibold { font-weight: 600; }
.u-font-bold { font-weight: 700; }
.u-font-extrabold { font-weight: 800; }

/* Line Heights */
.u-leading-none { line-height: 1; }
.u-leading-tight { line-height: 1.25; }
.u-leading-snug { line-height: 1.375; }
.u-leading-normal { line-height: 1.5; }
.u-leading-relaxed { line-height: 1.625; }
.u-leading-loose { line-height: 2; }

/* Text Alignment */
.u-text-left { text-align: left; }
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }

/* Text Transform */
.u-uppercase { text-transform: uppercase; }
.u-lowercase { text-transform: lowercase; }
.u-capitalize { text-transform: capitalize; }
.u-normal-case { text-transform: none; }

/* Text Decoration */
.u-underline { text-decoration: underline; }
.u-no-underline { text-decoration: none; }
.u-line-through { text-decoration: line-through; }

/* Text Overflow */
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-whitespace-nowrap { white-space: nowrap; }
.u-whitespace-pre-wrap { white-space: pre-wrap; }
.u-break-words { overflow-wrap: break-word; word-break: break-word; }

/* Letter Spacing */
.u-tracking-tight { letter-spacing: -0.025em; }
.u-tracking-normal { letter-spacing: 0; }
.u-tracking-wide { letter-spacing: 0.025em; }
.u-tracking-wider { letter-spacing: 0.05em; }
.u-tracking-widest { letter-spacing: 0.1em; }

/* Font Family */
.u-font-sans { font-family: var(--font-sans); }
.u-font-mono { font-family: var(--font-mono); }

/* ============================================================
   8. COLOR UTILITIES - Text
   ============================================================ */

/* Gray/Neutral Scale */
.u-text-white { color: #ffffff; }
.u-text-gray-50 { color: var(--gray-50); }
.u-text-gray-100 { color: var(--gray-100); }
.u-text-gray-200 { color: var(--gray-200); }
.u-text-gray-300 { color: var(--gray-300); }
.u-text-gray-400 { color: var(--gray-400); }
.u-text-gray-500 { color: var(--gray-500); }
.u-text-gray-600 { color: var(--gray-600); }
.u-text-gray-700 { color: var(--gray-700); }
.u-text-gray-800 { color: var(--gray-800); }
.u-text-gray-900 { color: var(--gray-900); }

/* Neutral (alias for gray) */
.u-text-neutral-800 { color: var(--gray-800); }
.u-text-neutral-700 { color: var(--gray-700); }
.u-text-neutral-600 { color: var(--gray-600); }
.u-text-neutral-500 { color: var(--gray-500); }

/* Brand Colors */
.u-text-primary-500 { color: var(--primary-500); }
.u-text-primary-600 { color: var(--primary-600); }
.u-text-primary-700 { color: var(--primary-700); }

.u-text-green-400 { color: var(--green-400); }
.u-text-green-500 { color: var(--green-500); }
.u-text-green-600 { color: var(--green-600); }
.u-text-green-700 { color: var(--green-700); }
.u-text-green-800 { color: var(--green-800); }

.u-text-blue-500 { color: var(--blue-500); }
.u-text-blue-600 { color: var(--blue-600); }
.u-text-blue-700 { color: var(--blue-700); }

/* Semantic Colors */
.u-text-success { color: var(--success-500); }
.u-text-warning { color: var(--warning-500); }
.u-text-error { color: var(--error-500); }
.u-text-danger { color: #dc2626; }
.u-text-info { color: #3b82f6; }
.u-text-muted { color: var(--gray-500); }

/* Common direct hex colors used throughout */
.u-text-emerald { color: #10b981; }
.u-text-emerald-600 { color: #059669; }
.u-text-emerald-700 { color: #047857; }
.u-text-teal-600 { color: #0d9488; }
.u-text-amber-500 { color: #f59e0b; }
.u-text-amber-600 { color: #d97706; }
.u-text-orange-500 { color: #f97316; }
.u-text-orange-600 { color: #ea580c; }
.u-text-red-500 { color: #ef4444; }
.u-text-red-600 { color: #dc2626; }
.u-text-purple-500 { color: #a855f7; }
.u-text-purple-600 { color: #9333ea; }
.u-text-indigo-600 { color: #4f46e5; }
.u-text-cyan-600 { color: #0891b2; }
.u-text-slate-500 { color: #64748b; }
.u-text-slate-600 { color: #475569; }
.u-text-slate-700 { color: #334155; }
.u-text-slate-800 { color: #1e293b; }
.u-text-slate-900 { color: #0f172a; }

.u-text-inherit { color: inherit; }

/* ============================================================
   9. BACKGROUND UTILITIES
   ============================================================ */
.u-bg-white { background: #ffffff; }
.u-bg-transparent { background: transparent; }
.u-bg-gray-25 { background: var(--gray-25); }
.u-bg-gray-50 { background: var(--gray-50); }
.u-bg-gray-100 { background: var(--gray-100); }
.u-bg-gray-200 { background: var(--gray-200); }
.u-bg-gray-800 { background: var(--gray-800); }
.u-bg-gray-900 { background: var(--gray-900); }

.u-bg-green-50 { background: var(--green-50); }
.u-bg-green-100 { background: var(--green-100); }
.u-bg-green-500 { background: var(--green-500); }
.u-bg-green-600 { background: var(--green-600); }
.u-bg-green-700 { background: var(--green-700); }

.u-bg-blue-50 { background: var(--blue-50); }
.u-bg-blue-100 { background: var(--blue-100); }
.u-bg-blue-500 { background: var(--blue-500); }
.u-bg-blue-600 { background: var(--blue-600); }

.u-bg-primary-50 { background: var(--primary-50); }
.u-bg-primary-500 { background: var(--primary-500); }
.u-bg-primary-600 { background: var(--primary-600); }

.u-bg-success-50 { background: var(--success-50); }
.u-bg-warning-50 { background: var(--warning-50); }
.u-bg-error-50 { background: var(--error-50); }

.u-bg-emerald-50 { background: #ecfdf5; }
.u-bg-emerald-100 { background: #d1fae5; }
.u-bg-emerald-500 { background: #10b981; }
.u-bg-emerald-600 { background: #059669; }
.u-bg-amber-50 { background: #fffbeb; }
.u-bg-amber-100 { background: #fef3c7; }
.u-bg-red-50 { background: #fef2f2; }
.u-bg-red-100 { background: #fee2e2; }
.u-bg-purple-50 { background: #faf5ff; }
.u-bg-purple-100 { background: #f3e8ff; }
.u-bg-indigo-50 { background: #eef2ff; }
.u-bg-cyan-50 { background: #ecfeff; }
.u-bg-orange-50 { background: #fff7ed; }
.u-bg-teal-50 { background: #f0fdfa; }
.u-bg-slate-50 { background: #f8fafc; }
.u-bg-slate-100 { background: #f1f5f9; }
.u-bg-slate-800 { background: #1e293b; }
.u-bg-slate-900 { background: #0f172a; }

/* Platform green gradient (app pages) */
.u-bg-platform-gradient { background: linear-gradient(135deg, #1a3a2f, #0d2620); }
.u-bg-platform-dark { background: #0d2620; }

/* ============================================================
   10. BORDER UTILITIES
   ============================================================ */
.u-border { border: 1px solid var(--gray-200); }
.u-border-0 { border: 0; }
.u-border-t { border-top: 1px solid var(--gray-200); }
.u-border-b { border-bottom: 1px solid var(--gray-200); }
.u-border-l { border-left: 1px solid var(--gray-200); }
.u-border-r { border-right: 1px solid var(--gray-200); }

.u-border-gray-100 { border-color: var(--gray-100); }
.u-border-gray-200 { border-color: var(--gray-200); }
.u-border-gray-300 { border-color: var(--gray-300); }

/* Accent border-left (status indicators) */
.u-border-l-success { border-left: 3px solid #059669; }
.u-border-l-danger { border-left: 3px solid #dc2626; }
.u-border-l-warning { border-left: 3px solid #ea580c; }
.u-border-l-info { border-left: 3px solid #3b82f6; }
.u-border-l-emerald { border-left: 3px solid #10b981; }
.u-border-l-purple { border-left: 3px solid #a855f7; }

.u-border-l-4 { border-left-width: 4px; border-left-style: solid; }
.u-border-l-3 { border-left-width: 3px; border-left-style: solid; }

/* ============================================================
   11. BORDER RADIUS UTILITIES
   ============================================================ */
.u-rounded-none { border-radius: 0; }
.u-rounded-sm { border-radius: 4px; }
.u-rounded { border-radius: 6px; }
.u-rounded-md { border-radius: 8px; }
.u-rounded-lg { border-radius: 12px; }
.u-rounded-xl { border-radius: 16px; }
.u-rounded-2xl { border-radius: 20px; }
.u-rounded-full { border-radius: 9999px; }

/* ============================================================
   12. SHADOW UTILITIES
   ============================================================ */
.u-shadow-none { box-shadow: none; }
.u-shadow-xs { box-shadow: var(--shadow-xs); }
.u-shadow-sm { box-shadow: var(--shadow-sm); }
.u-shadow-md { box-shadow: var(--shadow-md); }
.u-shadow-lg { box-shadow: var(--shadow-lg); }
.u-shadow-xl { box-shadow: var(--shadow-xl); }
.u-shadow-2xl { box-shadow: var(--shadow-2xl); }
.u-shadow-soft { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.u-shadow-card { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ============================================================
   13. POSITION UTILITIES
   ============================================================ */
.u-relative { position: relative; }
.u-absolute { position: absolute; }
.u-fixed { position: fixed; }
.u-sticky { position: sticky; }
.u-static { position: static; }

.u-top-0 { top: 0; }
.u-right-0 { right: 0; }
.u-bottom-0 { bottom: 0; }
.u-left-0 { left: 0; }
.u-inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ============================================================
   14. OVERFLOW UTILITIES
   ============================================================ */
.u-overflow-hidden { overflow: hidden; }
.u-overflow-auto { overflow: auto; }
.u-overflow-scroll { overflow: scroll; }
.u-overflow-visible { overflow: visible; }
.u-overflow-x-auto { overflow-x: auto; }
.u-overflow-y-auto { overflow-y: auto; }

/* ============================================================
   15. CURSOR UTILITIES
   ============================================================ */
.u-cursor-pointer { cursor: pointer; }
.u-cursor-default { cursor: default; }
.u-cursor-not-allowed { cursor: not-allowed; }
.u-cursor-grab { cursor: grab; }
.u-cursor-move { cursor: move; }

/* ============================================================
   16. OPACITY UTILITIES
   ============================================================ */
.u-opacity-0 { opacity: 0; }
.u-opacity-25 { opacity: 0.25; }
.u-opacity-50 { opacity: 0.5; }
.u-opacity-60 { opacity: 0.6; }
.u-opacity-70 { opacity: 0.7; }
.u-opacity-75 { opacity: 0.75; }
.u-opacity-80 { opacity: 0.8; }
.u-opacity-90 { opacity: 0.9; }
.u-opacity-100 { opacity: 1; }

/* ============================================================
   17. TRANSITION UTILITIES
   ============================================================ */
.u-transition { transition: all 0.2s ease; }
.u-transition-fast { transition: all 0.15s ease; }
.u-transition-slow { transition: all 0.3s ease; }
.u-transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.u-transition-transform { transition: transform 0.2s ease; }
.u-transition-opacity { transition: opacity 0.2s ease; }
.u-transition-none { transition: none; }

/* ============================================================
   18. Z-INDEX UTILITIES
   ============================================================ */
.u-z-0 { z-index: 0; }
.u-z-10 { z-index: 10; }
.u-z-20 { z-index: 20; }
.u-z-30 { z-index: 30; }
.u-z-40 { z-index: 40; }
.u-z-50 { z-index: 50; }
.u-z-dropdown { z-index: var(--z-dropdown); }
.u-z-sticky { z-index: var(--z-sticky); }
.u-z-modal { z-index: var(--z-modal); }

/* ============================================================
   19. LIST UTILITIES
   ============================================================ */
.u-list-none { list-style: none; padding: 0; margin: 0; }
.u-list-disc { list-style-type: disc; }
.u-list-decimal { list-style-type: decimal; }

/* ============================================================
   20. GRID UTILITIES (supplements main.css)
   ============================================================ */
.u-grid { display: grid; }
.u-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.u-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.u-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.u-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.u-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ============================================================
   21. COMPONENT CLASSES
   ============================================================
   Reusable component patterns that replace common inline combos.
   ============================================================ */

/* Card variants */
.xg-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.xg-card-bordered {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}
.xg-card-flat {
    background: var(--gray-50);
    border-radius: 8px;
}
.xg-card-padded {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
}
.xg-card-sm {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem;
}

/* Stat card (dashboard KPIs) */
.xg-stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.25rem;
}
.xg-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gray-900);
}
.xg-stat-card__label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
.xg-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Section header */
.xg-section-header {
    margin-bottom: 1.5rem;
}
.xg-section-header__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--gray-900);
}
.xg-section-header__subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0.25rem 0 0 0;
}

/* Page header (hero-style) */
.xg-page-header {
    background: linear-gradient(135deg, #1a3a2f, #0d2620);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.xg-page-header__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}
.xg-page-header__subtitle {
    margin: 0;
    color: #6b7280;
    opacity: 0.9;
}

/* Flex row with gap (the most common inline pattern) */
.xg-flex-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.xg-flex-row-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.xg-flex-row-lg {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Flex column */
.xg-flex-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.xg-flex-col-sm {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Status list item (border-left indicator) */
.xg-status-item {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.xg-status-item--success { border-left: 3px solid #059669; }
.xg-status-item--danger { border-left: 3px solid #dc2626; }
.xg-status-item--warning { border-left: 3px solid #ea580c; }
.xg-status-item--info { border-left: 3px solid #3b82f6; }
.xg-status-item--purple { border-left: 3px solid #a855f7; }

/* Badge variants */
.xg-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.xg-badge--success { background: #ecfdf5; color: #059669; }
.xg-badge--danger { background: #fef2f2; color: #dc2626; }
.xg-badge--warning { background: #fffbeb; color: #d97706; }
.xg-badge--info { background: #eff6ff; color: #2563eb; }
.xg-badge--purple { background: #faf5ff; color: #9333ea; }
.xg-badge--gray { background: var(--gray-100); color: var(--gray-600); }
.xg-badge--emerald { background: #ecfdf5; color: #059669; }

/* Pill tags */
.xg-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Icon circle (common for dashboard icons) */
.xg-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.xg-icon-circle--sm { width: 32px; height: 32px; font-size: 0.875rem; }
.xg-icon-circle--md { width: 40px; height: 40px; font-size: 1rem; }
.xg-icon-circle--lg { width: 48px; height: 48px; font-size: 1.25rem; }
.xg-icon-circle--xl { width: 60px; height: 60px; font-size: 1.5rem; }

/* Icon box (squared with radius) */
.xg-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.xg-icon-box--sm { width: 36px; height: 36px; font-size: 0.875rem; }
.xg-icon-box--md { width: 48px; height: 48px; font-size: 1.125rem; }
.xg-icon-box--lg { width: 60px; height: 60px; font-size: 1.5rem; }

/* Form label */
.xg-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Divider row (flex item with border-bottom) */
.xg-divider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

/* Header bar (card header with border-bottom) */
.xg-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Data label + value pairs */
.xg-data-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}
.xg-data-value {
    font-weight: 500;
    color: var(--gray-900);
}

/* Progress/Completeness ring placeholder text */
.xg-progress-text {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Empty state */
.xg-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
}
.xg-empty-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.xg-empty-state__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}
.xg-empty-state__desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    max-width: 24rem;
    margin: 0 auto;
}

/* ============================================================
   22. RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
    .u-hide-mobile { display: none !important; }
    .u-stack-mobile { flex-direction: column !important; }
    .u-full-mobile { width: 100% !important; }
    .u-text-center-mobile { text-align: center !important; }
}

@media (min-width: 769px) {
    .u-hide-desktop { display: none !important; }
}

@media (max-width: 1024px) {
    .u-hide-tablet { display: none !important; }
    .u-stack-tablet { flex-direction: column !important; }
}

/* ============================================================
   23. HOVER UTILITIES
   ============================================================ */
.u-hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.u-hover-shadow:hover { box-shadow: var(--shadow-md); }
.u-hover-opacity:hover { opacity: 0.8; }
.u-hover-bg-gray-50:hover { background: var(--gray-50); }
.u-hover-bg-gray-100:hover { background: var(--gray-100); }

/* ============================================================
   24. PRINT UTILITIES
   ============================================================ */
@media print {
    .u-no-print { display: none !important; }
    .u-print-only { display: block !important; }
}

/* ============================================================
   25. ACCESSIBILITY
   ============================================================ */
.u-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   26. ANIMATION UTILITIES
   ============================================================ */
.u-animate-spin { animation: u-spin 1s linear infinite; }
.u-animate-pulse { animation: u-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.u-animate-fade-in { animation: u-fade-in 0.3s ease-out; }

@keyframes u-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes u-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes u-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   27. SCOPED: Personalized Navigator (.nav-pw-*)
   ============================================================ */
.nav-pw-modal { z-index: 9999 !important; position: fixed !important; }
.nav-pw-modal-dialog { z-index: 10000 !important; position: relative !important; pointer-events: auto !important; }
.nav-pw-modal-content { z-index: 10001 !important; position: relative !important; pointer-events: auto !important; background: white !important; }
.nav-pw-modal-section { z-index: 10001 !important; position: relative !important; }
.nav-pw-modal-interactive { z-index: 10001 !important; position: relative !important; pointer-events: auto !important; }
.nav-pw-modal-close { z-index: 10003 !important; position: relative !important; pointer-events: auto !important; cursor: pointer !important; }
.nav-pw-modal-btn { z-index: 10002 !important; position: relative !important; pointer-events: auto !important; cursor: pointer !important; }


/* ============================================================
   30. SCOPED: Task Management (.task-mgmt-*)
   ============================================================ */
.task-mgmt-stat-card { background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.task-mgmt-card-header { background: var(--gray-100); border: none; }
.task-mgmt-thead { background: var(--gray-50); }
.task-mgmt-icon-circle { width: 40px; height: 40px; background: var(--gray-100); color: var(--gray-600); }
.task-mgmt-badge-gray { background: var(--gray-200); color: var(--gray-800); }
.task-mgmt-progress { height: 8px; background: var(--gray-200); }
.task-mgmt-modal { z-index: 9999 !important; position: fixed !important; }
.task-mgmt-modal-dialog { z-index: 10000 !important; position: relative !important; pointer-events: auto !important; }
.task-mgmt-modal-content { z-index: 10001 !important; position: relative !important; pointer-events: auto !important; background: white !important; }
.task-mgmt-modal-section { z-index: 10001 !important; position: relative !important; }
.task-mgmt-modal-interactive { z-index: 10001 !important; position: relative !important; pointer-events: auto !important; }
.task-mgmt-modal-close { z-index: 10003 !important; position: relative !important; pointer-events: auto !important; cursor: pointer !important; }
.task-mgmt-modal-btn { z-index: 10002 !important; position: relative !important; pointer-events: auto !important; cursor: pointer !important; }

/* ============================================================
   31. SCOPED: Advisor Paywall Modal (.advisor-pw-*)
   ============================================================ */
.advisor-pw-modal-content { border: none; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.advisor-pw-header { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); border: none; padding: 2rem; text-align: center; }
.advisor-pw-icon-circle { background: rgba(255, 255, 255, 0.15); border-radius: 50%; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.advisor-pw-icon-large { font-size: 2rem; color: white; }
.advisor-pw-title { color: white; font-weight: 600; margin: 0; }
.advisor-pw-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 1rem; margin: 0.5rem 0 0; }
.advisor-pw-summary { background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%); border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; text-align: center; }
.advisor-pw-summary-title { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.5rem; }
.advisor-pw-summary-text { color: #64748b; margin: 0; font-size: 0.95rem; }
.advisor-pw-pricing-card { border: 2px solid #e2e8f0; border-radius: 16px; padding: 1.5rem; height: 100%; transition: all 0.3s ease; }
.advisor-pw-pricing-card--recommended { border: 2px solid #2563eb; border-radius: 16px; padding: 1.5rem; height: 100%; position: relative; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.advisor-pw-pricing-header { text-align: center; margin-bottom: 1rem; }
.advisor-pw-tier-title { color: #2563eb; font-weight: 700; margin-bottom: 0.5rem; }
.advisor-pw-price { font-size: 2rem; font-weight: 800; color: #1e293b; }
.advisor-pw-price-period { font-size: 1rem; font-weight: 400; color: #64748b; }
.advisor-pw-price-desc { color: #64748b; font-size: 0.9rem; margin: 0; }
.advisor-pw-features-list { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.advisor-pw-feature-item { padding: 0.5rem 0; color: #475569; }
.advisor-pw-check-icon { color: #10b981; margin-right: 0.5rem; }
.advisor-pw-btn { width: 100%; padding: 0.75rem; border-radius: 10px; font-weight: 600; }
.advisor-pw-btn--primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); border: none; }
.advisor-pw-recommended-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #2563eb; color: white; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.advisor-pw-plans-link-container { text-align: center; margin-top: 1.5rem; }
.advisor-pw-plans-link { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.advisor-pw-footer { border: none; padding: 1rem 2rem; background: #f8fafc; justify-content: center; }
.advisor-pw-guarantee { text-align: center; color: #64748b; font-size: 0.9rem; }


/* ============================================================
   SCOPED CLASSES - Implementation Lead Form
   ============================================================ */
.impl-form-modal { border: none; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.impl-form-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); border: none; padding: 2rem; text-align: center; }
.impl-form-icon-circle { background: rgba(255, 255, 255, 0.15); border-radius: 50%; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.impl-form-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 1rem; margin: 0.5rem 0 0; }
.impl-form-label { font-weight: 600; color: #374151; }
.impl-form-input { border-radius: 8px; border: 1px solid #d1d5db; padding: 0.75rem; }
.impl-form-implement-btn { width: 100%; padding: 1rem; border-radius: 12px; background: linear-gradient(135deg, #059669 0%, #047857 100%); border: none; font-weight: 600; }
.impl-form-schedule-btn { width: 100%; padding: 1rem; border-radius: 12px; border: 2px solid #059669; color: #059669; font-weight: 600; }
.impl-form-btn-desc { font-size: 0.8rem; font-weight: 400; margin-top: 0.25rem; opacity: 0.9; }
.impl-form-btn-desc--alt { font-size: 0.8rem; font-weight: 400; margin-top: 0.25rem; opacity: 0.8; }
.impl-form-value-section { border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; background: #fafafa; }
.impl-form-value-list { margin: 0; padding-left: 1.5rem; font-size: 0.9rem; color: #4b5563; }
.impl-form-footer { border: none; padding: 1rem 2rem; background: #f8fafc; }
.impl-form-submit-btn { border-radius: 8px; font-weight: 600; background: linear-gradient(135deg, #059669 0%, #047857 100%); border: none; }

/* ============================================================
   SCOPED CLASSES - Environmental Data
   ============================================================ */
.env-data-record-title { margin: 0 0 0.25rem 0; font-weight: 600; color: var(--gray-900); }
.env-data-record-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--gray-600); }
.env-data-period-badge { background: var(--primary-100); color: var(--primary-700); padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; }
.env-data-section-title { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.env-data-section-title--water { color: var(--blue-600); }
.env-data-section-title--waste { color: var(--green-600); }
.env-data-section-title--ghg { color: var(--warning-600); }
.env-data-no-data { color: var(--gray-500); font-size: 0.875rem; text-align: center; padding: 1rem; }
.env-data-notes-title { color: var(--gray-600); margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.env-data-notes-bg { background: var(--gray-100); padding: 0.75rem; border-radius: var(--radius-md); }
.env-data-chevron { color: var(--gray-500); transition: transform 0.2s; }
.env-data-timestamps { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-200); font-size: 0.75rem; color: var(--gray-500); }
.env-data-delete-header { background: var(--error-500); color: white; }
.env-data-delete-info { background: var(--primary-50); border: 1px solid var(--primary-200); padding: 0.75rem; border-radius: var(--radius-md); margin: 1rem 0; }
.env-data-delete-btn { background: var(--error-500); color: white; }

/* ============================================================
   SCOPED CLASSES - Carbon Calculator
   ============================================================ */
.carbon-calc-panel-active { display: block !important; visibility: visible !important; }

/* ============================================================
   SCOPED CLASSES - Dashboard
   ============================================================ */
.dash-industry-title { margin: 0; font-size: 1.25rem; font-weight: 600; color: #1e293b; }
.dash-industry-subtitle { margin: 0; font-size: 0.875rem; color: #64748b; }
.dash-text-yellow { color: #eab308; }
.dash-text-orange { color: #ea580c; }
.dash-section-label { font-size: 0.875rem; font-weight: 600; color: #64748b; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-card-emerald-accent { border-left: 4px solid #10b981 !important; }

/* ============================================================
   SCOPED CLASSES - Edit Facility
   ============================================================ */
.edit-fac-max-width { max-width: 800px; }
.edit-fac-icon { margin-right: 0.5rem; color: var(--primary-600); }
.edit-fac-error { color: var(--error-600); font-size: 0.875rem; margin-top: 0.25rem; }
.edit-fac-hint { display: block; color: var(--gray-500); margin-bottom: 0.5rem; }
.edit-fac-type-info { background: var(--gray-50); border-left: 4px solid var(--primary-500); padding: 1rem; margin-bottom: 1rem; }
.edit-fac-type-desc { margin: 0.5rem 0 0 0; color: var(--gray-600); font-size: 0.875rem; }
.edit-fac-delete-btn { margin-left: auto; color: var(--error-600); border-color: var(--error-600); }
.edit-fac-info-label { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 0.25rem; }
.edit-fac-info-value { font-weight: 500; color: var(--gray-900); }

/* ============================================================
   SHARED UTILITY - Icon with neutral color
   ============================================================ */
.u-icon-neutral { color: var(--neutral-800); display: inline-block; }

/* ============================================================
   SCOPED CLASSES - Framework: TNFD
   ============================================================ */
.fw-tnfd-icon-50 { width: 50px; height: 50px; }
.fw-tnfd-glass-bg { background: var(--glass-bg); }

/* ============================================================
   SCOPED CLASSES - Feature: Compliance Automation
   ============================================================ */
.feat-ca-flag-icon { font-size: 2rem; }

/* ============================================================
   SCOPED CLASSES - Vessel List
   ============================================================ */
.vl-thead { background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.vl-th { color: #475569; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; padding: 16px; }
.vl-row-border { border-bottom: 1px solid #f1f5f9; }
.vl-vessel-name { font-size: 15px; color: #1e293b; }
.vl-imo-cell { color: #64748b; font-family: 'Courier New', monospace; font-size: 14px; padding: 16px; }
.vl-type-badge { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #3b82f6; border: 1px solid #bfdbfe; padding: 6px 12px; font-weight: 600; }
.vl-status-badge { padding: 6px 12px; font-weight: 600; }
.vl-cii-badge { font-size: 14px; font-weight: 700; padding: 8px 16px; color: white; }

/* ============================================================
   SCOPED CLASSES - Ship Intelligence
   ============================================================ */
.si-text-maritime { color: #0077be; }
.si-bg-cii-a { background: #10b981; }
.si-bg-cii-b { background: #22c55e; }
.si-bg-cii-c { background: #f59e0b; }
.si-bg-cii-d { background: #ef4444; }
.si-bg-cii-e { background: #7f1d1d; }

/* ============================================================
   SCOPED CLASSES - Recommendations
   ============================================================ */
.rec-header { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 1.5rem; }
.rec-progress-bar { width: 120px; height: 8px; background: rgba(255,255,255,0.3); border-radius: 4px; }
.rec-stat-green { background: #f0fdf4; border-radius: 12px; }
.rec-stat-amber { background: #fef3c7; border-radius: 12px; }
.rec-stat-purple { background: #ede9fe; border-radius: 12px; }
.rec-stat-pink { background: #fce7f3; border-radius: 12px; }
.rec-text-violet { color: #8b5cf6; }
.rec-text-pink { color: #ec4899; }
.rec-empty-icon { width: 80px; height: 80px; background: #f0fdf4; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ============================================================
   SCOPED CLASSES - Audit Logs
   ============================================================ */
.al-title { color: #1a202c; font-weight: 700; }
.al-thead { background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.al-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.al-stat-icon--emerald { background: linear-gradient(135deg, #10b981, #059669); }
.al-stat-icon--blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.al-text-dark { color: #1a202c; }
.al-th-timestamp { width: 180px; }
.al-th-ip { width: 120px; }
.al-th-details { width: 80px; }
.al-details-pre { max-height: 400px; overflow-y: auto; }
.al-empty-padding { padding: 3rem 0; }

/* ============================================================
   SCOPED CLASSES - Facility View
   ============================================================ */
.fv-badge-region { background: #f1f5f9; color: #475569; }
.fv-badge-bu { background: #dbeafe; color: #1d4ed8; }
.fv-icon-employees { background: #dbeafe; color: #1d4ed8; }
.fv-icon-area { background: #dcfce7; color: #16a34a; }
.fv-icon-children { background: #fef3c7; color: #d97706; }
.fv-btn-purple { background: #7c3aed; }
.fv-icon-cert { background: #f3e8ff; color: #7c3aed; }
.fv-empty-cert { background: #f8fafc; border-radius: 10px; padding: 1.5rem; text-align: center; color: #64748b; }
.fv-program-badge { background: #f3e8ff; color: #7c3aed; padding: 0.25rem 0.5rem; border-radius: 4px; margin-left: 0.5rem; font-size: 0.75rem; }
.fv-desc-text { color: #475569; line-height: 1.6; }
.fv-sqm-unit { font-size: 0.875rem; font-weight: 400; }


/* ============================================================
   SCOPED CLASSES - Onboarding Shared
   ============================================================ */
.onb-glass-bg { background: var(--glass-bg); }
.onb-card-frosted { border-radius: 20px; background: rgba(255, 255, 255, 0.98); }
.onb-card-frosted-blur { border-radius: 20px; backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.95); }
.onb-progress-step { width: 30px; height: 30px; }
.onb-progress-line { height: 2px; }
.onb-submit-btn { background: var(--glass-bg); border: none; min-width: 200px; }
.onb-submit-btn-simple { background: var(--glass-bg); border: none; }
.onb-radio-label { border: 2px solid #e9ecef; transition: all 0.3s ease; }
.u-icon-neutral-i { color: #1e293b !important; display: inline-block; }

/* ============================================================
   SCOPED CLASSES - Unified Framework Navigator
   ============================================================ */
.ufn-modal-content { border-radius: 16px; border: 1px solid #e5e7eb; }
.ufn-modal-header { border-bottom: 1px solid #e5e7eb; padding: 1.5rem 2rem; }
.ufn-modal-title { font-weight: 700; color: #1f2937; }
.ufn-modal-body { padding: 2rem; }
.ufn-modal-footer { border-top: 1px solid #e5e7eb; padding: 1.5rem 2rem; gap: 1rem; }
.ufn-btn-secondary { border-radius: 8px; padding: 0.75rem 1.5rem; font-weight: 600; }
.ufn-btn-primary { border-radius: 8px; padding: 0.75rem 2rem; font-weight: 600; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); border: none; color: white; text-decoration: none; }
.ufn-paywall-content { border-radius: 16px; border: 1px solid #e5e7eb; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.ufn-paywall-header-wrap { display: flex; align-items: center; gap: 1rem; }
.ufn-paywall-lock { font-size: 1.5rem; color: #f59e0b; }
.ufn-paywall-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #1f2937; }
.ufn-paywall-close { margin: 0; }
.ufn-paywall-text { margin-bottom: 1.5rem; color: #4b5563; font-size: 1.1rem; line-height: 1.6; }
.ufn-paywall-btn-outline { border-radius: 8px; padding: 0.75rem 1.5rem; font-weight: 600; border: 2px solid #e5e7eb; color: #6b7280; transition: all 0.2s ease; }
.ufn-paywall-btn-primary { border-radius: 8px; padding: 0.75rem 2rem; font-weight: 600; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); border: none; color: white; text-decoration: none; transition: all 0.2s ease; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3); }

/* ============================================================
   SCOPED CLASSES - Vessel Detail
   ============================================================ */
.vd-compliance-badge { font-size: 16px; padding: 10px 20px; }
.vd-metric-lg { font-size: 32px; }
.vd-td-w-50 { width: 50%; }
.onb-icon-lg { font-size: 1.5rem; }

/* ============================================================
   SCOPED CLASSES - Framework Comparison
   ============================================================ */
.fc-th-category { width: 20%; }
.fc-header-dark { background: var(--gray-900); color: white; }

/* ============================================================
   SCOPED CLASSES - Data Governance
   ============================================================ */
.dg-stage-number { width: 28px; height: 28px; font-size: 0.875rem; }
.dg-gradient-card { background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%) !important; }
.dg-progress-thin { height: 6px; }
.dg-w-98 { width: 98%; }
.dg-w-997 { width: 99.7%; }
.dg-w-96 { width: 96%; }
.dg-w-97 { width: 97%; }

/* ============================================================
   SCOPED CLASSES - Suggested Risks
   ============================================================ */
.sr-progress-sm { height: 8px; }
.sr-empty-icon { font-size: 4rem; opacity: 0.3; }

/* ============================================================
   SCOPED CLASSES - Lead Capture Thank You
   ============================================================ */
.ty-glass-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(71, 85, 105, 0.12); border-radius: 20px; box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1); }
.ty-success-circle { width: 100px; height: 100px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ty-step-number { width: 40px; height: 40px; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.ty-resource-card { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); border: 1px solid rgba(71, 85, 105, 0.12); border-radius: 16px; }
.ty-resource-icon { font-size: 2rem; }
.ty-check-icon { font-size: 3rem; }

/* ============================================================
   SCOPED CLASSES - Insights Index
   ============================================================ */
.ins-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d9488 100%); padding: 5rem 0 3rem; }
.ins-hero-title { font-size: 2.75rem; }
.ins-card-rounded { border-radius: 12px; overflow: hidden; transition: transform 0.2s; }
.ins-placeholder-lg { font-size: 3rem; opacity: 0.5; }
.ins-placeholder-md { font-size: 2.5rem; opacity: 0.4; }
.ins-empty-icon { font-size: 4rem; opacity: 0.3; }

/* ============================================================
   SCOPED CLASSES - ESG Charts
   ============================================================ */
.legend-color-scope1 { background: #e53e3e; }
.legend-color-scope2 { background: #dd6b20; }
.legend-color-scope3 { background: #d69e2e; }

/* ============================================================
   SCOPED CLASSES - Solutions Industries
   ============================================================ */
.sol-hero-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; opacity: 0.4; }
.sol-hero-icon { font-size: 3rem; }
.sol-case-icon { font-size: 2.5rem; }
.sol-text-purple { color: #8b5cf6; }

/* ============================================================
   SCOPED CLASSES - Insights Article
   ============================================================ */
.art-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); padding: 4rem 0 2rem; }
.art-hero-title { font-size: 2.25rem; line-height: 1.3; }
.art-img-rounded { border-radius: 12px; overflow: hidden; }
.art-img-cover { max-height: 450px; object-fit: cover; }
.art-body { max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #334155; }
.art-tag { font-size: 0.8rem; }
.art-card-rounded { border-radius: 12px; overflow: hidden; }
.art-placeholder-icon { font-size: 2rem; opacity: 0.4; }

/* ============================================================
   SCOPED CLASSES - Facility Hierarchy
   ============================================================ */
.fh-search-box { max-width: 400px; flex: 1; }
.fh-compliance-label { font-size: 0.7rem; color: #64748b; }
.fh-tree-icon-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.fh-facility-link { font-weight: 600; color: #1e293b; text-decoration: none; }

/* ============================================================
   SCOPED CLASSES - Reports Page
   ============================================================ */
.rpt-subtitle { font-size: 0.9375rem; }
.rpt-usage-disclaimer { background: linear-gradient(135deg, #fef3c7, #fef9c3); border: 1px solid #fcd34d; border-radius: 10px; padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.rpt-disclaimer-icon { color: #d97706; margin-top: 2px; }
.rpt-disclaimer-title { color: #92400e; font-size: 0.8125rem; }
.rpt-disclaimer-text { color: #78350f; font-size: 0.8125rem; margin: 0.25rem 0 0 0; line-height: 1.5; }
.rpt-wizard-promo { background: linear-gradient(135deg, #1e40af, #3b82f6); border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.rpt-wizard-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.rpt-wizard-desc { font-size: 0.8125rem; }
.rpt-wizard-btn { padding: 0.625rem 1.25rem; border-radius: 8px; }

/* ============================================================
   SCOPED CLASSES - Enterprise Framework Report
   ============================================================ */
.efr-confidence-label { font-size: 0.7rem; }
.efr-benchmark-60 { height: 60%; }
.efr-benchmark-75 { height: 75%; }
.efr-benchmark-85 { height: 85%; }
.efr-benchmark-95 { height: 95%; }

/* ============================================================
   SCOPED CLASSES - GRI Report
   ============================================================ */
.gri-chart-container { height: 280px; }
.gri-progress-sm { height: 10px; }
.gri-disclaimer-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; font-size: 0.75rem; color: #64748b; }

/* ============================================================
   BETA BADGE UTILITIES
   ============================================================ */
.beta-badge { font-size: 0.5em; vertical-align: middle; }
.beta-badge-sm { font-size: 0.45em; vertical-align: middle; }
.beta-badge-xs { font-size: 0.35em; vertical-align: middle; }
.beta-badge-inline { font-size: 0.65em; }
.beta-badge-showcase { font-size: 0.75em; }
.beta-badge-tile { font-size: 0.6em; vertical-align: middle; }
