: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;
}


/* =====================================================================
   v4.0 COMPREHENSIVE MULTI-DEVICE RESPONSIVE & DASHBOARD POLISH
   ===================================================================== */

/* Clean Inline Sign Out Button Styling */
.btn-signout {
    background: #fff1f2;
    color: #be123c;
    border: 1.5px solid #fecdd3;
    font-weight: 700;
}
.btn-signout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Improved Desktop Portal Sidebar with Sticky Scrollable Nav & Pinned Inline Footer */
.portal-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}
.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-right: 1px solid var(--border);
    z-index: 150;
}
.sidebar-top-brand {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 2px 6px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.sidebar-top-brand .brand { border-bottom: none; margin-bottom: 0; padding: 0; }
.sidebar-close-btn {
    display: none; width: 32px; height: 32px; border-radius: 9px;
    border: 1px solid var(--border); background: var(--bg-offwhite);
    color: var(--ink); font-size: 15px; font-weight: 800; cursor: pointer;
}
.sidebar-scroll-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.side-footer-bar {
    display: flex; align-items: center; gap: 8px;
    padding-top: 12px; margin-top: 10px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Clean Sticky Portal Topbar with Strictly Inline-Aligned Controls */
.portal-topbar {
    position: sticky; top: 0; z-index: 110;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: nowrap;
}
.topbar-left {
    display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
}
.topbar-title {
    font-size: 18px; font-weight: 900; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.topbar-sub {
    font-size: 12px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: nowrap;
}
.topbar-user-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.portal-menu-btn {
    display: none; width: 38px; height: 38px; border-radius: 10px;
    border: 1.5px solid var(--border); background: #ffffff; color: var(--ink);
    font-size: 18px; font-weight: 800; cursor: pointer; flex-shrink: 0;
    align-items: center; justify-content: center;
}
.portal-drawer-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(3px); z-index: 280;
}
.portal-drawer-backdrop.open { display: block; }

/* Zero Overflow Hardening Across All Dashboard Cards & Tables */
.portal-content { padding: 24px; max-width: 1320px; width: 100%; margin: 0 auto; }
.card, .kpi-card, .eco-card, .studio-hero-bar { min-width: 0; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table td { overflow-wrap: break-word; }

/* 6-Digit Email OTP Input Styling */
.otp-code-input {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid #c4b5fd;
    background: var(--tint-violet);
    color: var(--primary-dark);
}
.otp-code-input:focus {
    background: #ffffff;
    border-color: var(--brand-purple);
}

/* Super Admin Clear Data Bucket Selection Cards */
.clear-bucket-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 15px 16px; border-radius: 14px;
    border: 1.5px solid var(--border); background: var(--bg-offwhite);
    cursor: pointer; transition: all .15s ease;
}
.clear-bucket-card:hover {
    border-color: #f87171; background: #fff5f5;
}
.clear-bucket-card input {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: #dc2626; flex-shrink: 0;
}

/* =====================================================================
   MULTI-DEVICE RESPONSIVE BREAKPOINTS (LAPTOP / TABLET / MOBILE)
   ===================================================================== */
@media (max-width: 1200px) {
    .hide-md { display: none !important; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    /* Smooth Off-Canvas Drawer Sidebar on Tablet & Mobile (Fixes Cluttered Stacked Sidebar!) */
    .portal-shell { grid-template-columns: 1fr; }
    .portal-menu-btn { display: inline-flex; }
    .sidebar-close-btn { display: inline-flex; align-items: center; justify-content: center; }
    .portal-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 286px; max-width: 86vw;
        height: 100vh;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 16px 14px !important;
        border-right: 1px solid var(--border) !important;
        border-bottom: none !important;
        transform: translateX(-105%);
        transition: transform .24s cubic-bezier(.4, 0, .2, 1);
        z-index: 300;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    }
    .portal-sidebar.drawer-open { transform: translateX(0); }
    .portal-sidebar .side-section { display: block !important; }
    .grid-task-room, .grid-sidebar { grid-template-columns: 1fr; }
    .portal-topbar { padding: 11px 16px; }
    .portal-content { padding: 18px 16px; }
}

@media (max-width: 820px) {
    .hide-sm { display: none !important; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .stepper { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .hero-title { font-size: 30px; }
    .section-heading { font-size: 25px; }
    .navbar-inner { height: 66px; }
    .nav-links { top: 66px; }
}

@media (max-width: 540px) {
    .hide-xs { display: none !important; }
    .grid-4 { grid-template-columns: 1fr; }
    .portal-content { padding: 14px 12px; }
    .card { padding: 16px; }
    .studio-hero-bar { padding: 16px; }
    .topbar-title { font-size: 16px; }
    /* Compact non-overlapping floating buttons on small phones */
    .sup-dock { left: 10px; bottom: 10px; }
    .msgr-dock { right: 10px; bottom: 10px; }
    .sup-launcher, .msgr-launcher { padding: 10px 14px; font-size: 12.5px; }
    .otp-code-input { font-size: 26px; letter-spacing: 8px; }
}


/* =====================================================================
   v4.1 ROLE HOME PAGES & UNIFIED MULTI-DEVICE RESPONSIVE ARCHITECTURE
   ===================================================================== */

/* Safe Viewport Containment (Zero Horizontal Scroll on Mobile/Tablet while keeping position:sticky) */
html, body {
    max-width: 100%;
    overflow-x: clip;
}
main, section, header, footer, .container, .portal-main, .portal-content {
    min-width: 0;
}
.reg-card { padding: 30px; }

/* Dedicated Logged-In Role Home Hero Styles */
.role-home-hero {
    padding: 34px 0 38px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.home-hero-creator {
    background:
        radial-gradient(circle at 10% 15%, rgba(14, 165, 233, 0.14), transparent 46%),
        radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.12), transparent 44%),
        var(--bg);
}
.home-hero-company {
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 138, 61, 0.14), transparent 46%),
        radial-gradient(circle at 90% 20%, rgba(255, 46, 134, 0.11), transparent 44%),
        var(--bg);
}
.home-hero-buyer {
    background:
        radial-gradient(circle at 10% 15%, rgba(124, 58, 237, 0.14), transparent 46%),
        radial-gradient(circle at 90% 20%, rgba(14, 165, 233, 0.12), transparent 44%),
        var(--bg);
}
.role-hero-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.role-hero-left { flex: 1 1 380px; min-width: 0; }
.role-hero-title {
    font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1.2;
}
.role-hero-actions {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0;
}
.role-link-strip {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 14px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}
.role-link-code {
    max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
}

/* =====================================================================
   AUTHORITATIVE MULTI-DEVICE RESPONSIVE CASCADE (DESCENDING BREAKPOINTS)
   Desktop (>1180px) -> Laptop/iPad Landscape (1180px) -> Tablet (1024px)
   -> Small Tablet/Phablet (768px) -> Mobile Phone (<=560px)
   ===================================================================== */

/* 1. Compact Laptop & Landscape Tablet (<= 1180px) */
@media (max-width: 1180px) {
    .container { padding: 0 20px; }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4, .fi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .hide-md { display: none !important; }

    /* Collapse public navbar links cleanly before crowding occurs */
    .navbar-inner { gap: 10px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #ffffff;
        padding: 16px 20px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-bottom: 1.5px solid var(--border);
        box-shadow: 0 18px 40px rgba(26, 23, 56, 0.14);
        z-index: 220;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 10px 12px !important;
        border-radius: 10px;
        background: var(--bg-offwhite);
    }
    .nav-links a.active::after { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* 2. Tablet Portrait & Small Screens (<= 1024px) */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-title { font-size: 36px; }
    .hero-search-white {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .hero-search-white input[name="q"] { grid-column: 1 / -1; }
    .hero-search-white button[type="submit"] { grid-column: 1 / -1; width: 100%; }

    .grid-task-room, .grid-sidebar, .cp-layout, .studio-shell {
        grid-template-columns: 1fr !important;
    }
    .cp-sticky-side, .studio-nav { position: static !important; }
    .studio-nav { flex-direction: row; flex-wrap: wrap; }
    .studio-nav-label { display: none; }
    .studio-tab-btn { width: auto; flex: 1 1 150px; }
    .msgr-pro-shell { grid-template-columns: 260px minmax(0, 1fr); }
    .msgr-pro-info { display: none; }

    /* Off-Canvas Portal Sidebar Drawer */
    .portal-shell { grid-template-columns: 1fr !important; }
    .portal-menu-btn { display: inline-flex; }
    .sidebar-close-btn { display: inline-flex; align-items: center; justify-content: center; }
    .portal-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 286px; max-width: 86vw;
        height: 100vh;
        transform: translateX(-105%);
        transition: transform .24s cubic-bezier(.4, 0, .2, 1);
        z-index: 300;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    }
    .portal-sidebar.drawer-open { transform: translateX(0); }
    .portal-topbar { padding: 11px 16px; }
    .portal-content { padding: 18px 16px; }
}

/* 3. Small Tablet & Large Phones (<= 768px) */
@media (max-width: 768px) {
    .hide-sm { display: none !important; }
    .section { padding: 44px 0; }
    .section-sm { padding: 28px 0; }
    .container { padding: 0 15px; }

    .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
    .stage-cards-row { grid-template-columns: 1fr !important; gap: 12px; }
    .hero-search-white { grid-template-columns: 1fr !important; }
    .msgr-pro-shell, .msgr-full-shell { grid-template-columns: 1fr !important; min-height: 520px; }
    .msgr-full-sidebar { max-height: 250px; border-right: none; border-bottom: 1px solid var(--border); }
    .avail-radio-grid { grid-template-columns: 1fr !important; }
    .cp-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    .hero-title { font-size: 29px; line-height: 1.15; }
    .section-heading { font-size: 24px; }
    .role-hero-card { padding: 18px; }
    .role-hero-title { font-size: 21px; }
    .role-hero-actions { width: 100%; }
    .role-hero-actions .btn { flex: 1 1 auto; }
    .reg-card { padding: 20px 16px; }

    /* Make inline admin search boxes full-width on tablet/phone */
    .portal-content form input.form-control[style*="width:"],
    .portal-content form select.form-control[style*="width:"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    .trust-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sec-head-split { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 4. Mobile Phones (<= 560px) */
@media (max-width: 560px) {
    .hide-xs { display: none !important; }
    .grid-4, .fi-grid-4 { grid-template-columns: 1fr !important; }
    .cp-stat-strip { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .stepper { grid-template-columns: 1fr !important; }

    .navbar-inner { height: 62px; gap: 6px; }
    .brand { gap: 7px; font-size: 16px; }
    .brand-logo-img { height: 30px; }
    .header-role-pill { display: none; }
    .nav-actions { gap: 6px; }
    .nav-actions .btn-sm { padding: 7px 11px; font-size: 12px; }
    .user-menu-btn { padding: 4px 8px 4px 4px; font-size: 12px; }

    /* Keep dropdowns strictly inside mobile viewport */
    .notif-dropdown {
        position: fixed !important;
        top: 66px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: none !important;
    }
    .user-menu-dropdown {
        right: 0;
        min-width: 195px;
        max-width: calc(100vw - 24px);
    }

    .portal-topbar { padding: 10px 12px; gap: 8px; }
    .topbar-title { font-size: 15px; }
    .topbar-sub { display: none; }
    .portal-content { padding: 14px 12px 76px; }
    .card { padding: 15px; border-radius: 14px; }
    .kpi-card { padding: 15px; }
    .kpi-value { font-size: 22px; }
    .studio-hero-bar { padding: 15px; }
    .cp-cover { height: 165px; }
    .cp-hero-inner { padding: 0 14px 18px; }
    .cp-avatar { width: 78px; height: 78px; margin-top: -39px; }

    /* Non-overlapping compact floating Support (left) & Messenger (right) launchers */
    .sup-dock { left: 10px; bottom: 10px; }
    .msgr-dock { right: 10px; bottom: 10px; }
    .sup-launcher, .msgr-launcher { padding: 9px 13px; font-size: 12px; gap: 5px; }
    .sup-popup, .msgr-popup {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        height: 72vh !important;
        max-height: 520px !important;
    }
    .otp-code-input { font-size: 24px; letter-spacing: 8px; }
    .hero-cta-row { flex-direction: column; width: 100%; }
    .hero-cta-row .btn { width: 100%; }
}


/* =====================================================================
   v4.6 SUPER ADMIN EXECUTIVE COCKPIT, REPORTING SUITE & PRINT/PDF STYLES
   ===================================================================== */
.sa-cockpit-banner {
    background:
        radial-gradient(circle at 8% 15%, rgba(255, 138, 61, 0.14), transparent 42%),
        radial-gradient(circle at 92% 15%, rgba(14, 165, 233, 0.15), transparent 44%),
        #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}
.sa-cockpit-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.sa-quick-search {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--bg-offwhite); padding: 8px; border-radius: 14px;
    border: 1px solid var(--border);
}
.sa-quick-search input { flex: 1 1 240px; }

/* 6-Tile Priority Action Attention Queue */
.sa-priority-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.sa-prio-tile {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 14px 15px; border-radius: 15px; background: #ffffff;
    border: 1.5px solid var(--border); color: var(--ink);
    box-shadow: var(--shadow-xs); transition: all .18s ease;
}
.sa-prio-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.sa-prio-tile.has-alert { border-color: #fda4af; background: #fff1f2; }
.sa-prio-tile.has-alert .sa-prio-num { color: #be123c; }
.sa-prio-tile.has-warn  { border-color: #fcd34d; background: #fffbeb; }
.sa-prio-tile.has-warn .sa-prio-num  { color: #b45309; }
.sa-prio-tile.has-info  { border-color: #93c5fd; background: #eff6ff; }
.sa-prio-tile.has-info .sa-prio-num  { color: #1d4ed8; }
.sa-prio-tile.all-clear { border-color: #bbf7d0; background: #ffffff; }
.sa-prio-tile.all-clear .sa-prio-num { color: #15803d; }
.sa-prio-top {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    font-size: 12px; font-weight: 800; margin-bottom: 6px;
}
.sa-prio-num { font-family: "Outfit", sans-serif; font-size: 22px; font-weight: 900; line-height: 1; }
.sa-prio-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }

/* 2-Column Executive Cockpit Core */
.sa-cockpit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.85fr);
    gap: 22px;
    align-items: start;
}
.sa-mini-metric {
    display: block; background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 13px; padding: 13px 14px; color: var(--ink); transition: all .15s ease;
}
.sa-mini-metric:hover { background: #ffffff; box-shadow: var(--shadow-sm); color: var(--ink); }
.sa-mini-metric .lbl { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.sa-mini-metric .val { font-family: "Outfit", sans-serif; font-size: 19px; font-weight: 900; margin-top: 4px; }
.sa-mini-metric .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sa-chart-box {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 15px; padding: 16px;
}

/* Organized Control Hub Groups */
.sa-hub-group {
    padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid var(--border);
}
.sa-hub-title {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
    color: var(--muted); margin-bottom: 8px;
}
.sa-hub-links {
    display: flex; flex-direction: column; gap: 4px;
}
.sa-hub-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: 9px; font-size: 13px; font-weight: 700;
    color: var(--slate); background: var(--bg-offwhite); transition: all .15s ease;
}
.sa-hub-links a:hover { background: var(--tint-violet); color: var(--brand-purple); }

@media (max-width: 1280px) {
    .sa-priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .sa-cockpit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .sa-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sa-cockpit-banner { padding: 16px; }
    .sa-quick-search select { max-width: 100% !important; width: 100%; }
}

/* Clean Print / Save-as-PDF Mode for All Portal Reports */
@media print {
    .portal-sidebar, .portal-topbar, .msgr-dock, .sup-dock, .no-print { display: none !important; }
    .portal-shell { display: block !important; }
    .portal-main, .portal-content { background: #ffffff !important; padding: 0 !important; max-width: 100% !important; }
    .card, .kpi-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; break-inside: avoid; }
}


/* =====================================================================
   v4.7 EXECUTIVE SUPER ADMIN DASHBOARD & COLLAPSIBLE SIDEBAR GROUPS
   ===================================================================== */

/* Collapsible Sidebar Groups (Clean, Scannable Admin Navigation) */
.side-group {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 6px;
}
.side-group-head {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
    color: var(--muted); cursor: pointer; border-radius: 8px; user-select: none;
    transition: background .15s ease, color .15s ease;
}
.side-group-head::-webkit-details-marker { display: none; }
.side-group-head:hover { background: var(--bg-offwhite); color: var(--ink); }
.side-group-right { display: inline-flex; align-items: center; gap: 6px; }
.side-chev { font-size: 11px; transition: transform .18s ease; display: inline-block; }
.side-group:not([open]) .side-chev { transform: rotate(-90deg); }
.side-group-body {
    display: flex; flex-direction: column; gap: 3px;
    padding-top: 4px;
}

/* Layer 1: Executive Header Card */
.ex-header {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: var(--shadow-xs);
}
.ex-header-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.ex-meta-pills {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.ex-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    background: var(--bg-offwhite); border: 1px solid var(--border); color: var(--slate);
}
.ex-pill-brand { background: var(--tint-violet); border-color: #ddd6fe; color: var(--primary-dark); }
.ex-pill-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ex-title {
    font-size: 25px; font-weight: 900; color: var(--ink); letter-spacing: -0.4px; line-height: 1.2;
}
.ex-subtitle { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ex-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ex-searchbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 12px; padding: 6px;
}
.ex-search-scope { width: 165px; padding: 8px 10px; font-size: 13px; border-radius: 9px; }
.ex-search-input { flex: 1 1 220px; padding: 8px 12px; font-size: 13.5px; border-radius: 9px; }

/* Layer 2: 4 Clean Financial KPI Cards */
.ex-kpi-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.ex-kpi {
    display: flex; flex-direction: column; justify-content: space-between;
    background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
    padding: 18px 20px; color: var(--ink); box-shadow: var(--shadow-xs);
    position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ex-kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3.5px; }
.ex-kpi-ink::before { background: var(--ink); }
.ex-kpi-purple::before { background: var(--brand-purple); }
.ex-kpi-amber::before { background: #f59e0b; }
.ex-kpi-green::before { background: #10b981; }
.ex-kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; color: var(--ink); }
.ex-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ex-kpi-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.ex-kpi-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ex-kpi-tag.tag-ok { background: #ecfdf5; color: #065f46; }
.ex-kpi-tag.tag-err { background: #fef2f2; color: #b91c1c; }
.ex-kpi-tag.tag-purple { background: var(--tint-violet); color: var(--primary-dark); }
.ex-kpi-tag.tag-amber { background: #fffbeb; color: #b45309; }
.ex-kpi-val { font-family: "Outfit", sans-serif; font-size: 25px; font-weight: 900; color: var(--ink); line-height: 1.15; }
.ex-kpi-foot { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* Layer 3: Split Executive Workspace */
.ex-main-grid {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.9fr);
    gap: 20px; align-items: start;
}
.ex-col-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ex-panel { padding: 20px 22px; }
.ex-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.ex-panel-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); }

/* Clean Operational Action Checklist */
.ex-action-list { display: flex; flex-direction: column; gap: 8px; }
.ex-action-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); background: #ffffff; color: var(--ink);
    transition: all .15s ease;
}
.ex-action-row:hover { border-color: #c4b5fd; background: var(--bg-offwhite); color: var(--ink); }
.ex-action-row.state-urgent { border-left: 4px solid #e11d48; background: #fff8f9; }
.ex-action-row.state-warn   { border-left: 4px solid #f59e0b; background: #fffdf5; }
.ex-action-row.state-clear  { border-left: 4px solid #cbd5e1; }
.ex-action-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.ex-action-ico {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.ex-action-title { font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.ex-action-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ex-action-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ex-count-pill {
    min-width: 28px; height: 26px; padding: 0 9px; border-radius: 999px;
    font-size: 12.5px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
}
.ex-count-pill.pill-urgent { background: #fee2e2; color: #be123c; }
.ex-count-pill.pill-warn   { background: #fef3c7; color: #b45309; }
.ex-count-pill.pill-clear  { background: #f1f5f9; color: #64748b; }
.ex-action-go { font-size: 12px; font-weight: 800; color: var(--brand-purple); white-space: nowrap; }

/* 30-Day Inline Summary Strip Above Chart */
.ex-strip-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    padding: 12px 14px; border-radius: 12px; background: var(--bg-offwhite); border: 1px solid var(--border);
}
.ex-strip-stats .lbl { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.ex-strip-stats strong { font-family: "Outfit", sans-serif; font-size: 16px; font-weight: 900; color: var(--ink); }
.ex-chart-well {
    padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #ffffff;
}

/* Directory 2x2 Snapshot */
.ex-dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ex-dir-box {
    display: flex; flex-direction: column; gap: 3px;
    padding: 13px 14px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid var(--border); color: var(--ink);
    transition: all .15s ease;
}
.ex-dir-box:hover { background: var(--tint-violet); border-color: #c4b5fd; color: var(--ink); }
.ex-dir-lbl { font-size: 12px; font-weight: 700; color: var(--slate); }
.ex-dir-num { font-family: "Outfit", sans-serif; font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.15; }
.ex-dir-sub { font-size: 11px; font-weight: 700; color: var(--brand-purple); }

/* Department Shortcuts */
.ex-shortcut-list { display: flex; flex-direction: column; gap: 8px; }
.ex-shortcut-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 12px; background: var(--bg-offwhite); border: 1px solid var(--border);
    color: var(--ink); transition: all .15s ease;
}
.ex-shortcut-row:hover { background: var(--tint-violet); border-color: #c4b5fd; color: var(--ink); }
.ex-shortcut-row > span:first-child { font-size: 18px; flex-shrink: 0; }
.ex-shortcut-row > div { flex: 1; min-width: 0; }
.ex-shortcut-row strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.2; }
.ex-shortcut-row small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ex-shortcut-row > span:last-child { font-weight: 800; color: var(--brand-purple); }

/* System Health Status Rows */
.ex-health-list { display: flex; flex-direction: column; }
.ex-health-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--slate);
}
.ex-health-row:last-child { border-bottom: none; padding-bottom: 0; }

/* Layer 4: Clean Underline Tabs */
.ex-tabs-bar {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    border-bottom: 1.5px solid var(--border); margin-bottom: 16px;
}
.ex-tab {
    border: none; background: transparent; cursor: pointer;
    padding: 10px 16px; font-family: inherit; font-size: 13.5px; font-weight: 700;
    color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
    display: inline-flex; align-items: center; gap: 7px; transition: all .15s ease;
}
.ex-tab:hover { color: var(--ink); }
.ex-tab.active { color: var(--brand-purple); border-bottom-color: var(--brand-purple); }
.ex-tab-cnt {
    font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
    background: var(--bg-offwhite); color: var(--slate); border: 1px solid var(--border);
}
.ex-tab.active .ex-tab-cnt { background: var(--tint-violet); color: var(--primary-dark); border-color: #ddd6fe; }

@media (max-width: 1200px) {
    .ex-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .ex-main-grid { grid-template-columns: 1fr; }
    .ex-strip-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ex-kpi-grid { grid-template-columns: 1fr; }
    .ex-header { padding: 16px; }
    .ex-title { font-size: 21px; }
    .ex-search-scope { width: 100%; }
    .ex-action-row { flex-direction: column; align-items: flex-start; }
    .ex-action-right { width: 100%; justify-content: space-between; padding-left: 48px; }
}


/* =====================================================================
   v4.8 CREATOR FLAGSHIP HOME PAGE (LIGHT THEME + OFFICIAL SPECTRUM)
   ===================================================================== */
.ch-page { padding: 26px 0 48px; }

/* Flagship Cover Banner */
.ch-banner {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ch-cover {
    height: 185px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.30), transparent 46%),
        radial-gradient(circle at 52% 85%, rgba(255, 46, 134, 0.22), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.30), transparent 46%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
}
.ch-cover img { width: 100%; height: 100%; object-fit: cover; }
.ch-cover-fade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.16) 100%);
    pointer-events: none;
}
.ch-cover-edit-btn {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
    color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.ch-cover-edit-btn:hover { background: #ffffff; color: var(--brand-purple); border-color: var(--brand-purple); }

.ch-banner-body { padding: 0 24px 22px; }
.ch-id-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.ch-id-left { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; min-width: 0; }
.ch-avatar-wrap { position: relative; flex-shrink: 0; margin-top: -46px; z-index: 3; }
.ch-avatar {
    width: 92px; height: 92px; border-radius: 50%;
    border: 4px solid #ffffff; background: var(--grad-main); color: #ffffff;
    font-size: 28px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 10px 26px rgba(26, 23, 56, 0.16);
}
.ch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ch-online-dot {
    position: absolute; right: 4px; bottom: 4px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #22c55e; border: 3px solid #ffffff;
}
.ch-id-text { padding-top: 10px; min-width: 0; }
.ch-greeting { font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.2; }

/* 1-Click Availability Pill Switcher */
.ch-banner-right { padding-top: 12px; display: flex; flex-direction: column; align-items: flex-end; }
.ch-avail-switch {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px; border-radius: 999px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}
.ch-avail-opt {
    border: none; background: transparent; cursor: pointer;
    padding: 5px 11px; border-radius: 999px; font-family: inherit;
    font-size: 11.5px; font-weight: 800; color: var(--muted); transition: all .15s ease;
}
.ch-avail-opt:hover { color: var(--ink); }
.ch-avail-opt.active {
    background: #ffffff; color: var(--ink);
    box-shadow: 0 2px 8px rgba(26, 23, 56, 0.10);
}

/* 3-Column Bento Grid */
.ch-bento {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 295px;
    gap: 20px;
    align-items: start;
}
.ch-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ch-card { padding: 18px 20px; }
.ch-card-title { font-size: 15.5px; font-weight: 800; color: var(--ink); }

/* Multi-Platform Reach Bars */
.ch-reach-list { display: flex; flex-direction: column; gap: 11px; }
.ch-reach-track {
    height: 7px; background: var(--bg-offwhite); border-radius: 999px;
    overflow: hidden; border: 1px solid var(--border);
}
.ch-reach-fill { height: 100%; background: var(--grad-pill); border-radius: 999px; }

/* Reputation 2x2 */
.ch-rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-rep-box {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 11px; padding: 10px 12px;
}
.ch-rep-box .lbl { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.ch-rep-box strong { font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 900; color: var(--ink); }

/* Priority Action Ribbon */
.ch-priority-bar {
    background: var(--tint-peach); border: 1.5px solid #fed7aa;
    border-radius: 14px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* Inline Spotlight Composer */
.ch-composer-input {
    min-height: 46px !important;
    border-radius: 14px !important;
    background: var(--bg-offwhite) !important;
    padding: 10px 14px !important;
}
.ch-composer-input:focus { background: #ffffff !important; min-height: 74px !important; }
.ch-mini-chip {
    border: 1px solid var(--border); background: var(--bg-offwhite); color: var(--slate);
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.ch-mini-chip:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--tint-violet); }

/* Card-Based Order Pipeline */
.ch-order-stack { display: flex; flex-direction: column; gap: 12px; }
.ch-order-card {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 16px; transition: border-color .15s ease;
}
.ch-order-card:hover { border-color: #c4b5fd; background: #ffffff; }
.ch-empty-box {
    text-align: center; padding: 30px 18px;
    background: var(--bg-offwhite); border: 1.5px dashed var(--border); border-radius: 14px;
}

/* Services Grid Cards */
.ch-service-card {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px;
}
.ch-svc-img {
    height: 112px; border-radius: 10px; overflow: hidden; margin-bottom: 10px;
    border: 1px solid var(--border);
}
.ch-svc-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-service-add-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-height: 140px; padding: 18px; border-radius: 14px;
    border: 1.5px dashed #c4b5fd; background: var(--tint-violet); color: var(--primary-dark);
    text-align: center; transition: all .15s ease;
}
.ch-service-add-card:hover { background: #ede9fe; border-color: var(--brand-purple); color: var(--primary-dark); }

/* Visual Creator Wallet Card */
.ch-wallet-card {
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 138, 61, 0.14), transparent 46%),
        radial-gradient(circle at 88% 85%, rgba(14, 165, 233, 0.16), transparent 46%),
        #ffffff;
    border: 1.5px solid #ddd6fe;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.ch-wallet-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-main);
}
.ch-wallet-bal {
    font-family: "Outfit", sans-serif;
    font-size: 30px; font-weight: 900; color: var(--emerald); line-height: 1.15; margin-bottom: 4px;
}
.ch-wallet-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.85); border: 1px solid var(--border);
}
.ch-wallet-split .lbl { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.ch-wallet-split strong { font-size: 13.5px; font-weight: 800; }

/* Recent Brand Messages List */
.ch-chat-list { display: flex; flex-direction: column; gap: 8px; }
.ch-chat-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 12px; background: var(--bg-offwhite); border: 1px solid transparent;
    color: var(--ink); transition: all .15s ease;
}
.ch-chat-row:hover { background: var(--tint-violet); border-color: #ddd6fe; color: var(--ink); }

@media (max-width: 1180px) {
    .ch-bento { grid-template-columns: 260px minmax(0, 1fr); }
    .ch-bento > aside:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .ch-bento { grid-template-columns: 1fr; }
    .ch-bento > aside:last-child { grid-column: auto; display: flex; flex-direction: column; }
    .ch-banner-right { align-items: flex-start; width: 100%; }
    .ch-banner-right .flex { justify-content: flex-start !important; }
}
@media (max-width: 600px) {
    .ch-cover { height: 140px; }
    .ch-banner-body { padding: 0 15px 16px; }
    .ch-avatar-wrap { margin-top: -36px; }
    .ch-avatar { width: 74px; height: 74px; font-size: 22px; }
    .ch-greeting { font-size: 20px; }
    .ch-avail-switch { width: 100%; justify-content: space-between; }
    .ch-avail-opt { flex: 1; text-align: center; padding: 6px 6px; }
}


/* =====================================================================
   v4.9 LIVE VISITORS PULSE, ANALYTICS UI & 5-STAT CREATOR STRIP
   ===================================================================== */
.an-live-hero {
    border: 1.5px solid #a7f3d0;
    background:
        radial-gradient(circle at 6% 15%, rgba(16, 185, 129, 0.10), transparent 40%),
        #ffffff;
}
.an-live-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .6px;
    background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
}
.an-pulse-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: inflowLivePulse 1.8s infinite;
}
@keyframes inflowLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.an-live-strip {
    display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: stretch;
}
.an-live-main-box {
    background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px;
    padding: 16px 18px; display: flex; flex-direction: column; justify-content: center;
}
.an-live-big-num {
    font-family: "Outfit", sans-serif; font-size: 38px; font-weight: 900; color: #047857; line-height: 1.1; margin: 4px 0;
}
.an-live-role-grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.an-role-stat {
    background: var(--bg-offwhite); border: 1px solid var(--border); border-radius: 13px;
    padding: 13px 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
}
.an-role-stat span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.an-role-stat strong { font-family: "Outfit", sans-serif; font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1; }

.cp-stat-strip-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

@media (max-width: 1024px) {
    .an-live-strip { grid-template-columns: 1fr; }
    .an-live-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cp-stat-strip-5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
    .an-live-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-stat-strip-5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}


/* =====================================================================
   v5.0 CREATOR SOCIAL TIMELINE & FOLLOW NETWORK (SAME LIGHT THEME)
   ===================================================================== */
.ch-sticky-rail { position: sticky; top: 88px; }

/* Filter Pills Bar */
.tl-filter-bar {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tl-filter-pill {
    border: 1px solid var(--border); background: var(--bg-offwhite); color: var(--slate);
    padding: 5px 12px; border-radius: 999px; font-family: inherit;
    font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s ease;
}
.tl-filter-pill:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--tint-violet); }
.tl-filter-pill.active {
    background: var(--grad-main); color: #ffffff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.22);
}

/* Vertical Social Timeline Stream */
.tl-stream {
    position: relative;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tl-stream::before {
    content: "";
    position: absolute;
    left: 6px; top: 14px; bottom: 14px;
    width: 2.5px;
    background: linear-gradient(180deg, var(--brand-orange), var(--brand-pink), var(--brand-purple), var(--brand-cyan));
    opacity: 0.35;
    border-radius: 4px;
}
.tl-node { position: relative; }
.tl-dot {
    position: absolute;
    left: -21px; top: 20px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--grad-main);
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 0 2px #ddd6fe;
}
.tl-card {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-xs);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.tl-card:hover { border-color: #c4b5fd; box-shadow: var(--shadow-sm); }
.tl-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.tl-body {
    font-size: 14px; color: var(--ink); line-height: 1.6;
    margin-bottom: 12px; word-break: break-word;
}
.tl-media-box {
    border-radius: 12px; overflow: hidden; margin-bottom: 12px;
    border: 1px solid var(--border); background: #0f172a;
}
.tl-media-box img { width: 100%; max-height: 380px; object-fit: cover; }

.tl-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    padding-top: 11px; border-top: 1px solid var(--border);
}
.tl-act-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--bg-offwhite);
    color: var(--slate); font-family: inherit; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all .15s ease;
}
.tl-act-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--tint-violet); }
.tl-act-btn.is-liked {
    background: #fff1f2; border-color: #fda4af; color: #e11d48;
}

.tl-comments-wrap {
    margin-top: 12px; padding: 12px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}
.tl-comments-list { display: flex; flex-direction: column; gap: 7px; }
.tl-comment-item { font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.tl-comment-item strong { color: var(--ink); }

/* Right Rail Follow Rows & Discover Network Cards */
.ch-follow-list { display: flex; flex-direction: column; gap: 10px; }
.ch-follow-row {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid transparent;
    transition: border-color .15s ease;
}
.ch-follow-row:hover { border-color: #ddd6fe; background: #ffffff; }
.ch-net-card {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 14px; padding: 13px 14px; transition: border-color .15s ease;
}
.ch-net-card:hover { border-color: #c4b5fd; background: #ffffff; }

@media (max-width: 1180px) {
    .ch-sticky-rail { position: static; }
}
@media (max-width: 600px) {
    .tl-stream { padding-left: 0; }
    .tl-stream::before, .tl-dot { display: none; }
    .tl-card { padding: 14px; }
}


/* =====================================================================
   v5.2 PRO CREATOR PROFILE PAGE & UNIFIED INFLUENCER WORKSPACE
   ===================================================================== */
.pro-hero-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pro-cover {
    height: 230px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.30), transparent 46%),
        radial-gradient(circle at 52% 85%, rgba(255, 46, 134, 0.22), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.30), transparent 46%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
}
.pro-cover img { width: 100%; height: 100%; object-fit: cover; }
.pro-cover-fade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
}
.pro-cover-top-actions {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    display: flex; align-items: center; gap: 8px;
}
.pro-glass-btn {
    padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
    color: var(--ink); border: 1px solid var(--border); cursor: pointer;
    box-shadow: var(--shadow-xs); font-family: inherit;
}
.pro-glass-btn:hover { background: #ffffff; color: var(--brand-purple); border-color: var(--brand-purple); }

.pro-hero-body { padding: 0 26px 24px; }
.pro-identity-bar {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.pro-id-left { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; min-width: 0; }
.pro-avatar-wrap { position: relative; margin-top: -52px; z-index: 3; flex-shrink: 0; }
.pro-avatar {
    width: 108px; height: 108px; border-radius: 50%;
    border: 4px 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);
}
.pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-online-dot {
    position: absolute; right: 5px; bottom: 5px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #22c55e; border: 3px solid #ffffff;
}
.pro-id-info { padding-top: 12px; min-width: 0; }
.pro-name { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.15; }
.pro-submeta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--muted); margin-top: 4px;
}
.pro-hero-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; }

/* Unified Media Kit Main Card */
.pro-main-card { padding: 22px 24px; }
.pro-sec-title { font-size: 19px; font-weight: 800; color: var(--ink); }
.pro-block {
    padding-bottom: 22px; margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.pro-social-card {
    display: block; padding: 16px; border-radius: 14px;
    background: var(--bg-offwhite); border: 1.5px solid var(--border);
    color: var(--ink); transition: all .18s ease;
}
.pro-social-card:hover { background: #ffffff; border-color: #c4b5fd; box-shadow: var(--shadow-sm); color: var(--ink); }
.pro-social-count { font-family: "Outfit", sans-serif; font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.pro-pkg-card {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 16px; border-radius: 15px;
    background: var(--bg-offwhite); border: 1.5px solid var(--border);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.pro-pkg-card:hover { background: #ffffff; border-color: #c4b5fd; box-shadow: var(--shadow-sm); }
.pro-review-item {
    padding: 14px 16px; border-radius: 14px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}

/* Sticky Booking Sidebar Enhancements */
.pro-book-card { padding: 22px; border-top: 4px solid var(--brand-purple); }
.pro-trust-note {
    font-size: 12px; color: var(--slate); line-height: 1.5;
    padding: 10px 12px; border-radius: 11px;
    background: var(--tint-violet); border: 1px solid #ddd6fe;
}
.pro-facts-list { display: flex; flex-direction: column; }
.pro-fact-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.pro-fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.pro-fact-row span { color: var(--muted); }
.pro-fact-row strong { color: var(--ink); text-align: right; }

/* Unified Creator Workspace Section (1-Section Hub) */
.cw-unified-section { padding: 22px 24px; }
.cw-split-grid {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    gap: 20px; align-items: start;
}
.cw-subbox {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 15px; padding: 16px;
}

@media (max-width: 1024px) {
    .cw-split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pro-cover { height: 155px; }
    .pro-hero-body { padding: 0 15px 18px; }
    .pro-avatar-wrap { margin-top: -38px; }
    .pro-avatar { width: 80px; height: 80px; font-size: 24px; }
    .pro-name { font-size: 22px; }
    .pro-main-card, .cw-unified-section { padding: 16px; }
}


/* v5.3 Single-Place Influencer Hub Directory Filter Bar */
.cw-dir-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
    gap: 10px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 10px;
}
@media (max-width: 768px) {
    .cw-dir-filters { grid-template-columns: 1fr; }
}


/* =====================================================================
   v5.4 OTHER INFLUENCERS STRUCTURED SUB-TABS & MULTI-FILTER SEARCH BAR
   ===================================================================== */
.cw-subtabs-bar {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    padding: 6px; border-radius: 14px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}
.cw-subtab {
    border: 1px solid transparent; background: transparent; color: var(--slate);
    padding: 7px 13px; border-radius: 10px; font-family: inherit;
    font-size: 12.5px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: all .15s ease;
}
.cw-subtab:hover { background: #ffffff; color: var(--ink); border-color: var(--border); }
.cw-subtab.active {
    background: #ffffff; color: var(--brand-purple); border-color: #c4b5fd;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.10);
}
.cw-subtab.active .ex-tab-cnt {
    background: var(--tint-violet); color: var(--primary-dark); border-color: #ddd6fe;
}

.cw-dir-searchbox {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 15px; padding: 12px;
}
.cw-dir-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(120px, 1fr));
    gap: 8px;
}
.cw-search-input-wrap {
    position: relative; display: flex; align-items: center;
}
.cw-search-input-wrap .form-control { padding-left: 34px; padding-right: 30px; }
.cw-search-ico {
    position: absolute; left: 11px; font-size: 13.5px; pointer-events: none; opacity: 0.7;
}
.cw-search-clear {
    position: absolute; right: 8px; width: 22px; height: 22px; border-radius: 50%;
    border: none; background: #e2e8f0; color: var(--ink); font-size: 11px; font-weight: 800;
    cursor: pointer; align-items: center; justify-content: center;
}
.cw-search-clear:hover { background: #cbd5e1; }

@media (max-width: 1160px) {
    .cw-dir-search-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cw-search-input-wrap { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .cw-dir-search-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cw-subtabs-bar { gap: 4px; padding: 5px; }
    .cw-subtab { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 460px) {
    .cw-dir-search-row { grid-template-columns: 1fr; }
}


/* =====================================================================
   v5.5 MISSING UTILITY FIXES + MODERN SPLIT LOGIN + MOBILE HUB POLISH
   ===================================================================== */

/* Missing Spacing & Flex Utilities (Fixes Collapsed Margins Across All Pages) */
.mt-1 { margin-top: 4px; }
.mb-1 { margin-bottom: 4px; }
.gap-1 { gap: 5px; }
.items-start { align-items: flex-start; }
.text-left { text-align: left; }

/* Modern 2-Column Split Sign-In Page */
.auth-page-wrap {
    padding: 46px 0 64px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 138, 61, 0.12), transparent 44%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.13), transparent 46%),
        var(--bg);
}
.auth-split-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 54px rgba(26, 23, 56, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}
.auth-showcase-col {
    padding: 38px 36px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 138, 61, 0.14), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(124, 58, 237, 0.14), transparent 48%),
        var(--bg-offwhite);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-showcase-title {
    font-size: 27px; font-weight: 900; color: var(--ink); line-height: 1.2; margin-bottom: 8px;
}
.auth-role-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    background: #ffffff; padding: 5px; border-radius: 12px; border: 1px solid var(--border);
}
.auth-role-pill {
    flex: 1 1 auto; border: none; background: transparent; cursor: pointer;
    padding: 7px 10px; border-radius: 9px; font-family: inherit;
    font-size: 12px; font-weight: 800; color: var(--muted); transition: all .15s ease;
}
.auth-role-pill:hover { color: var(--ink); }
.auth-role-pill.active {
    background: var(--grad-main); color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.22);
}
.auth-perk-box {
    background: #ffffff; border: 1px solid var(--border);
    border-radius: 16px; padding: 18px 20px;
}
.auth-perk-head {
    font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 10px;
}
.auth-perk-list {
    list-style: none; display: flex; flex-direction: column; gap: 8px;
    font-size: 13px; color: var(--slate);
}
.auth-perk-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.auth-perk-list li::before { content: "✓"; color: var(--emerald); font-weight: 900; flex-shrink: 0; }
.auth-trust-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 11.5px; font-weight: 700; color: var(--muted);
}

.auth-form-col {
    padding: 40px 38px;
    display: flex; flex-direction: column; justify-content: center;
    background: #ffffff;
}
.auth-form-title { font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap .form-control { padding-left: 38px; }
.auth-input-ico {
    position: absolute; left: 12px; font-size: 14px; pointer-events: none; opacity: 0.72;
}
.auth-pwd-toggle {
    position: absolute; right: 8px; width: 32px; height: 32px; border-radius: 8px;
    border: none; background: transparent; cursor: pointer; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center;
}
.auth-pwd-toggle:hover { background: var(--bg-offwhite); }
.auth-bottom-cta {
    border-top: 1px solid var(--border); padding-top: 16px; text-align: center;
}

/* Smooth Horizontally Scrollable Hub Tabs on Tablets & Mobile (No Messy Multi-Row Wrap!) */
@media (max-width: 900px) {
    .auth-split-card { grid-template-columns: 1fr; }
    .auth-showcase-col { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 22px; }
    .auth-form-col { padding: 28px 22px; }
    .auth-showcase-title { font-size: 22px; }
}
@media (max-width: 768px) {
    .auth-page-wrap { padding: 24px 0 42px; }
    #cwMainTabs.ex-tabs-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    #cwMainTabs.ex-tabs-bar::-webkit-scrollbar { display: none; }
    #cwMainTabs .ex-tab { white-space: nowrap; flex-shrink: 0; padding: 9px 13px; font-size: 13px; }
}
@media (max-width: 560px) {
    .auth-showcase-col { padding: 20px 16px; }
    .auth-form-col { padding: 22px 16px; }
    .auth-form-title { font-size: 22px; }
}


/* =====================================================================
   v5.6 SLEEK CREATOR STUDIO APP-SHELL REDESIGN (LIGHT THEME + SPECTRUM)
   ===================================================================== */

/* Slim, Uncluttered Creator Topbar */
.cs-topbar {
    position: sticky; top: 0; z-index: 160;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(26, 23, 56, 0.03);
}
.cs-topbar-inner {
    max-width: 1440px; margin: 0 auto; padding: 0 22px;
    height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cs-topbar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cs-role-tag {
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    padding: 3px 9px; border-radius: 999px;
    background: var(--tint-violet); color: var(--primary-dark); border: 1px solid #ddd6fe;
}
.cs-drawer-btn {
    display: none; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-offwhite); color: var(--ink);
    cursor: pointer; align-items: center; justify-content: center;
}
.cs-drawer-btn:hover { background: var(--tint-violet); color: var(--brand-purple); border-color: #c4b5fd; }

.cs-top-search {
    position: relative; flex: 1 1 320px; max-width: 440px;
    display: flex; align-items: center;
}
.cs-top-search-ico {
    position: absolute; left: 13px; color: var(--muted); pointer-events: none;
}
.cs-top-search input {
    width: 100%; height: 38px; padding: 0 14px 0 36px;
    border-radius: 999px; border: 1px solid var(--border);
    background: var(--bg-offwhite); color: var(--ink);
    font-family: inherit; font-size: 13px; transition: all .18s ease;
}
.cs-top-search input:focus {
    outline: none; background: #ffffff; border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}
.cs-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cs-icon-btn {
    position: relative; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: #ffffff; color: var(--slate);
    display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.cs-icon-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--tint-violet); }

/* Main 2-Column Creator App Shell */
.cs-shell {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
    align-items: start;
}

/* Left Sleek Navigation Rail */
.cs-rail {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    padding: 18px 14px 16px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}
.cs-rail-mobile-head {
    display: none; align-items: center; justify-content: space-between;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* Compact Identity Card inside Rail */
.cs-id-card {
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; background: var(--bg-offwhite); flex-shrink: 0;
}
.cs-id-cover {
    height: 62px; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.30), transparent 48%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.30), transparent 48%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
}
.cs-id-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-id-cover-edit {
    position: absolute; top: 6px; right: 6px;
    width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--border); background: rgba(255, 255, 255, 0.92);
    color: var(--ink); font-size: 11px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.cs-id-cover-edit:hover { color: var(--brand-purple); border-color: var(--brand-purple); }
.cs-id-body { padding: 0 12px 12px; }
.cs-id-av-row {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
    margin-bottom: 6px;
}
.cs-id-avatar {
    width: 52px; height: 52px; border-radius: 50%; margin-top: -26px; position: relative; z-index: 2;
    border: 3px solid #ffffff; background: var(--grad-main); color: #ffffff;
    font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 6px 16px rgba(26, 23, 56, 0.14); flex-shrink: 0;
}
.cs-id-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cs-id-status { padding-top: 4px; }
.cs-id-status .badge { font-size: 10px; padding: 2px 7px; }
.cs-id-name {
    font-family: "Outfit", sans-serif; font-size: 15.5px; font-weight: 800; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25;
}
.cs-id-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Crisp 3-Way Availability Segmented Bar */
.cs-avail-seg {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
    background: #ffffff; border: 1px solid var(--border); border-radius: 9px; padding: 3px;
}
.cs-avail-btn {
    border: none; background: transparent; cursor: pointer;
    padding: 4px 2px; border-radius: 6px; font-family: inherit;
    font-size: 10.5px; font-weight: 700; color: var(--muted); transition: all .15s ease;
}
.cs-avail-btn:hover { color: var(--ink); }
.cs-avail-btn.active {
    background: var(--tint-violet); color: var(--primary-dark); font-weight: 800;
}

/* Thin Profile Strength Bar */
.cs-ready-bar { cursor: pointer; padding-top: 4px; }
.cs-ready-track {
    height: 5px; background: #e2e7f2; border-radius: 999px; overflow: hidden; margin-top: 4px;
}
.cs-ready-fill { height: 100%; background: var(--grad-pill); border-radius: 999px; }

/* Grouped Clean Rail Navigation */
.cs-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cs-nav-label {
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
    color: #94a3b8; padding: 10px 10px 4px;
}
.cs-nav-label:first-child { padding-top: 2px; }
.cs-nav-item {
    width: 100%; border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 10px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--slate);
    text-align: left; text-decoration: none; transition: all .15s ease;
}
.cs-nav-item:hover { background: var(--bg-offwhite); color: var(--ink); }
.cs-nav-item.active {
    background: var(--tint-violet); color: var(--primary-dark); font-weight: 800;
}
.cs-nav-item span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.78; }
.cs-nav-item.active .cs-ico { opacity: 1; color: var(--brand-purple); }
.cs-nav-pill {
    font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
    background: var(--bg-offwhite); color: var(--muted); border: 1px solid var(--border);
}
.cs-nav-pill.pill-purple { background: #ede9fe; color: var(--primary-dark); border-color: #ddd6fe; }
.cs-nav-pill.pill-green  { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }

.cs-rail-foot {
    display: flex; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); flex-shrink: 0;
}

/* Right Spacious Main Canvas */
.cs-canvas {
    padding: 28px 34px 56px;
    min-width: 0;
    max-width: 1160px;
    width: 100%;
}
.cs-view-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.cs-view-title {
    font-size: 26px; font-weight: 900; color: var(--ink); letter-spacing: -0.4px; line-height: 1.18;
}
.cs-view-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* Notices & Action Strip */
.cs-notice {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 13px 18px; border-radius: 14px; font-size: 13px;
}
.cs-notice strong { display: block; color: var(--ink); font-size: 13.5px; }
.cs-notice span { color: var(--slate); font-size: 12.5px; }
.cs-notice-info { background: #eff6ff; border: 1px solid #bfdbfe; }
.cs-notice-warn { background: #fffbeb; border: 1px solid #fde68a; }

.cs-action-strip {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 11px 16px; border-radius: 13px;
    background: #ffffff; border: 1px solid #fed7aa;
    box-shadow: var(--shadow-xs);
}
.cs-action-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); flex-shrink: 0;
}

/* Minimalist Executive KPI Tiles */
.cs-kpi-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.cs-stat-card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
    padding: 18px 20px; text-align: left; font-family: inherit; color: var(--ink);
    cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    box-shadow: 0 1px 3px rgba(26, 23, 56, 0.03);
}
.cs-stat-card:hover {
    transform: translateY(-2px); border-color: #c4b5fd;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.08);
}
.cs-stat-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.cs-stat-lbl { font-size: 12px; font-weight: 700; color: var(--muted); }
.cs-stat-ico {
    font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.cs-stat-ico.ico-green  { background: #ecfdf5; color: #065f46; }
.cs-stat-ico.ico-purple { background: var(--tint-violet); color: var(--primary-dark); }
.cs-stat-ico.ico-pink   { background: var(--tint-rose); color: #be185d; }
.cs-stat-ico.ico-blue   { background: var(--tint-sky); color: #0369a1; }
.cs-stat-val {
    font-family: "Outfit", sans-serif; font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.15;
}
.cs-stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* Clean Surfaces & Split Grids */
.cs-ov-grid {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(275px, 0.9fr);
    gap: 20px; align-items: start;
}
.cs-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cs-surface {
    background: #ffffff; border: 1px solid var(--border); border-radius: 18px;
    padding: 20px 22px; box-shadow: 0 1px 3px rgba(26, 23, 56, 0.03); min-width: 0;
}
.cs-surface-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 15px;
}
.cs-surface-head h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.cs-link-btn {
    border: none; background: transparent; cursor: pointer; font-family: inherit;
    font-size: 12.5px; font-weight: 700; color: var(--brand-purple); padding: 0;
}
.cs-link-btn:hover { color: var(--brand-pink); }

/* Sleek Order Rows */
.cs-order-list { display: flex; flex-direction: column; gap: 10px; }
.cs-order-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 13px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    transition: border-color .15s ease, background .15s ease;
}
.cs-order-row:hover { background: #ffffff; border-color: #c4b5fd; }
.cs-order-right { text-align: right; flex-shrink: 0; }

/* Sleek Empty State */
.cs-empty-clean {
    text-align: center; padding: 30px 18px;
    background: var(--bg-offwhite); border: 1px dashed var(--border-strong); border-radius: 14px;
}

/* Sleek Wallet Mini Card */
.cs-wallet-mini {
    background:
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.12), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.10), transparent 50%),
        #ffffff;
    border: 1px solid #ddd6fe; border-radius: 18px; padding: 20px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.06);
}
.cs-wallet-amt {
    font-family: "Outfit", sans-serif; font-size: 29px; font-weight: 900; color: var(--emerald); line-height: 1.15;
}
.cs-wallet-meta {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 12px; color: var(--muted); margin-top: 8px;
    padding-top: 8px; border-top: 1px solid var(--border);
}

/* Clean Messages List */
.cs-msg-list { display: flex; flex-direction: column; gap: 8px; }
.cs-msg-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 12px; background: var(--bg-offwhite); border: 1px solid transparent;
    color: var(--ink); transition: all .15s ease;
}
.cs-msg-row:hover { background: #ffffff; border-color: #ddd6fe; color: var(--ink); }

/* Clean Segmented Filter Pills */
.cs-seg-pills {
    display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
    padding: 4px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
}
.cs-seg-btn {
    border: none; background: transparent; cursor: pointer; text-decoration: none;
    padding: 6px 12px; border-radius: 8px; font-family: inherit;
    font-size: 12.5px; font-weight: 700; color: var(--muted); transition: all .15s ease;
}
.cs-seg-btn:hover { color: var(--ink); }
.cs-seg-btn.active {
    background: #ffffff; color: var(--brand-purple);
    box-shadow: 0 2px 8px rgba(26, 23, 56, 0.08);
}

/* Sleek Uniform Other-Influencer Cards */
.cs-creator-card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cs-creator-card:hover {
    transform: translateY(-3px); border-color: #c4b5fd;
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.10);
}
.cs-cc-cover {
    height: 94px; display: block; overflow: hidden;
    background:
        radial-gradient(circle at 14% 25%, rgba(255, 138, 61, 0.25), transparent 50%),
        radial-gradient(circle at 86% 25%, rgba(14, 165, 233, 0.25), transparent 50%),
        linear-gradient(135deg, #f3e8ff 0%, #fce7f3 50%, #e0f2fe 100%);
    border-bottom: 1px solid var(--border);
}
.cs-cc-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-cc-body { padding: 0 16px 16px; display: flex; flex-direction: column; flex: 1; }
.cs-cc-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.cs-cc-av { margin-top: -28px; position: relative; z-index: 2; flex-shrink: 0; }
.cs-cc-av .avatar { width: 54px; height: 54px; font-size: 17px; border: 3px solid #ffffff; box-shadow: 0 6px 14px rgba(26, 23, 56, 0.12); }
.cs-cc-name {
    font-family: "Outfit", sans-serif; font-size: 16px; font-weight: 800; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-cc-name:hover { color: var(--brand-purple); }
.cs-cc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; margin-bottom: 10px; }
.cs-cc-stats {
    display: grid; grid-template-columns: 1fr 1fr; text-align: center;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 11px; padding: 8px 6px; margin-bottom: 10px;
}
.cs-cc-stats > div + div { border-left: 1px solid var(--border); }
.cs-cc-stats span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cs-cc-stats strong { font-family: "Outfit", sans-serif; font-size: 14.5px; font-weight: 900; color: var(--ink); }
.cs-cc-foot {
    margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
}

/* Mobile Slide-Over Drawer Backdrop */
.cs-drawer-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px); z-index: 280;
}
.cs-drawer-backdrop.open { display: block; }

/* Responsive Breakpoints for Sleek App Shell */
@media (max-width: 1180px) {
    .cs-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-canvas { padding: 22px 22px 48px; }
}
@media (max-width: 1024px) {
    .cs-shell { grid-template-columns: 1fr; }
    .cs-drawer-btn { display: inline-flex; }
    .cs-rail-mobile-head { display: flex; }
    .cs-rail {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 288px; max-width: 86vw; height: 100vh;
        z-index: 300; transform: translateX(-105%);
        transition: transform .24s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    }
    .cs-rail.drawer-open { transform: translateX(0); }
    .cs-ov-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cs-topbar-inner { padding: 0 14px; height: 60px; }
    .cs-canvas { padding: 16px 14px 72px; }
    .cs-kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cs-stat-card { padding: 14px; }
    .cs-stat-val { font-size: 20px; }
    .cs-view-title { font-size: 21px; }
    .cs-surface { padding: 16px; border-radius: 15px; }
    .cs-order-right { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 8px; }
}
@media (max-width: 420px) {
    .cs-kpi-row { grid-template-columns: 1fr; }
}


/* =====================================================================
   v5.6.1 CREATOR RAIL Z-INDEX, CLICKABILITY & ZERO FLOATING OVERLAP FIX
   ===================================================================== */
.cs-rail {
    z-index: 25;
    padding-bottom: 32px;
}
.cs-nav-item {
    position: relative;
    z-index: 2;
    cursor: pointer;
    user-select: none;
}
.cs-nav-item * {
    pointer-events: none;
}
/* Hide overlapping bottom-left Support pill on Creator Hub (Help & Support is directly in the left rail; popup still opens when triggered!) */
body.cs-hub-page .sup-launcher {
    display: none !important;
}
body.cs-hub-page .sup-dock {
    left: 292px;
    bottom: 22px;
    pointer-events: none;
}
body.cs-hub-page .sup-popup.open {
    pointer-events: auto;
}
@media (max-width: 1024px) {
    body.cs-hub-page .sup-dock {
        left: 10px;
        bottom: 10px;
    }
}


/* =====================================================================
   v5.6.2 INTEGRATED CREATOR MESSENGER & EMBEDDED LIVE SUPPORT CHAT
   ===================================================================== */
/* On Creator Hub, both Messenger & Support live natively in the Left Rail — hide duplicate bottom floating docks */
body.cs-hub-page .msgr-dock,
body.cs-hub-page .sup-dock {
    display: none !important;
}

.cs-msgr-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 580px;
    max-height: 700px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(26, 23, 56, 0.04);
}
.cs-msgr-side {
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--bg-offwhite);
    min-height: 0;
}
.cs-msgr-side-head {
    padding: 14px; border-bottom: 1px solid var(--border); background: #ffffff;
}
.cs-msgr-list {
    flex: 1; overflow-y: auto; padding: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.cs-msgr-item {
    width: 100%; border: 1px solid transparent; background: transparent;
    display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    border-radius: 12px; cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.cs-msgr-item:hover { background: #ffffff; border-color: var(--border); }
.cs-msgr-item.active { background: var(--tint-violet); border-color: #c4b5fd; }

.cs-msgr-main {
    display: flex; flex-direction: column; min-height: 0; background: #ffffff;
}
.cs-msgr-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 18px; border-bottom: 1px solid var(--border); background: #ffffff;
}
.cs-msgr-av {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad-main); color: #ffffff; font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.cs-msgr-av img { width: 100%; height: 100%; object-fit: cover; }
.cs-msgr-body {
    flex: 1; overflow-y: auto; padding: 18px;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--bg-offwhite);
}
.cs-msgr-composer {
    padding: 12px 16px; border-top: 1px solid var(--border); background: #ffffff;
}
.cs-offer-card {
    margin-top: 6px; padding: 9px 11px; border-radius: 10px;
    background: #ffffff; border: 1px solid #ddd6fe; color: var(--ink);
}

/* Embedded Live Support Chat Window */
.cs-sup-chat-box {
    min-height: 300px; max-height: 410px; overflow-y: auto;
    padding: 16px; border-radius: 14px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}

@media (max-width: 900px) {
    .cs-msgr-shell { grid-template-columns: 1fr; max-height: none; }
    .cs-msgr-side { max-height: 240px; border-right: none; border-bottom: 1px solid var(--border); }
    .cs-msgr-body { min-height: 300px; max-height: 420px; }
}


/* =====================================================================
   v5.8 REDESIGNED CREATOR PROFILE STUDIO, NOTIFICATIONS & DEDICATED FOOTER
   ===================================================================== */

/* Prevent top-right user dropdown from ever clipping Help & Support or Sign Out */
.user-menu-dropdown {
    max-height: calc(100vh - 84px);
    overflow-y: auto;
}

/* Rose pill badge for Left-Rail Notifications button */
.cs-nav-pill.pill-rose {
    background: var(--tint-rose);
    color: #be185d;
    border-color: #fbcfe8;
}

/* ---------------------------------------------------------------------
   IN-HUB NOTIFICATIONS CENTER
   --------------------------------------------------------------------- */
.cs-notif-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cs-notif-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border);
    color: var(--ink);
    text-decoration: none;
    transition: all .15s ease;
}
.cs-notif-row:hover {
    background: #ffffff;
    border-color: #c4b5fd;
    box-shadow: var(--shadow-xs);
    color: var(--ink);
}
.cs-notif-row.is-unread {
    background: var(--tint-violet);
    border-color: #ddd6fe;
}
.cs-notif-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.cs-notif-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-pink);
    margin-top: 6px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   REDESIGNED CREATOR PROFILE STUDIO (2-COLUMN MODERN EDITOR)
   --------------------------------------------------------------------- */
.ep-hero-preview {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 23, 56, 0.04);
}
.ep-hero-banner {
    height: 118px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 138, 61, 0.28), transparent 46%),
        radial-gradient(circle at 52% 85%, rgba(255, 46, 134, 0.20), transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.28), transparent 46%),
        linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #e0f2fe 100%);
}
.ep-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.ep-hero-banner-fade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.16) 100%);
    pointer-events: none;
}
.ep-banner-cam-btn {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border);
    color: var(--ink); cursor: pointer; font-family: inherit;
    box-shadow: var(--shadow-xs);
}
.ep-banner-cam-btn:hover { color: var(--brand-purple); border-color: var(--brand-purple); }

.ep-hero-strip {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
    padding: 0 20px 16px;
}
.ep-hero-avatar {
    width: 72px; height: 72px; border-radius: 50%; margin-top: -36px; position: relative; z-index: 3;
    border: 4px solid #ffffff; background: var(--grad-main); color: #ffffff;
    font-size: 22px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 8px 20px rgba(26, 23, 56, 0.16); cursor: pointer; flex-shrink: 0;
}
.ep-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-readiness-box {
    min-width: 205px; padding: 10px 14px; border-radius: 12px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    margin-top: 10px;
}

.ep-studio-grid {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.ep-studio-nav {
    display: flex; flex-direction: column; gap: 6px;
    background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
    padding: 10px;
    position: sticky; top: 82px;
}
.ep-nav-btn {
    width: 100%; border: 1px solid transparent; background: transparent; cursor: pointer;
    display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 12px;
    font-family: inherit; text-align: left; color: var(--slate); transition: all .15s ease;
}
.ep-nav-btn:hover { background: var(--bg-offwhite); color: var(--ink); }
.ep-nav-btn.active {
    background: var(--tint-violet); border-color: #ddd6fe; color: var(--primary-dark);
}
.ep-nav-ico {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--bg-offwhite); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.ep-nav-btn.active .ep-nav-ico { background: #ffffff; border-color: #c4b5fd; }
.ep-nav-txt { flex: 1; min-width: 0; }
.ep-nav-txt strong { display: block; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ep-nav-btn.active .ep-nav-txt strong { color: var(--primary-dark); }
.ep-nav-txt small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-nav-dot {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    font-size: 11px; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-offwhite); color: var(--muted); border: 1px solid var(--border);
}
.ep-nav-dot.done { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }

.ep-studio-main { min-width: 0; }
.ep-card {
    background: #ffffff; border: 1px solid var(--border); border-radius: 18px;
    padding: 22px 24px; box-shadow: 0 1px 4px rgba(26, 23, 56, 0.03);
}
.ep-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.ep-card-head h3 { font-size: 17.5px; font-weight: 800; color: var(--ink); }
.ep-field-group {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 18px;
}
.ep-group-title {
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    color: var(--muted); margin-bottom: 12px;
}
.ep-slider-card {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
}
.ep-upload-box {
    background: var(--bg-offwhite); border: 1px dashed var(--border-strong);
    border-radius: 14px; padding: 14px;
}
.ep-form-foot {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border);
}
.ep-socials-split {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
    gap: 16px; align-items: start;
}
.ep-social-item {
    background: var(--bg-offwhite); border: 1px solid var(--border);
    border-radius: 13px; padding: 14px;
}

/* ---------------------------------------------------------------------
   SEPARATE DEDICATED INFLUENCER LOGGED-IN FOOTER
   --------------------------------------------------------------------- */
.cs-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 22px 28px;
    margin-top: 0;
}
.cs-footer-hub {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 306px; /* Aligns cleanly beside the 272px Creator left rail! */
    padding-right: 34px;
}
.cs-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
}
.cs-footer-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.cs-footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-footer-links {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cs-footer-links a {
    font-size: 12.5px; font-weight: 700; color: var(--slate); text-decoration: none;
    transition: color .15s ease;
}
.cs-footer-links a:hover { color: var(--brand-purple); }
.cs-footer-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-footer-pill {
    font-size: 12px; font-weight: 700; color: var(--primary-dark);
    background: var(--tint-violet); border: 1px solid #ddd6fe;
    padding: 4px 11px; border-radius: 999px;
}
.cs-footer-pill:hover { background: #ede9fe; color: var(--primary-dark); }
.cs-footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    padding-top: 12px; font-size: 12px; color: var(--muted);
}
.cs-footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-footer-legal a { color: var(--muted); font-weight: 600; }
.cs-footer-legal a:hover { color: var(--brand-purple); }

@media (max-width: 1120px) {
    .ep-studio-grid { grid-template-columns: 1fr; }
    .ep-studio-nav {
        position: static; flex-direction: row; overflow-x: auto;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: 8px;
    }
    .ep-studio-nav::-webkit-scrollbar { display: none; }
    .ep-nav-btn { width: auto; flex-shrink: 0; padding: 8px 12px; }
    .ep-nav-txt small { display: none; }
    .ep-socials-split { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .cs-footer-hub { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 640px) {
    .ep-card { padding: 16px; }
    .ep-hero-strip { padding: 0 14px 14px; }
    .ep-readiness-box { width: 100%; }
    .cs-footer { padding: 18px 14px 28px; }
    .cs-footer-links { gap: 10px; }
}


/* =====================================================================
   v5.8.2 SLEEK MINIMALIST FOOTER SYSTEM & ULTRA EXPERTS CREDIT BADGE
   ===================================================================== */

/* Signature Credit Pill (Shared across Public, Creator & Portal Footers) */
.ue-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--bg-offwhite);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.3;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ue-credit-pill:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}
.ue-heart {
    color: #ff2e86;
    font-size: 13px;
    display: inline-block;
    animation: ueHeartBeat 2.4s ease-in-out infinite;
}
@keyframes ueHeartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.14); }
    56% { transform: scale(1); }
}
.ue-brand {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 1. Sleek Public / Guest / Buyer / Company Footer */
.slk-footer {
    position: relative;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 52px 0 26px;
    margin-top: 48px;
}
.slk-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    background: var(--grad-main);
    opacity: 0.85;
}
.slk-footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}
.slk-footer-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 340px;
    margin-top: 8px;
}
.slk-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.slk-footer-badges span {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate);
    background: var(--bg-offwhite);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
}
.slk-footer-col h4 {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--ink);
    margin-bottom: 13px;
}
.slk-footer-col a {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 9px;
    transition: color .15s ease, transform .15s ease;
}
.slk-footer-col a:hover {
    color: var(--brand-purple);
    transform: translateX(2px);
}
.slk-footer-contact {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.slk-footer-contact a {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-purple);
    margin-bottom: 0;
}
.slk-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 20px;
}
.slk-footer-copy {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
}

/* 2. Sleek Dedicated Creator Studio Footer Card */
.cs-footer {
    background: transparent;
    border-top: none;
    padding: 0 34px 28px;
}
.cs-footer-hub {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 34px 28px 306px;
}
.cs-footer-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 2px 10px rgba(26, 23, 56, 0.03);
    position: relative;
    overflow: hidden;
}
.cs-footer-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-main);
    opacity: 0.7;
}
.cs-footer-top {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}
.cs-footer-bottom {
    padding-top: 13px;
    align-items: center;
}

/* 3. Sleek Internal Portal Micro-Footer */
.slk-portal-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .cs-footer-hub { padding: 0 22px 26px; }
    .slk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
    .slk-footer { padding: 36px 0 24px; }
    .slk-footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .slk-footer-bottom { flex-direction: column; align-items: flex-start; }
    .cs-footer, .cs-footer-hub { padding: 0 14px 24px; }
    .cs-footer-card { padding: 16px; border-radius: 15px; }
    .ue-credit-pill { font-size: 11.5px; padding: 5px 11px; }
}


/* =====================================================================
   v5.8.3 PIXEL-ALIGNED ULTRA-SLEEK MINIMALIST FOOTER & ULTRA EXPERTS LINK
   ===================================================================== */

/* Clickable Ultra Experts Link Inside Credit Pill */
.ue-brand-link {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.ue-brand-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1.5px;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity .16s ease;
}
.ue-brand-link:hover::after { opacity: 1; }

/* Exact 2-Column Alignment with .cs-shell (272px rail + .cs-canvas) */
.cs-hub-footer-shell {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    align-items: stretch;
}
.cs-hub-footer-rail {
    background: #ffffff;
    border-right: 1px solid var(--border);
}
.cs-hub-footer-main {
    max-width: 1160px;
    width: 100%;
    padding: 0 34px 26px;
}

/* Shared Ultra-Sleek Single-Row Footer Bar */
.slk-mini-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--muted);
}
.slk-mini-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.slk-mini-left a {
    color: var(--slate);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}
.slk-mini-left a:hover { color: var(--brand-purple); }
.slk-mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink) !important;
    font-family: "Outfit", sans-serif;
    font-weight: 800 !important;
    font-size: 13.5px;
}
.slk-mini-brand img {
    height: 20px;
    width: auto;
    display: block;
}
.slk-sep { color: var(--border-strong); user-select: none; }

/* Ultra-Sleek Public / Standalone Footer */
.slk-slim-footer {
    position: relative;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 26px 0 22px;
    margin-top: 40px;
}
.slk-slim-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-main);
    opacity: 0.78;
}
.slk-slim-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
}
.slk-slim-id {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.slk-slim-tag {
    font-size: 12.5px;
    color: var(--muted);
    padding-left: 12px;
    border-left: 1px solid var(--border);
}
.slk-slim-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.slk-slim-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    transition: color .15s ease;
}
.slk-slim-nav a:hover { color: var(--brand-purple); }

/* Keep .cs-canvas bottom spacing tight so footer sits naturally right underneath */
.cs-canvas { padding-bottom: 28px; }

/* Exact Breakpoint Parity with .cs-shell & .cs-canvas */
@media (max-width: 1180px) {
    .cs-hub-footer-main { padding: 0 22px 24px; }
}
@media (max-width: 1024px) {
    .cs-hub-footer-shell { grid-template-columns: 1fr; }
    .cs-hub-footer-rail { display: none; }
    .cs-hub-footer-main { max-width: 100%; padding: 0 22px 26px; }
}
@media (max-width: 640px) {
    .cs-hub-footer-main { padding: 0 14px 26px; }
    .slk-slim-footer { padding: 22px 0 20px; margin-top: 28px; }
    .slk-slim-tag { display: none; }
    .slk-slim-nav { gap: 12px; }
    .slk-mini-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
