/* ========================================
   MARTEL SECURITY — UNIFIED STYLESHEET
   Stripe-inspired: clean, high-contrast, professional
   Palette: Navy #1a2d5a · Silver #8a9ab5 · White #ffffff
   Font: DM Sans (display) + DM Mono (accents)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
    --primary:        #1a2d5a;
    --primary-dark:   #111f3f;
    --primary-light:  #2e4a7a;
    --silver:         #8a9ab5;
    --accent:         #3b82f6;
    --text-dark:      #0f172a;
    --text-body:      #374151;
    --text-muted:     #6b7280;
    --bg-page:        #f8faff;
    --bg-white:       #ffffff;
    --bg-light:       #f1f5fd;
    --border:         #e2e8f0;
    --border-light:   #f1f5f9;
    --success:        #059669;
    --success-bg:     #ecfdf5;
    --warning:        #d97706;
    --warning-bg:     #fffbeb;
    --error:          #dc2626;
    --error-bg:       #fef2f2;
    --info-bg:        #eff6ff;
    --shadow-sm:      0 1px 3px rgba(26,45,90,0.06), 0 1px 2px rgba(26,45,90,0.04);
    --shadow-md:      0 4px 16px rgba(26,45,90,0.10), 0 2px 6px rgba(26,45,90,0.06);
    --shadow-lg:      0 20px 48px rgba(26,45,90,0.14), 0 4px 12px rgba(26,45,90,0.08);
    --shadow-xl:      0 32px 64px rgba(26,45,90,0.18);
    --radius:         8px;
    --radius-lg:      14px;
    --radius-xl:      20px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--bg-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* ========================================
   DARK BLOB KILLER
   ======================================== */
.bg-dark, .bg-dark.text-white {
    background-color: var(--bg-white) !important;
    color: var(--text-body) !important;
    border: 1px solid var(--border);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--primary) !important; }

/* ========================================
   LAYOUT
   ======================================== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 7rem 0; } }

/* ========================================
   HEADER & NAVIGATION
   (header.php has its own styles — these are fallbacks)
   ======================================== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 1000;
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo a { display: flex; align-items: center; gap: 0.75rem; color: var(--primary); font-weight: 700; }
.logo img { height: 44px; width: auto; }
.mobile-menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none;
    border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); margin: 4px 0; }
.nav-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-white); min-width: 250px; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 0.5rem 0; flex-direction: column; list-style: none; }
.nav-menu.active { display: flex; }
.nav-menu a { display: block; padding: 0.75rem 1.25rem; font-weight: 500; color: var(--text-body); }
.nav-menu a:hover { background: var(--bg-light); color: var(--primary); }
@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .nav-menu { display: flex; flex-direction: row; position: static; box-shadow: none; border: none; background: none; padding: 0; gap: 0.25rem; }
    .nav-menu a { padding: 0.45rem 0.8rem; border-radius: var(--radius); }
}

/* ========================================
   HERO — Stripe-style split gradient
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0d1f42 0%, #1a2d5a 50%, #1e3a6e 100%);
    padding: 7rem 0 6rem;
    overflow: hidden;
}

/* Subtle grid texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Glow orb */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #7dd3fc, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.72);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-trust-dots {
    display: flex;
    gap: 0.4rem;
}
.hero-trust-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: block;
}
.hero-trust-dots span:first-child { background: #22c55e; }

@media (max-width: 768px) {
    .hero { padding: 5rem 0 4rem; }
    .hero-trust { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, #0d1f42 0%, #1a2d5a 100%);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; }

/* Legacy .page-header class redirect */
section.page-header {
    background: linear-gradient(135deg, #0d1f42 0%, #1a2d5a 100%);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
section.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}
section.page-header .container { position: relative; z-index: 1; }
section.page-header h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
section.page-header p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.7rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
    border: 1.5px solid transparent; cursor: pointer; transition: all 0.18s ease;
    text-decoration: none; white-space: nowrap; font-family: inherit; letter-spacing: -0.01em;
}
.btn-sm  { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg  { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-primary {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(26,45,90,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover {
    background: var(--primary-light); border-color: var(--primary-light);
    transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff;
}

.btn-white {
    background: #fff; color: var(--primary); border-color: transparent;
    box-shadow: var(--shadow-sm);
}
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--primary); }

.btn-ghost-white {
    background: transparent; color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-danger { background: rgba(220,53,69,0.1); color: #dc3545; border-color: rgba(220,53,69,0.3); }
.btn-danger:hover { background: rgba(220,53,69,0.2); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-light); color: var(--primary); }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ========================================
   CARDS & CONTENT BOXES
   ======================================== */
.card, .content-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.card { transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.box-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.box-header h2 { margin: 0; font-size: 1.125rem; color: var(--text-dark); }

/* ========================================
   SERVICES SECTION — Stripe card grid
   ======================================== */
.services-section {
    background: var(--bg-page);
    padding: 6rem 0;
}

.services-section .section-label {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.services-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.services-section .section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 3.5rem;
    line-height: 1.65;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.25s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(26,45,90,0.15);
}

.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--bg-light), #e8eef8);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.service-card .service-link:hover { gap: 0.5rem; }

/* ========================================
   SOCIAL / ARTICLES SECTION
   ======================================== */
.social-content-section {
    background: var(--bg-white);
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) { .two-column { grid-template-columns: 1fr; gap: 3rem; } }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-header h2 { font-size: 1.35rem; color: var(--text-dark); }
.view-all { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.view-all:hover { color: var(--primary-light); }

/* ========================================
   ARTICLE PREVIEW CARDS
   ======================================== */
.articles-list { display: flex; flex-direction: column; gap: 1.25rem; }

.article-preview-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s, transform 0.2s;
}
.article-preview-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.article-image { flex-shrink: 0; }
.article-image img {
    width: 72px; height: 72px;
    border-radius: var(--radius);
    object-fit: cover;
}

.article-content { flex: 1; min-width: 0; }

.article-content h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.3rem;
    line-height: 1.35;
}
.article-content h3 a { color: var(--text-dark); }
.article-content h3 a:hover { color: var(--primary); }

.article-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.article-meta .separator { opacity: 0.4; }

.article-excerpt {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap 0.2s;
}
.read-more:hover { gap: 0.4rem; }

/* Articles archive grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.articles-grid .article-preview-card {
    flex-direction: column;
}
.articles-grid .article-image img {
    width: 100%; height: 200px;
}

/* ========================================
   SINGLE ARTICLE
   ======================================== */
.single-article { padding: 4rem 0 6rem; }
.single-article .container { max-width: 780px; }

.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }

.article-featured-image { margin-bottom: 2.5rem; }
.article-featured-image img { width: 100%; border-radius: var(--radius-lg); max-height: 480px; object-fit: cover; }

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ========================================
   ABOUT PAGE
   ======================================== */
.mission-section { background: var(--bg-white); }
.mission-section .content-box { max-width: 820px; margin: 0 auto; }
.mission-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.mission-section p { font-size: 1.05rem; line-height: 1.75; color: var(--text-body); }

.team-section { background: var(--bg-page); padding: 6rem 0; }
.team-section > .container > h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 3rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.team-photo {
    margin: 0 auto 1.25rem;
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
}
.team-photo img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: none !important;
    margin: 0 !important;
}
.team-photo-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
}
.team-photo-placeholder span {
    font-size: 2.5rem; font-weight: 700; color: white;
}

.team-info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-title { color: var(--silver); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.75rem; }
.team-description { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ========================================
   SERVICES PAGE
   ======================================== */
.services-overview { background: var(--bg-page); padding: 5rem 0; }
.services-overview .content-box h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.services-overview .content-box h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--primary); }
.services-overview .content-box ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.services-overview .content-box li { margin-bottom: 0.4rem; font-size: 0.9375rem; line-height: 1.6; }
.services-overview .content-box p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 0.75rem; }

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2.5rem;
    text-align: center;
}
.cta-box h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* ========================================
   HOMEPAGE CTA SECTION
   ======================================== */
.hp-cta { background: linear-gradient(135deg, #0d1f42 0%, #1a2d5a 100%); padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; }
.hp-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hp-cta .container { position: relative; z-index: 1; }
.hp-cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: .75rem; letter-spacing: -.02em; }
.hp-cta-sub { color: rgba(255,255,255,.72); font-size: 1.05rem; margin: 0 auto 3rem; max-width: 520px; line-height: 1.6; }
.hp-cta-cards { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hp-cta-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl); padding: 2.25rem 2rem; flex: 1; min-width: 260px; max-width: 380px; text-align: left; transition: background 0.2s, border-color 0.2s; }
.hp-cta-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.hp-cta-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.hp-cta-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.hp-cta-card p { color: rgba(255,255,255,0.65); font-size: .875rem; line-height: 1.6; margin-bottom: 1.5rem; }
.hp-btn-navy { display: block; width: 100%; padding: .75rem 1rem; background: #fff; color: var(--primary); text-align: center; text-decoration: none; border-radius: var(--radius); font-weight: 700; font-size: .875rem; transition: all .18s; }
.hp-btn-navy:hover { background: #f0f4ff; transform: translateY(-1px); color: var(--primary); }
.hp-btn-outline-navy { display: block; width: 100%; padding: .75rem 1rem; background: transparent; color: rgba(255,255,255,0.9); text-align: center; text-decoration: none; border-radius: var(--radius); font-weight: 700; font-size: .875rem; border: 1.5px solid rgba(255,255,255,0.3); transition: all .18s; }
.hp-btn-outline-navy:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.5); }
.hp-cta-portal { color: rgba(255,255,255,.45); font-size: .875rem; }
.hp-cta-portal a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.hp-cta-portal a:hover { color: #fff; }
@media (max-width: 580px) { .hp-cta { padding: 4rem 1.25rem; } .hp-cta-cards { flex-direction: column; } .hp-cta-card { max-width: 100%; } }

/* ========================================
   STAT CARDS
   ======================================== */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.stat-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; min-width: 0;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card__icon { font-size: 2rem; flex-shrink: 0; }
.stat-card__content { min-width: 0; flex: 1; }
.stat-card__value { font-size: 1.75rem; font-weight: 700; margin: 0; color: var(--text-dark); }
.stat-card__label { color: var(--text-muted); margin: 0; font-size: 0.875rem; }
.stat-card--blue   { border-left: 4px solid #3b82f6; }
.stat-card--green  { border-left: 4px solid #10b981; }
.stat-card--orange { border-left: 4px solid #f59e0b; }
.stat-card--purple { border-left: 4px solid #8b5cf6; }
.stat-card--navy   { border-left: 4px solid var(--primary); }

/* ========================================
   TEAM PORTRAIT FIX (global)
   ======================================== */
.team-member img,
.team-card img,
img.team-portrait {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 auto 1rem auto !important;
    border: 3px solid var(--border) !important;
    display: block !important;
}
.team-member { text-align: center; }
.team-member h2, .team-member h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.team-member p { color: var(--text-muted); font-size: 0.875rem; }

/* ========================================
   FORMS & ALERTS
   ======================================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-dark); font-size: 0.875rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--border);
    border-radius: var(--radius); background: var(--bg-white); color: var(--text-dark);
    font-family: inherit; font-size: 0.875rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,45,90,0.1);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-group-wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.form-section { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.form-note { font-size: 0.75rem; color: var(--text-muted); margin: 0.25rem 0; }
.req { color: var(--error); }
.checkbox-label { font-size: 0.875rem; display: flex; gap: 0.4rem; align-items: center; cursor: pointer; }

.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 500; }
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: var(--error-bg);   color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }
.flash { padding: 0.75rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.flash-success { background: var(--success-bg); color: #065f46; border: 1px solid #6ee7b7; }
.flash-error   { background: var(--error-bg);   color: #991b1b; border: 1px solid #fca5a5; }
.flash-messages { max-width: 1180px; margin: 0.75rem auto; padding: 0 1.5rem; }

/* ========================================
   BADGES & STATUS PILLS
   ======================================== */
.badge {
    display: inline-block; padding: 0.25rem 0.6rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; white-space: nowrap;
    background: var(--bg-light); color: var(--text-muted);
}
.badge-internal { background: #fef3c7; color: #92400e; }
.badge-public   { background: #dbeafe; color: #1e40af; }
.badge-primary  { background: rgba(26,45,90,0.1); color: var(--primary); }
.badge-service  { background: rgba(13,110,253,0.12); color: #2563eb; }
.badge-pool     { background: rgba(255,193,7,0.12); color: #b45309; }

.status-pill { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
.status-draft     { background: #f3f4f6; color: #374151; }
.status-pending   { background: #fef3c7; color: #92400e; }
.status-approved  { background: #d1fae5; color: #065f46; }
.status-new           { background: rgba(108,117,125,0.15); color: #6b7280; }
.status-contacted     { background: rgba(13,202,240,0.12);  color: #0891b2; }
.status-qualified     { background: rgba(13,110,253,0.12);  color: #2563eb; }
.status-proposal_sent { background: rgba(253,126,20,0.12);  color: #c2410c; }
.status-negotiating   { background: rgba(255,193,7,0.12);   color: #b45309; }
.status-won           { background: rgba(25,135,84,0.15);   color: #065f46; }
.status-lost          { background: rgba(52,58,64,0.3);     color: #6b7280; }
.status-active    { background: #d1fae5; color: #065f46; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.score-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.score-hot  { background: rgba(220,53,69,0.15);  color: #dc3545; }
.score-warm { background: rgba(255,193,7,0.15);  color: #b45309; }
.score-cold { background: rgba(108,117,125,0.2); color: #6b7280; }

.badge-count { display: inline-block; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; border-radius: 10px; padding: 0 5px; margin-left: 3px; min-width: 18px; text-align: center; }

/* ========================================
   DATA TABLES
   ======================================== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-white); font-size: 0.875rem; }
.data-table th { background: var(--bg-light); padding: 0.7rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--bg-light); }
.data-table tbody tr.inactive { opacity: 0.6; background: var(--bg-page); }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover, .sort-link.active { color: var(--primary); }
.col-actions { white-space: nowrap; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 767px) { .data-table th, .data-table td { padding: 0.5rem 0.65rem; font-size: 0.8rem; } }

/* ========================================
   CRM COMPONENTS (unchanged)
   ======================================== */
.crm-tab-nav, .subtab-nav, .filter-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crm-tab, .subtab, .filter-tabs .tab { padding: 0.6rem 1.2rem; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.crm-tab:hover, .subtab:hover, .filter-tabs .tab:hover { color: var(--text-dark); }
.crm-tab.active, .subtab.active, .filter-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-header-left h1 { margin: 0 0 0.25rem; color: var(--text-dark); }
.back-link { display: inline-block; color: var(--text-muted); text-decoration: none; font-size: 0.8125rem; margin-bottom: 0.4rem; }
.back-link:hover { color: var(--primary); }
.header-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.header-stats { display: flex; gap: 1rem; margin-top: 0.25rem; }
.stat-badge { font-size: 0.8125rem; color: var(--text-muted); }
.stat-badge strong { color: var(--text-dark); }

.filter-bar { margin-bottom: 1rem; }
.filter-bar-inner { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.filter-search { flex: 1; min-width: 180px; max-width: 320px; }
.table-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

.col-hot { width: 36px; padding: 0 0.25rem; }
.btn-hot { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: 0.25; transition: opacity 0.15s; padding: 2px 4px; }
.btn-hot:hover { opacity: 0.75; }
.btn-hot.is-hot { opacity: 1; }
.hot-indicator { font-size: 0.9rem; margin-right: 0.4rem; }
.lead-name-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.lead-name-link:hover { color: var(--primary-light); }

.score-gauge { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.score-gauge-bar { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.score-gauge-bar.score-hot  { background: #dc3545; }
.score-gauge-bar.score-warm { background: #f59e0b; }
.score-gauge-bar.score-cold { background: #6b7280; }
.score-breakdown { list-style: none; padding: 0; margin: 0; font-size: 0.8125rem; }
.score-breakdown li { padding: 0.25rem 0; }
.check-pass { color: var(--success); }
.check-fail { color: var(--text-muted); }

.status-select { padding: 3px 8px; border-radius: var(--radius); font-size: 0.75rem; border: 1px solid var(--border); background: var(--bg-white); color: var(--text-dark); cursor: pointer; }

.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 0.5rem 1rem; margin: 0; }
.detail-list dt { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; padding: 0.25rem 0; }
.detail-list dd { margin: 0; font-size: 0.875rem; padding: 0.25rem 0; color: var(--text-body); }
@media (max-width: 500px) { .detail-list { grid-template-columns: 1fr; } }

.two-col-layout { display: grid; grid-template-columns: var(--col-ratio, 1fr 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { .two-col-layout { grid-template-columns: 1fr; } }

.lead-meta-header { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; align-items: center; }
.meta-item { font-size: 0.8125rem; color: var(--text-muted); }

.note-form { margin-bottom: 1.5rem; }
.note-form textarea { width: 100%; min-height: 80px; margin-bottom: 0.5rem; resize: vertical; }
.notes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.note-item { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.note-item.note-scheduled { border-left: 3px solid var(--primary); }
.note-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.4rem; flex-wrap: wrap; }
.note-author { font-weight: 600; font-size: 0.8125rem; color: var(--text-dark); }
.note-time { font-size: 0.75rem; color: var(--text-muted); }
.note-body { font-size: 0.875rem; line-height: 1.5; }
.note-schedule { font-size: 0.75rem; color: var(--primary); margin-top: 0.4rem; }
.btn-link { background: none; border: none; cursor: pointer; font-size: 0.75rem; padding: 0; color: var(--primary); }

.activity-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.activity-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.activity-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.activity-body { flex: 1; }
.activity-detail { display: block; font-size: 0.875rem; color: var(--text-body); }
.activity-meta { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

.pipeline-strip { display: flex; overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); }
.pipeline-strip-stage { flex: 1; min-width: 90px; border-right: 1px solid var(--border); }
.pipeline-strip-stage:last-child { border-right: none; }
.stage-link { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 0.5rem; text-decoration: none; color: var(--text-muted); transition: background 0.15s; gap: 0.2rem; }
.stage-link:hover, .stage-link.active { background: var(--bg-light); color: var(--primary); }
.stage-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.stage-label { font-size: 0.7rem; font-weight: 600; text-align: center; }
.stage-count { font-size: 0.875rem; font-weight: 700; color: var(--text-dark); }
.stage-value { font-size: 0.7rem; color: var(--success); }
.stage-closed .stage-link { opacity: 0.6; }

.pipeline-progress { display: flex; align-items: flex-start; margin-bottom: 1.5rem; overflow-x: auto; }
.pipeline-step { flex: 1; min-width: 60px; display: flex; flex-direction: column; align-items: center; position: relative; gap: 0.3rem; opacity: 0.4; }
.pipeline-step::before { content: ''; position: absolute; top: 5px; left: calc(50% + 8px); right: calc(-50% + 8px); height: 2px; background: var(--border); }
.pipeline-step:last-child::before { display: none; }
.pipeline-step.past, .pipeline-step.current { opacity: 1; }
.pipeline-step.current .step-dot { border: 2px solid var(--primary); box-shadow: 0 0 0 3px rgba(26,45,90,0.15); }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--silver); position: relative; z-index: 1; }
.step-label { font-size: 0.65rem; text-align: center; color: var(--text-muted); max-width: 60px; line-height: 1.2; }
.pipeline-step.current .step-label { color: var(--primary); font-weight: 700; }

.quick-note-cell { max-width: 240px; }
.quick-note-display { cursor: pointer; min-height: 20px; }
.quick-note-text { font-size: 0.8125rem; color: var(--text-body); }
.quick-note-meta { color: var(--text-muted); font-size: 0.7rem; }
.quick-note-empty { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }
.quick-note-textarea { width: 100%; font-size: 0.8125rem; margin-bottom: 0.4rem; resize: vertical; }
.quick-note-actions { display: flex; gap: 0.4rem; }

.opp-list { display: flex; flex-direction: column; gap: 0.5rem; }
.opp-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-white); transition: border-color 0.15s; }
.opp-item.opp-active  { border-color: var(--primary); }
.opp-item.opp-overdue { border-left: 3px solid var(--error); }
.opp-header { padding: 0.75rem 1rem; cursor: pointer; }
.opp-header:hover { background: var(--bg-light); }
.opp-title-row { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.3rem; }
.opp-title-row strong { font-size: 0.875rem; color: var(--text-dark); }
.opp-meta-row { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.opp-status-badge { padding: 1px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.opp-detail { padding: 0 1rem 1rem; border-top: 1px solid var(--border); }

.permissions-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px)  { .permissions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .permissions-grid { grid-template-columns: repeat(3, 1fr); } }
.permission-item { background: var(--bg-light); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.permission-item label { display: block; cursor: pointer; font-size: 0.875rem; }

.lead-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; word-wrap: break-word; }
.lead-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.lead-card__name { margin: 0; font-size: 1.1rem; color: var(--text-dark); }
.lead-card__contact { margin: 0.5rem 0; color: var(--text-muted); font-size: 0.875rem; word-break: break-all; }
.lead-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 0.5rem; }

.article-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.article-card__title { margin: 1rem 0; font-size: 1.1rem; color: var(--primary); word-break: break-word; }
.article-card__meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem; }

.chat-container { max-width: 100%; overflow-x: hidden; }
.chat-message { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; margin-bottom: 0.5rem; box-shadow: var(--shadow-sm); word-wrap: break-word; }
.chat-message--own { background: var(--info-bg); margin-left: 1rem; }
@media (min-width: 768px) { .chat-message { padding: 1rem; } .chat-message--own { margin-left: 2rem; } }
.chat-message__header { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.8rem; }
.chat-message__author { font-weight: 700; color: var(--text-dark); }
.chat-message__role { color: var(--text-muted); font-style: italic; }
.chat-message__time { color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.chat-date-divider { text-align: center; margin: 1.5rem 0; position: relative; }
.chat-date-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.chat-date-divider span { background: var(--bg-page); padding: 0.5rem 1rem; position: relative; z-index: 1; color: var(--text-muted); font-weight: 500; font-size: 0.875rem; }

.mission-payment-tracker { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.progress-bar { width: 100%; height: 30px; background: var(--border); border-radius: 15px; overflow: hidden; margin-bottom: 1rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--success) 0%, #047857 100%); transition: width 0.3s ease; }
.payment-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .payment-stats { grid-template-columns: repeat(3, 1fr); } }
.payment-stats .stat { text-align: center; }
.payment-stats .label { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.payment-stats .value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--text-dark); }
.payment-stats .value.green { color: var(--success); }
.payment-stats .value.red   { color: var(--error); }

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--text-dark); margin-bottom: 0.75rem; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-content { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-content { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.5); max-width: 260px; }
.footer-section h3 { color: rgba(255,255,255,0.9); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-weight: 600; }
.footer-section a { color: rgba(255,255,255,0.5); display: block; margin-bottom: 0.6rem; font-size: 0.875rem; transition: color 0.15s; }
.footer-section a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ========================================
   ADMIN LAYOUT
   ======================================== */
.admin-layout { display: flex; min-height: calc(100vh - 68px); flex-direction: column; background: var(--bg-page); }
.admin-content { flex: 1; padding: 1.5rem; max-width: 100%; }
.admin-sidebar { background: var(--primary); color: white; width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) {
    .admin-layout { flex-direction: row; }
    .admin-sidebar { width: 260px; position: sticky; top: 68px; max-height: calc(100vh - 68px); overflow-y: auto; }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state p { margin-bottom: 1rem; }
.empty-state-inline { color: var(--text-muted); font-size: 0.875rem; font-style: italic; }

/* ========================================
   INLINE FORM HELPERS
   ======================================== */
.inline-form, .inline-status-form { display: inline; }
.form-inline-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline-row .form-group { flex: 1; min-width: 120px; }
.form-group-check { flex: 0 0 auto !important; min-width: auto !important; align-self: center; }

/* ========================================
   UTILITIES
   ======================================== */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: var(--text-muted); }
.text-dark     { color: var(--text-dark); }
.text-primary  { color: var(--primary); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--error); }
.text-warning  { color: var(--warning); }
.fw-bold       { font-weight: 700; }
.fw-semibold   { font-weight: 600; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 1rem; }
.w-100         { width: 100%; }
.ml-auto       { margin-left: auto; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem;   }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem;   }

/* ========================================
   RESPONSIVE HELPERS
   ======================================== */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
    .data-table  { display: block; overflow-x: auto; }
    .page-header { flex-direction: column; }
    .header-actions { width: 100%; }
    .filter-bar-inner { flex-direction: column; }
    .filter-search { max-width: 100%; }
    .pipeline-strip { display: none; }
    .quick-note-cell { max-width: 140px; }
}
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
