:root {
    /* Official Inflowpedia Logo Color Spectrum */
    --brand-orange: #ff8a3d;
    --brand-pink: #ff2e86;
    --brand-purple: #7c3aed;
    --brand-blue: #3b82f6;
    --brand-cyan: #0ea5e9;

    /* Refined Light-Theme Brand Gradients */
    --grad-main: linear-gradient(135deg, #ff8a3d 0%, #ff2e86 38%, #7c3aed 72%, #0ea5e9 100%);
    --grad-warm: linear-gradient(135deg, #ff8a3d 0%, #ff2e86 100%);
    --grad-cool: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 100%);
    --grad-pill: linear-gradient(90deg, #ff8a3d 0%, #ff2e86 35%, #7c3aed 70%, #0ea5e9 100%);

    /* Crisp White / Off-White / Soft Ash-White Light Surfaces */
    --bg: #f4f6fb;              /* Cool Ash-White Canvas */
    --bg-offwhite: #fafbff;     /* Soft Off-White */
    --surface: #ffffff;         /* Pure White Card */
    --surface-ash: #edf1f8;     /* Soft Ash-White Band / Footer */

    /* Soft Pastel Tints (Harmonized with Logo Spectrum) */
    --tint-violet: #f5f3ff;
    --tint-rose: #fff1f7;
    --tint-sky: #f0f9ff;
    --tint-peach: #fff7ed;

    /* High-Contrast Refined Indigo-Slate Ink (Never Harsh Black) */
    --ink: #1a1738;
    --navy: #1e1b4b;
    --slate: #475569;
    --muted: #64748b;
    --border: #e2e7f2;
    --border-strong: #cbd5e1;

    /* Semantic Colors */
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-soft: #f5f3ff;
    --emerald: #059669;
    --amber: #d97706;
    --amber-soft: #fffbeb;
    --blue: #0284c7;
    --blue-soft: #f0f9ff;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --indigo: #6366f1;
    --indigo-soft: #eef2ff;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 2px rgba(26, 23, 56, 0.04);
    --shadow-sm: 0 3px 10px rgba(26, 23, 56, 0.05);
    --shadow-md: 0 12px 30px rgba(26, 23, 56, 0.08);
    --shadow-glow: 0 16px 36px rgba(124, 58, 237, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand, .hero-title {
    font-family: "Outfit", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
}
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-pink); }
img { max-width: 100%; display: block; }
code {
    background: var(--tint-violet); color: var(--primary-dark);
    padding: 2px 7px; border-radius: 6px; font-size: 0.88em; font-weight: 600;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: 72px 0; position: relative; }
.section-sm { padding: 40px 0; position: relative; }
.band-white { background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ash { background: var(--bg); }

/* Brand Wordmark */
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: 0.3px; flex-shrink: 0;
}
.brand-logo-img { height: 38px; width: auto; object-fit: contain; display: block; }
.brand-wordmark { display: inline-flex; align-items: baseline; font-weight: 900; letter-spacing: 0.6px; color: var(--ink); }
.brand-wordmark .w-pedia {
    background: var(--grad-cool);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =====================================================================
   STICKY LIGHT NAVBAR WITH CLEAN USER DROPDOWN (ZERO OVERFLOW)
   ===================================================================== */
.navbar {
    position: sticky; top: 0; z-index: 120;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(26, 23, 56, 0.04);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--slate); font-weight: 700; font-size: 14px; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-purple); }
.nav-links a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px;
    background: var(--grad-main); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none; background: var(--bg); border: 1px solid var(--border);
    color: var(--ink); padding: 7px 12px; border-radius: 9px; font-size: 18px; cursor: pointer;
}

/* User Dropdown Menu in Navbar */
.user-menu { position: relative; }
.user-menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ffffff; border: 1.5px solid var(--border);
    color: var(--ink); padding: 5px 12px 5px 6px; border-radius: 999px;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.user-menu-btn:hover { border-color: var(--brand-purple); background: var(--tint-violet); }
.user-menu-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--grad-main); color: #fff; font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.user-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
    background: #ffffff; border: 1px solid var(--border); border-radius: 14px;
    padding: 8px; box-shadow: 0 18px 42px rgba(26, 23, 56, 0.14); z-index: 200;
}
.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-dropdown a {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px;
    color: var(--ink); font-size: 13.5px; font-weight: 600;
}
.user-menu-dropdown a:hover { background: var(--tint-violet); color: var(--brand-purple); }
.user-menu-dropdown .menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.user-menu-dropdown a.menu-logout { color: var(--red); }
.user-menu-dropdown a.menu-logout:hover { background: var(--red-soft); color: var(--red); }

/* =====================================================================
   BUTTON SYSTEM (VIBRANT LIGHT-THEME SPECTRUM)
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14px;
    border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
    text-decoration: none; white-space: nowrap; line-height: 1.25;
}
.btn-primary {
    background: var(--grad-main); color: #ffffff; border: none;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.24);
}
.btn-primary:hover { transform: translateY(-1.5px); box-shadow: 0 10px 26px rgba(255, 46, 134, 0.30); color: #ffffff; }
.btn-warm {
    background: var(--grad-warm); color: #ffffff; border: none;
    box-shadow: 0 6px 18px rgba(255, 46, 134, 0.24);
}
.btn-warm:hover { transform: translateY(-1.5px); box-shadow: 0 10px 26px rgba(255, 138, 61, 0.34); color: #ffffff; }
.btn-cool {
    background: var(--grad-cool); color: #ffffff; border: none;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.24);
}
.btn-cool:hover { transform: translateY(-1.5px); box-shadow: 0 10px 26px rgba(124, 58, 237, 0.30); color: #ffffff; }
.btn-navy {
    background: var(--navy); color: #ffffff; border: none;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.16);
}
.btn-navy:hover { background: #312e81; color: #ffffff; transform: translateY(-1px); }
.btn-outline { background: #ffffff; color: var(--ink); border-color: #d5dce8; }
.btn-outline:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--tint-violet); }
.btn-danger { background: var(--red); color: #ffffff; border: none; }
.btn-danger:hover { background: #b91c1c; color: #ffffff; }
.btn-amber { background: #f59e0b; color: #ffffff; border: none; }
.btn-amber:hover { background: #d97706; color: #ffffff; }
.btn-pill { border-radius: 999px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* Cards & Grids */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: #c4b5fd;
}
.card-tinted-violet { background: var(--tint-violet); border-color: #ddd6fe; }
.card-tinted-sky { background: var(--tint-sky); border-color: #bae6fd; }
.card-tinted-rose { background: var(--tint-rose); border-color: #fbcfe8; }
.card-tinted-peach { background: var(--tint-peach); border-color: #fed7aa; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: 295px minmax(0, 1fr); }
.grid-task-room { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.badge-emerald { background: #dcfce7; color: #166534; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-amber { background: #ffedd5; color: #c2410c; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-indigo { background: #f3e8ff; color: #6d28d9; }
.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-gray { background: #f1f5f9; color: #475569; }
.verified-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--grad-cool); color: #ffffff; font-size: 10px; font-weight: 900; flex-shrink: 0;
}

/* =====================================================================
   HOMEPAGE HERO — CRISP OFF-WHITE / ASH-WHITE + NON-OVERLAPPING STAGE
   ===================================================================== */
.portal-hero {
    position: relative;
    padding: 56px 0 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 12%, rgba(255, 138, 61, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 38% 6%, rgba(255, 46, 134, 0.09) 0%, transparent 35%),
        radial-gradient(circle at 92% 16%, rgba(14, 165, 233, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 74% 92%, rgba(124, 58, 237, 0.10) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fc 100%);
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 38px;
    align-items: center;
}
.hero-tagline-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(#ffffff, #ffffff) padding-box, var(--grad-main) border-box;
    border: 1.8px solid transparent;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.10);
}
.hero-tagline-pill .dot-o { color: var(--brand-orange); }
.hero-tagline-pill .dot-p { color: var(--brand-pink); }
.hero-tagline-pill .dot-c { color: var(--brand-cyan); }

.hero-title {
    font-size: 48px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 16px;
}
.hero-title .grad-text {
    background: var(--grad-main);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    color: var(--slate);
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 22px;
}
.hero-ecosystem-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.eco-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: #ffffff; border: 1px solid var(--border); color: var(--slate);
    box-shadow: var(--shadow-xs);
}
.hero-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Clean Non-Overlapping Creator Showcase Stage (Right Column) */
.hero-stage-box {
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid #e6ebf5;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 20px 48px rgba(26, 23, 56, 0.08);
    backdrop-filter: blur(10px);
}
.stage-top-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.stage-crown-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fffbeb; border: 1px solid #fde68a; color: #b45309;
    padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.stage-live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--tint-rose); border: 1px solid #fbcfe8; color: #be185d;
    padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
}
.stage-cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.stage-creator-card {
    background: #ffffff;
    border: 1.5px solid #e6ebf5;
    border-radius: 16px;
    padding: 10px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}
.stage-creator-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-pink);
    box-shadow: 0 16px 32px rgba(255, 46, 134, 0.16);
    color: var(--ink);
}
.stage-portrait {
    height: 138px; border-radius: 12px; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.stage-portrait.art-1 { background: linear-gradient(135deg, #ff8a3d 0%, #ff2e86 58%, #7c3aed 100%); }
.stage-portrait.art-2 { background: linear-gradient(135deg, #ff2e86 0%, #7c3aed 55%, #3b82f6 100%); }
.stage-portrait.art-3 { background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 52%, #0ea5e9 100%); }
.stage-portrait img { width: 100%; height: 100%; object-fit: cover; }
.stage-monogram { font-size: 38px; font-weight: 900; color: #ffffff; letter-spacing: -1px; text-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.stage-plat-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
}
.stage-name { font-weight: 800; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-handle { font-size: 11px; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-stat-pill {
    background: var(--grad-pill);
    border-radius: 10px; padding: 6px 8px;
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    font-size: 11px; font-weight: 800; color: #ffffff;
}
.stage-stat-pill span small { display: block; font-size: 9px; font-weight: 600; opacity: 0.92; }

.stage-bottom-bar {
    margin-top: 14px; padding: 10px 14px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Crisp White Elevated Search Bar inside Hero */
.hero-search-white {
    background: #ffffff;
    border: 1.5px solid #e2e7f2;
    border-radius: 16px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
    gap: 10px;
    box-shadow: 0 14px 36px rgba(26, 23, 56, 0.07);
    margin-top: 32px;
    align-items: center;
}
.hero-search-white input,
.hero-search-white select {
    height: 44px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 13px;
    font-size: 13.5px;
    color: var(--ink);
    width: 100%;
    font-weight: 500;
}
.hero-search-white input:focus,
.hero-search-white select:focus {
    outline: none; background: #ffffff; border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.hero-search-white .btn { height: 44px; }

/* Inner Public Page Light Pastel Banner */
.page-banner-light {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 138, 61, 0.12), transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.14), transparent 40%),
        #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

/* Section Typography */
.section-kicker {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.8px;
    text-transform: uppercase; background: var(--grad-main);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 6px;
}
.section-heading { font-size: 32px; font-weight: 900; letter-spacing: -0.6px; color: var(--ink); margin-bottom: 8px; }

/* 3-Sided Portal Ecosystem Cards */
.eco-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px;
    position: relative; overflow: hidden;
    transition: all .22s ease;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; justify-content: space-between;
}
.eco-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.eco-card.eco-brands::before { background: var(--grad-warm); }
.eco-card.eco-pr::before { background: var(--grad-main); }
.eco-card.eco-creators::before { background: var(--grad-cool); }
.eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: #c4b5fd; }

/* 5 Portal Feature Icons Strip */
.cap-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all .22s ease;
    box-shadow: var(--shadow-sm);
}
.cap-card:hover { transform: translateY(-4px); border-color: #f9a8d4; box-shadow: var(--shadow-glow); }
.cap-icon-box {
    width: 58px; height: 58px; margin: 0 auto 14px;
    border-radius: 15px; background: var(--bg-offwhite);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.cap-card h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cap-card p { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Live Reach Banner */
.trust-banner {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.trust-sectors { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--slate); font-weight: 800; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }
.reach-glow-pill {
    background: var(--grad-pill);
    color: #ffffff; font-weight: 800; font-size: 13px;
    padding: 10px 22px; border-radius: 999px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.22);
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* Niche Tiles */
.niche-tile {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    color: var(--ink); position: relative; overflow: hidden;
    transition: all .22s ease; display: block;
    box-shadow: var(--shadow-sm);
}
.niche-tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3.5px; background: var(--grad-main); }
.niche-tile:hover { transform: translateY(-4px); border-color: var(--brand-purple); box-shadow: var(--shadow-glow); color: var(--ink); }
.niche-title { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.niche-desc { font-size: 12.5px; color: var(--muted); }

/* Final Light Pastel CTA Box */
.cta-light-box {
    border-radius: 24px; padding: 48px 32px; text-align: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 138, 61, 0.18), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(255, 46, 134, 0.12), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.18), transparent 45%),
        #ffffff;
    border: 1.5px solid var(--border);
    box-shadow: 0 16px 42px rgba(26, 23, 56, 0.07);
}

/* Text Clamp for Even Card Grids */
.line-clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Social Pills & Video */
.social-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: 9px; border: 1px solid var(--border); background: var(--bg-offwhite);
    color: var(--ink); font-size: 13px; font-weight: 600; transition: .15s ease;
}
.social-pill:hover { border-color: var(--brand-purple); background: var(--tint-violet); color: var(--brand-purple); }
.social-pill .reach { color: var(--brand-pink); font-weight: 800; }

.video-frame { border-radius: 12px; overflow: hidden; background: #0f172a; }
.video-embed-16x9 { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background: #0f172a; }
.video-embed-16x9 iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-link-card { padding: 12px 14px; background: var(--bg-offwhite); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Forms, Alerts, Tables */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 13px; border: 1.5px solid #dce2ee;
    border-radius: 10px; font-size: 14px; background: #ffffff; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14); }
textarea.form-control { min-height: 92px; resize: vertical; }
.form-help { font-size: 12px; color: var(--muted); margin-top: 5px; }

.alert {
    padding: 14px 18px; border-radius: 12px; margin-bottom: 18px;
    border: 1px solid transparent; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-info { background: var(--tint-sky); border-color: #bae6fd; color: #075985; }
.alert-warning { background: var(--tint-peach); border-color: #fed7aa; color: #9a3412; }
.alert-danger { background: var(--red-soft); border-color: #fecaca; color: #991b1b; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th {
    text-align: left; padding: 11px 12px; background: var(--bg-offwhite);
    color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 1.5px solid var(--border);
}
table.table td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table tbody tr:hover { background: #fafbff; }
table.table tr:last-child td { border-bottom: none; }

/* =====================================================================
   PORTAL WORKSPACE LAYOUT (CRISP WHITE SIDEBAR + ASH-WHITE CANVAS)
   ===================================================================== */
.portal-shell { display: grid; grid-template-columns: 266px minmax(0, 1fr); min-height: 100vh; }
.portal-sidebar {
    background: #ffffff; color: var(--slate); padding: 20px 14px;
    display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid var(--border);
}
.portal-sidebar .brand { color: var(--ink); padding: 4px 10px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.side-section { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); padding: 12px 12px 4px; font-weight: 800; }
.side-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--slate); font-weight: 600; font-size: 13.5px; transition: all .15s ease; }
.side-link:hover { background: var(--tint-violet); color: var(--brand-purple); }
.side-link.active { background: var(--grad-main); color: #ffffff; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.22); }
.side-link.active .badge { background: rgba(255,255,255,0.24); color: #ffffff; }
.portal-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.portal-topbar { background: #ffffff; border-bottom: 1px solid var(--border); padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.portal-content { padding: 26px; max-width: 1280px; width: 100%; }

/* Colorful Top-Accent KPI Cards */
.kpi-card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 14px;
    padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-main); opacity: 0.7; }
.kpi-label { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.kpi-value { font-size: 26px; font-weight: 900; color: var(--ink); margin-top: 6px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--grad-main); color: #ffffff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; flex-shrink: 0; overflow: hidden;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}
.avatar-lg { width: 80px; height: 80px; font-size: 26px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.step-item { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-offwhite); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.step-item.done { background: var(--tint-violet); border-color: #c4b5fd; color: var(--primary-dark); }
.step-item.current { background: var(--tint-sky); border-color: #7dd3fc; color: #0369a1; }

.audit-stream { border-left: 2px solid #ddd6fe; margin-left: 10px; padding-left: 20px; }
.audit-item { position: relative; margin-bottom: 18px; }
.audit-item::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-purple); border: 2px solid #ffffff; box-shadow: 0 0 0 2px var(--brand-purple); }

.chat-box { height: 420px; overflow-y: auto; padding: 16px; background: var(--bg-offwhite); border: 1px solid var(--border); border-radius: 12px; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; font-size: 14px; }
.chat-me { margin-left: auto; background: var(--grad-cool); color: #ffffff; border-bottom-right-radius: 4px; }
.chat-them { background: #ffffff; border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
.conv-item { padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; background: var(--bg-offwhite); color: var(--ink); border: 1px solid transparent; transition: .15s ease; }
.conv-item:hover { background: var(--tint-violet); }
.conv-item.active { background: var(--tint-violet); border-color: #c4b5fd; color: var(--primary-dark); }

.faq-item { border: 1px solid var(--border); border-radius: 12px; background: #ffffff; margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 15px 18px; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; color: var(--ink); }
.faq-a { padding: 0 18px 16px; color: var(--slate); display: none; }
.faq-item.open .faq-a { display: block; }

/* Soft Ash-White Footer */
.footer {
    background: var(--surface-ash);
    color: var(--slate);
    padding: 56px 0 28px;
    margin-top: 64px;
    border-top: 1px solid var(--border);
    position: relative;
}
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-main); }
.footer h4 { color: var(--ink); font-size: 12.5px; font-weight: 800; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.9px; }
.footer a { color: var(--slate); display: block; margin-bottom: 9px; font-size: 14px; font-weight: 500; }
.footer a:hover { color: var(--brand-purple); }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.gap-4 { gap: 20px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 22px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13.5px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 700; }
.text-right { text-align: right; }

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-title { font-size: 40px; }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .grid-4, .grid-3, .grid-2, .grid-5, .grid-sidebar, .grid-task-room, .hero-search-white { grid-template-columns: 1fr; }
    .portal-shell { grid-template-columns: 1fr; }
    .portal-sidebar { flex-direction: row; flex-wrap: wrap; padding: 12px; border-right: none; border-bottom: 1px solid var(--border); }
    .portal-sidebar .side-section { display: none; }
    .nav-links {
        display: none; position: absolute; top: 74px; left: 0; right: 0;
        background: #ffffff; padding: 18px 24px;
        flex-direction: column; align-items: flex-start; gap: 14px;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .stage-cards-row { grid-template-columns: 1fr; gap: 12px; }
    .hero-title { font-size: 32px; }
}


/* =====================================================================
   v2.6 ADDITIONS: COVER BANNERS, PROGRESSIVE CHECKLIST & INLINE SOCIAL EDIT
   ===================================================================== */
.profile-cover-hero {
    position: relative;
    height: 240px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.34), transparent 45%),
        radial-gradient(circle at 52% 80%, rgba(255, 46, 134, 0.24), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.34), transparent 45%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
    border-bottom: 1px solid var(--border);
}
.profile-cover-hero img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.profile-cover-badges {
    position: absolute; top: 16px; right: 16px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.profile-cover-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.profile-cover-body {
    padding: 0 26px 26px;
    position: relative;
}
.profile-avatar-overlap {
    margin-top: -46px;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 24px rgba(26, 23, 56, 0.16);
    background: var(--grad-main);
}
.card-cover-strip {
    height: 86px;
    margin: -22px -22px 14px -22px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 14% 25%, rgba(255, 138, 61, 0.26), transparent 50%),
        radial-gradient(circle at 86% 25%, rgba(14, 165, 233, 0.28), transparent 50%),
        linear-gradient(135deg, #f3e8ff 0%, #fce7f3 50%, #e0f2fe 100%);
    border-bottom: 1px solid var(--border);
}
.card-cover-strip img { width: 100%; height: 100%; object-fit: cover; }
.card-cover-strip .strip-badge { position: absolute; top: 8px; right: 8px; }

.cover-preview-box {
    height: 150px; border-radius: 12px; overflow: hidden;
    border: 1.5px dashed #c4b5fd; background: var(--tint-violet);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-dark); font-weight: 700; font-size: 13px;
    margin-bottom: 12px;
}
.cover-preview-box img { width: 100%; height: 100%; object-fit: cover; }

/* Profile Completion Progress Bar */
.progress-track {
    height: 10px; background: #e8ecf5; border-radius: 999px; overflow: hidden; margin: 10px 0 14px;
}
.progress-fill {
    height: 100%; background: var(--grad-pill); border-radius: 999px; transition: width .3s ease;
}
.checklist-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.check-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    border: 1px solid var(--border); background: #ffffff; color: var(--slate);
}
.check-chip.done { background: #dcfce7; border-color: #86efac; color: #166534; }
.check-chip:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

/* Checkbox Pills for Formats & Collaboration Types */
.pill-check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-check {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--bg-offwhite);
    font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
    transition: all .15s ease;
}
.pill-check:hover { border-color: var(--brand-purple); background: var(--tint-violet); }
.pill-check input { accent-color: var(--brand-purple); width: 15px; height: 15px; }

/* Inline Social Edit Drawer Row */
.social-edit-row { background: var(--tint-violet); }
.social-edit-panel {
    background: #ffffff; border: 1.5px solid #c4b5fd; border-radius: 12px; padding: 14px;
}

/* Precise Insights Grid on Public Profile */
.insight-item {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
}
.insight-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.insight-val { font-size: 14px; font-weight: 700; color: var(--ink); }

@media (max-width: 720px) {
    .profile-cover-hero { height: 165px; }
    .profile-cover-body { padding: 0 16px 20px; }
    .profile-avatar-overlap { margin-top: -36px; }
}


/* =====================================================================
   v2.7 ADDITIONS: NOTIFICATION BELL + MESSENGER DOCK + SERVICE MEDIA
   ===================================================================== */
.notif-wrap { position: relative; display: inline-flex; align-items: center; }
.notif-bell-btn {
    position: relative; width: 38px; height: 38px; border-radius: 50%;
    background: #ffffff; border: 1.5px solid var(--border); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .18s ease;
}
.notif-bell-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--tint-violet); }
.notif-bell-btn.notif-ring { animation: bellRing 0.7s ease; border-color: var(--brand-pink); }
@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-14deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-8deg); }
}
.notif-badge {
    position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
    padding: 0 5px; border-radius: 999px; background: var(--grad-warm); color: #ffffff;
    font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #ffffff; box-shadow: 0 3px 10px rgba(255, 46, 134, 0.35);
}
.notif-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 10px);
    width: 360px; max-width: calc(100vw - 24px);
    background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 20px 50px rgba(26, 23, 56, 0.16); z-index: 300; overflow: hidden;
}
.notif-wrap.open .notif-dropdown { display: block; }
.notif-head {
    padding: 12px 14px; background: var(--bg-offwhite); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.notif-action-btn {
    background: #ffffff; border: 1px solid var(--border); color: var(--slate);
    font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; cursor: pointer;
}
.notif-action-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-empty { padding: 28px 18px; text-align: center; font-size: 13px; color: var(--muted); }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
    border-bottom: 1px solid var(--border); color: var(--ink); transition: background .15s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-offwhite); color: var(--ink); }
.notif-item.unread { background: var(--tint-violet); }
.notif-ico {
    width: 32px; height: 32px; border-radius: 10px; background: #ffffff; border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.notif-item-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.notif-item-body { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.notif-item-time { font-size: 11px; color: var(--brand-purple); font-weight: 600; margin-top: 3px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-pink); flex-shrink: 0; margin-top: 6px; }

/* Floating Messenger Dock */
.msgr-dock { position: fixed; right: 22px; bottom: 22px; z-index: 260; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.msgr-launcher {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 20px; border-radius: 999px; border: none; cursor: pointer;
    background: var(--grad-main); color: #ffffff; font-weight: 800; font-size: 14px;
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.34); transition: transform .18s ease, box-shadow .18s ease;
}
.msgr-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 46, 134, 0.40); }
.msgr-unread-pill {
    background: #ffffff; color: var(--brand-pink); font-size: 11.5px; font-weight: 900;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.msgr-popup {
    display: none; width: 356px; max-width: calc(100vw - 28px); height: 485px; max-height: calc(100vh - 110px);
    background: #ffffff; border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(26, 23, 56, 0.22); overflow: hidden;
}
.msgr-popup.open { display: flex; flex-direction: column; }
.msgr-view { display: flex; flex-direction: column; height: 100%; }
.msgr-header {
    padding: 12px 14px; background: var(--grad-main); color: #ffffff;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.msgr-title { font-weight: 800; font-size: 14.5px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-sub { font-size: 11px; color: rgba(255,255,255,0.88); }
.msgr-logo-dot { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.msgr-icon-btn {
    width: 30px; height: 30px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.20); color: #ffffff; font-size: 14px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.msgr-icon-btn:hover { background: rgba(255,255,255,0.34); color: #ffffff; }
.msgr-search-wrap { padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-offwhite); }
.msgr-search {
    width: 100%; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--border);
    background: #ffffff; font-size: 13px; color: var(--ink);
}
.msgr-conv-list { flex: 1; overflow-y: auto; padding: 6px; }
.msgr-conv-row {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    border: none; background: transparent; border-radius: 12px; cursor: pointer; transition: background .15s ease;
}
.msgr-conv-row:hover { background: var(--tint-violet); }
.msgr-peer-av {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.24);
    color: #ffffff; font-size: 13px; font-weight: 800; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.msgr-conv-row .msgr-peer-av { background: var(--grad-cool); }
.msgr-peer-av img { width: 100%; height: 100%; object-fit: cover; }
.msgr-unread-dot {
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--brand-pink); color: #ffffff; font-size: 10.5px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.msgr-messages {
    flex: 1; overflow-y: auto; padding: 14px 12px; background: var(--bg-offwhite);
    display: flex; flex-direction: column; gap: 8px;
}
.msgr-bubble {
    max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4;
}
.msgr-bubble.me { align-self: flex-end; background: var(--grad-cool); color: #ffffff; border-bottom-right-radius: 4px; }
.msgr-bubble.them { align-self: flex-start; background: #ffffff; border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
.msgr-btime { display: block; font-size: 10px; opacity: 0.72; margin-top: 3px; text-align: right; }
.msgr-composer {
    padding: 10px; border-top: 1px solid var(--border); background: #ffffff;
    display: flex; align-items: center; gap: 8px;
}
.msgr-input {
    flex: 1; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--border);
    background: var(--bg); font-size: 13.5px; color: var(--ink);
}
.msgr-input:focus { outline: none; border-color: var(--brand-purple); background: #ffffff; }
.msgr-send-btn {
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--grad-main); color: #ffffff; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.msgr-empty { padding: 34px 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* Full-Screen Messenger Shell */
.msgr-full-shell {
    display: grid; grid-template-columns: 320px minmax(0, 1fr);
    background: #ffffff; border: 1px solid var(--border); border-radius: 18px;
    overflow: hidden; min-height: 590px; box-shadow: var(--shadow-sm);
}
.msgr-full-sidebar { border-right: 1px solid var(--border); display: flex; flex-direction: column; background: var(--bg-offwhite); }
.msgr-full-side-head { padding: 16px; border-bottom: 1px solid var(--border); background: #ffffff; }
.msgr-full-list { flex: 1; overflow-y: auto; padding: 8px; }
.msgr-full-item {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px;
    color: var(--ink); margin-bottom: 4px; transition: background .15s ease;
}
.msgr-full-item:hover { background: var(--tint-violet); color: var(--ink); }
.msgr-full-item.active { background: var(--tint-violet); border: 1px solid #c4b5fd; }
.msgr-full-main { display: flex; flex-direction: column; min-width: 0; }
.msgr-full-head {
    padding: 14px 20px; border-bottom: 1px solid var(--border); background: #ffffff;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.msgr-full-messages {
    flex: 1; max-height: 440px; overflow-y: auto; padding: 18px; background: var(--bg);
    display: flex; flex-direction: column;
}
.msgr-full-composer { padding: 14px 18px; border-top: 1px solid var(--border); background: #ffffff; }

/* Service Card Photo & Video Media */
.service-media-thumb {
    width: 100%; height: 175px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-offwhite); margin-bottom: 12px;
}
.service-media-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .msgr-full-shell { grid-template-columns: 1fr; }
    .msgr-full-sidebar { max-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
    .msgr-dock { right: 12px; bottom: 12px; }
}


/* =====================================================================
   v2.8 ADDITIONS: CREATOR STUDIO EDITOR UI/UX & PUBLIC GATED PROFILE UI
   ===================================================================== */

/* Studio Top Header & Strength Ring */
.studio-hero-bar {
    background:
        radial-gradient(circle at 8% 20%, rgba(255, 138, 61, 0.14), transparent 40%),
        radial-gradient(circle at 92% 20%, rgba(14, 165, 233, 0.16), transparent 40%),
        #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.strength-ring-wrap {
    position: relative; width: 64px; height: 64px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.strength-ring-wrap svg { transform: rotate(-90deg); width: 64px; height: 64px; }
.strength-ring-val {
    position: absolute; font-size: 14px; font-weight: 900; color: var(--ink);
}

/* 2-Column Studio Shell (Left Sticky Tabs + Right Active Panel) */
.studio-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.studio-nav {
    position: sticky; top: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 5px;
}
.studio-nav-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
    color: var(--muted); padding: 6px 12px 4px;
}
.studio-tab-btn {
    width: 100%; text-align: left; border: 1px solid transparent; background: transparent;
    padding: 11px 13px; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--slate);
    transition: all .18s ease;
}
.studio-tab-btn:hover { background: var(--tint-violet); color: var(--brand-purple); }
.studio-tab-btn.active {
    background: var(--grad-main); color: #ffffff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.24);
}
.studio-tab-btn .tab-meta {
    font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
    background: var(--bg); color: var(--muted);
}
.studio-tab-btn.active .tab-meta { background: rgba(255,255,255,0.24); color: #ffffff; }

.studio-panel { display: none; animation: studioFade .2s ease; }
.studio-panel.active { display: block; }
@keyframes studioFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Live Profile Card Visual Preview inside Studio */
.live-preview-card {
    background: #ffffff; border: 1.5px solid var(--border); border-radius: 18px;
    overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.live-preview-cover {
    height: 170px; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.34), transparent 45%),
        radial-gradient(circle at 52% 80%, rgba(255, 46, 134, 0.24), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.34), transparent 45%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
}
.live-preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.live-preview-body { padding: 0 20px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.live-preview-avatar {
    width: 86px; height: 86px; margin-top: -42px; border-radius: 50%;
    border: 4px solid #ffffff; background: var(--grad-main); color: #ffffff;
    font-size: 26px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 8px 22px rgba(26, 23, 56, 0.16); position: relative; z-index: 2;
}
.live-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #c4b5fd; border-radius: 14px; background: var(--bg-offwhite);
    padding: 18px; text-align: center; transition: all .18s ease;
}
.upload-dropzone:hover { border-color: var(--brand-purple); background: var(--tint-violet); }

/* Availability Visual Radio Cards */
.avail-radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.avail-radio-card {
    display: flex; align-items: center; gap: 8px; padding: 11px 12px;
    border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg-offwhite);
    cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); transition: all .15s ease;
}
.avail-radio-card:hover { border-color: var(--brand-purple); background: var(--tint-violet); }
.avail-radio-card input { accent-color: var(--brand-purple); }

/* =====================================================================
   FRONTEND PUBLIC PROFILE v2.8 (2-COLUMN LAYOUT + GUEST GATING CARDS)
   ===================================================================== */
.cp-hero-card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 22px;
    overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 24px;
}
.cp-cover {
    height: 255px; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.36), transparent 46%),
        radial-gradient(circle at 50% 85%, rgba(255, 46, 134, 0.26), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.36), transparent 46%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
}
.cp-cover img { width: 100%; height: 100%; object-fit: cover; }
.cp-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 40%, rgba(15, 23, 42, 0.28) 100%);
}
.cp-hero-inner { padding: 0 28px 26px; position: relative; }
.cp-avatar {
    width: 108px; height: 108px; margin-top: -54px; border-radius: 50%;
    border: 5px solid #ffffff; background: var(--grad-main); color: #ffffff;
    font-size: 32px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 12px 28px rgba(26, 23, 56, 0.18); flex-shrink: 0; position: relative; z-index: 3;
}
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cp-stat-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
    margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
}
.cp-stat-pill {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 16px;
}
.cp-stat-pill .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cp-stat-pill .val { font-size: 22px; font-weight: 900; color: var(--ink); margin-top: 3px; }
.cp-stat-pill .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.cp-section-nav {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 8px; background: #ffffff;
    border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs);
}
.cp-section-nav a {
    padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--slate);
}
.cp-section-nav a:hover { background: var(--tint-violet); color: var(--brand-purple); }

.cp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: start;
}
.cp-sticky-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }

/* Guest Locked / Frosted Gatekeeper Cards */
.guest-lock-card {
    position: relative;
    border-radius: 18px;
    border: 1.5px dashed #c4b5fd;
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 138, 61, 0.14), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(14, 165, 233, 0.16), transparent 45%),
        #ffffff;
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.guest-lock-icon {
    width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px;
    background: var(--grad-main); color: #ffffff; font-size: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
}
.guest-blur-preview {
    filter: blur(5px); opacity: 0.45; pointer-events: none; user-select: none;
}
.guest-video-teaser {
    position: relative; height: 230px; border-radius: 16px; overflow: hidden;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 138, 61, 0.35), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(14, 165, 233, 0.35), transparent 45%),
        linear-gradient(135deg, #eef2ff 0%, #fce7f3 50%, #e0f2fe 100%);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
}
.guest-video-overlay {
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 16px; padding: 20px 26px; max-width: 440px;
    box-shadow: 0 14px 36px rgba(26, 23, 56, 0.12);
}
.guest-social-locked {
    padding: 15px; border-radius: 14px; background: var(--bg-offwhite);
    border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between;
}
.unlock-checklist {
    list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; font-size: 13.5px; color: var(--slate);
}
.unlock-checklist li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.unlock-checklist li::before { content: "✓"; color: var(--brand-purple); font-weight: 900; }

@media (max-width: 980px) {
    .studio-shell, .cp-layout { grid-template-columns: 1fr; }
    .studio-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .studio-nav-label { display: none; }
    .studio-tab-btn { width: auto; flex: 1 1 auto; }
    .cp-sticky-side { position: static; }
    .cp-stat-strip { grid-template-columns: repeat(2, 1fr); }
    .avail-radio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cp-cover { height: 175px; }
    .cp-hero-inner { padding: 0 16px 20px; }
    .cp-avatar { width: 84px; height: 84px; margin-top: -42px; }
}


/* =====================================================================
   v2.9 ADDITIONS: ONLINE GREEN DOTS, MESSENGER TAB & COVER REPOSITION
   ===================================================================== */

/* Dedicated Messenger Tab in Public Navbar */
.nav-messenger-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px !important; border-radius: 999px;
    background: var(--tint-violet); border: 1px solid #ddd6fe;
    color: var(--primary-dark) !important; font-weight: 800 !important;
}
.nav-messenger-tab:hover, .nav-messenger-tab.active {
    background: var(--grad-main); color: #ffffff !important; border-color: transparent;
}
.nav-messenger-tab.active::after { display: none !important; }
.nav-msgr-badge {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--brand-pink); color: #ffffff; font-size: 10.5px; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Live Green Online Presence Indicators */
.online-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}
.offline-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #94a3b8; flex-shrink: 0;
}
.online-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
    background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
    vertical-align: middle;
}
.offline-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* Avatar Green Online Dot Overlay */
.avatar-presence-wrap, .user-menu-av-wrap, .msgr-av-wrap {
    position: relative; display: inline-flex; flex-shrink: 0;
}
.avatar-online-dot {
    position: absolute; right: 1px; bottom: 1px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #22c55e; border: 2.5px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
    z-index: 4;
}
.mini-online-dot {
    position: absolute; right: -1px; bottom: -1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e; border: 2px solid #ffffff;
    z-index: 4;
}
.cp-avatar-wrap {
    position: relative; display: inline-flex; flex-shrink: 0;
}
.cp-online-dot {
    position: absolute; right: 6px; bottom: 6px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #22c55e; border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.32);
    z-index: 5;
}

/* Interactive Cover Photo Reposition Controls */
.live-preview-cover.is-draggable { cursor: grab; user-select: none; }
.live-preview-cover.dragging { cursor: grabbing; }
.cover-drag-hint {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(8px);
    color: #ffffff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 999px; pointer-events: none;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.reposition-bar {
    background: var(--bg-offwhite); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 14px 16px;
}
.reposition-slider {
    width: 100%; height: 7px; border-radius: 999px;
    accent-color: var(--brand-purple); cursor: pointer;
}


/* =====================================================================
   v3.0 ADDITIONS: SEPARATE ROLE HEADERS, 3-PANE MESSENGER & LIVE SUPPORT
   ===================================================================== */
.navbar-guest { border-top: 3px solid transparent; border-image: var(--grad-main) 1; }
.navbar-buyer { border-top: 3px solid var(--brand-orange); }
.navbar-influencer { border-top: 3px solid var(--brand-cyan); }
.navbar-admin { border-top: 3px solid var(--brand-purple); background: rgba(250, 248, 255, 0.96); }

.header-role-pill {
    font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .5px;
}
.header-role-pill.role-buyer { background: #ffedd5; color: #c2410c; }
.header-role-pill.role-creator { background: #e0f2fe; color: #0369a1; }
.header-role-pill.role-admin { background: #f3e8ff; color: #6d28d9; }
.header-role-pill.role-staff { background: #dcfce7; color: #166534; }

.nav-support-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px !important; border-radius: 999px;
    background: var(--tint-peach); border: 1px solid #fed7aa;
    color: #9a3412 !important; font-weight: 800 !important;
}
.nav-support-tab:hover { background: var(--grad-warm); color: #ffffff !important; border-color: transparent; }

/* Proper 3-Pane Full Messenger App */
.msgr-pro-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 270px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    min-height: 640px;
    box-shadow: var(--shadow-md);
}
.msgr-pro-info {
    border-left: 1px solid var(--border);
    padding: 20px 16px;
    background: var(--bg-offwhite);
    overflow-y: auto;
}
.msgr-filter-chip {
    border: 1px solid var(--border); background: #ffffff; color: var(--slate);
    font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.msgr-filter-chip.active { background: var(--grad-main); color: #ffffff; border-color: transparent; }
.emoji-chip {
    border: 1px solid var(--border); background: var(--bg-offwhite); border-radius: 999px;
    padding: 3px 9px; font-size: 14px; cursor: pointer; transition: transform .12s ease;
}
.emoji-chip:hover { transform: scale(1.15); background: var(--tint-violet); }

/* New Chat Modal */
.inflow-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px);
    z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.inflow-modal-card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 20px;
    padding: 22px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

/* Floating Live Support Dock (Bottom-Left — Zero Overlap with Bottom-Right Messenger) */
.sup-dock { position: fixed; left: 22px; bottom: 22px; z-index: 255; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sup-launcher {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 999px; border: 1.5px solid #e2e7f2; cursor: pointer;
    background: #ffffff; color: var(--ink); font-weight: 800; font-size: 13.5px;
    box-shadow: 0 12px 30px rgba(26, 23, 56, 0.14); transition: all .18s ease;
}
.sup-launcher:hover { transform: translateY(-2px); border-color: var(--brand-purple); color: var(--brand-purple); }
.sup-popup {
    display: none; width: 360px; max-width: calc(100vw - 28px); height: 500px; max-height: calc(100vh - 110px);
    background: #ffffff; border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(26, 23, 56, 0.22); overflow: hidden;
}
.sup-popup.open { display: flex; flex-direction: column; }
.sup-header {
    padding: 12px 14px; background: var(--grad-cool); color: #ffffff;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sup-tabs {
    display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-offwhite); border-bottom: 1px solid var(--border);
}
.sup-tab {
    border: none; background: transparent; padding: 10px; font-size: 12.5px; font-weight: 800;
    color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent;
}
.sup-tab.active { color: var(--brand-purple); border-bottom-color: var(--brand-purple); background: #ffffff; }
.sup-tab-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sup-active-bar {
    padding: 8px 12px; background: var(--tint-sky); border-bottom: 1px solid #bae6fd;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.btn-copied { background: #dcfce7 !important; border-color: #86efac !important; color: #166534 !important; }

@media (max-width: 1120px) {
    .msgr-pro-shell { grid-template-columns: 280px minmax(0, 1fr); }
    .msgr-pro-info { display: none; }
}
@media (max-width: 820px) {
    .msgr-pro-shell { grid-template-columns: 1fr; }
    .sup-dock { left: 12px; bottom: 12px; }
}


/* =====================================================================
   v3.0.1 UI/UX POLISH: UNOBSTRUCTED COVER + STATUS & CATEGORY PLACEMENT
   ===================================================================== */

/* Clean Full-Bleed Cover — Zero Badges Covering the Artwork */
.cp-cover { height: 270px; }
.cp-cover-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 68%, rgba(15, 23, 42, 0.14) 100%);
}
.card-cover-strip {
    height: 98px;
    margin: -22px -22px 0 -22px;
    border-radius: 15px 15px 0 0;
}

/* Dedicated Status + Tier + Category Meta Bar Placed Cleanly BELOW Cover */
.card-below-cover-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    padding: 10px 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cp-below-cover-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 14px;
}
.cp-status-cluster {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* Refined Creator Category Pills (Primary Category + Sub-Niches) */
.cat-row {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    margin-top: 8px;
}
.cat-primary-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--tint-violet); border: 1px solid #c4b5fd;
    color: var(--primary-dark); font-size: 12px; font-weight: 800;
    letter-spacing: 0.2px;
}
.cat-sub-pill {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 999px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    color: var(--slate); font-size: 11.5px; font-weight: 700;
}

/* Hover-Only Drag Hint on Cover Editor so Cover Preview Shows Cleanly */
.live-preview-cover .cover-drag-hint {
    opacity: 0; transition: opacity .18s ease;
}
.live-preview-cover:hover .cover-drag-hint,
.live-preview-cover.dragging .cover-drag-hint {
    opacity: 1;
}

@media (max-width: 640px) {
    .cp-cover { height: 185px; }
}


/* =====================================================================
   v3.1 HOMEPAGE ALIGNMENT, CTA FLOW & UNIQUE FEATURED INFLUENCERS UI
   ===================================================================== */

/* Consistent Section Headers & Equal-Height Grid Stretching */
.sec-head-split {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; flex-wrap: wrap; margin-bottom: 28px;
}
.sec-head-center {
    text-align: center; max-width: 720px; margin: 0 auto 36px;
}
.grid-stretch { align-items: stretch; }

/* Unique Featured Influencer Spotlight Card (.fi-card) */
.fi-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 20px rgba(26, 23, 56, 0.05);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    position: relative;
}
.fi-card:hover {
    transform: translateY(-6px);
    border-color: #c4b5fd;
    box-shadow: 0 20px 44px rgba(124, 58, 237, 0.14);
}
.fi-cover {
    height: 112px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 25%, rgba(255, 138, 61, 0.30), transparent 50%),
        radial-gradient(circle at 86% 25%, rgba(14, 165, 233, 0.32), transparent 50%),
        linear-gradient(135deg, #f3e8ff 0%, #fce7f3 50%, #e0f2fe 100%);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.fi-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.fi-card:hover .fi-cover img { transform: scale(1.04); }

.fi-body {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fi-top-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.fi-avatar-holder {
    margin-top: -34px;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}
.fi-avatar-holder .avatar {
    width: 66px; height: 66px; font-size: 20px;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(26, 23, 56, 0.14);
}
.fi-status-right {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.fi-name {
    font-family: "Outfit", sans-serif;
    font-size: 17px; font-weight: 800; color: var(--ink);
    line-height: 1.25; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fi-name:hover { color: var(--brand-purple); }
.fi-meta {
    font-size: 12px; color: var(--muted); margin-top: 2px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

/* Signature 2-Column Metric Bar (Guarantees Crisp Row Alignment) */
.fi-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-offwhite);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 10px 6px;
    margin-bottom: 12px;
    text-align: center;
}
.fi-metric-col { padding: 0 6px; }
.fi-metric-col + .fi-metric-col { border-left: 1px solid var(--border); }
.fi-metric-val {
    font-family: "Outfit", sans-serif;
    font-size: 15px; font-weight: 900; color: var(--ink);
    line-height: 1.2;
}
.fi-metric-lbl {
    font-size: 10.5px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .4px; margin-top: 2px;
}

.fi-socials {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 10px; min-height: 26px;
}
.fi-bio {
    font-size: 12.5px; color: var(--slate); line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px;
}
.fi-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inline Mid-Page CTA Ribbon (CTA-First Conversion Rule) */
.cta-strip-inline {
    margin-top: 30px;
    padding: 18px 24px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 50%, rgba(255, 138, 61, 0.14), transparent 45%),
        radial-gradient(circle at 90% 50%, rgba(14, 165, 233, 0.14), transparent 45%),
        var(--bg-offwhite);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Niche Tile Action Cue */
.niche-tile {
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.niche-cta {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--brand-purple);
}
.niche-tile:hover .niche-cta { color: var(--brand-pink); }

/* Ecosystem Card CTA Alignment */
.eco-card { height: 100%; }
.eco-card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

/* Spotlight Feed Card Symmetry */
.spot-card {
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.cta-proof-pills {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.cta-proof-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; background: #ffffff;
    border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--ink);
}

@media (max-width: 1120px) {
    .fi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
    .fi-grid-4 { grid-template-columns: 1fr !important; }
    .cta-strip-inline { text-align: center; justify-content: center; }
}


/* =====================================================================
   v3.1.1 COMPACT FEATURED TALENT ROSTER (ZERO EXTRA SPACE FOR GUESTS)
   ===================================================================== */
.featured-roster-section { padding: 40px 0 44px; }
.featured-roster-head { margin-bottom: 18px; }
.featured-roster-grid { gap: 16px; }
.featured-roster-cta { margin-top: 20px; padding: 14px 20px; }

.fi-card-guest .fi-cover { height: 92px; }
.fi-card-guest .fi-body { padding: 0 15px 14px; }
.fi-guest-head {
    display: flex;
    align-items: flex-end;
    gap: 11px;
    margin-bottom: 10px;
}
.fi-card-guest .fi-avatar-holder { margin-top: -28px; }
.fi-card-guest .fi-avatar-holder .avatar { width: 58px; height: 58px; font-size: 18px; border-width: 3px; }
.fi-guest-id {
    min-width: 0;
    flex: 1;
    padding-top: 6px;
}
.fi-card-guest .fi-metrics { padding: 8px 6px; margin-bottom: 10px; }
.fi-card-guest .fi-bio { margin-bottom: 10px; min-height: 0; }
.fi-card-guest .fi-footer { padding-top: 10px; }


/* v3.2 Local Time & Live Countdown Badges */
.countdown-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
    background: var(--tint-violet); color: var(--primary-dark); border: 1px solid #c4b5fd;
    font-variant-numeric: tabular-nums;
}
.countdown-badge.expired {
    background: var(--red-soft); color: var(--red); border-color: #fecaca;
}


/* v3.3 Enterprise Dashboards, Sidebar Role Pill & Permissions Matrix */
.side-role-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
    padding: 8px 10px; margin-bottom: 6px; border-radius: 10px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}
.perm-matrix-table th, .perm-matrix-table td {
    padding: 10px 8px;
}
.perm-matrix-table thead th {
    position: sticky; top: 0; background: var(--bg-offwhite); z-index: 2;
}
