/* Shared influencer sub-page shell (header, sidebar, mobile bottom nav) */
body.influencer-profile {
    background: linear-gradient(165deg, #eef2ff 0%, #f8fafc 45%, #fff 100%);
}
body.influencer-profile #sidebar-admin-wraper {
    background: #0f172a !important;
    box-shadow: 1px 0 0 rgba(255,255,255,0.04), 4px 0 24px rgba(2,6,23,0.3) !important;
    width: 260px !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important;
    transition: transform 0.3s ease !important;
    overflow: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
}
body.influencer-profile #sidebar-admin-wraper.active {
    transform: translateX(-260px) !important;
    margin-left: 0 !important;
}
body.influencer-profile #sidebar-admin-wraper .page-logo {
    padding: 22px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
body.influencer-profile #sidebar-admin-wraper .page-logo img {
    max-height: 34px;
    filter: brightness(1.15) drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
body.influencer-profile .inf-sb-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 4px;
}
body.influencer-profile .inf-sb-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.12);
    overflow: hidden;
}
.inf-sb-avatar-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    border-radius: 12px;
    line-height: 0;
}
.inf-sb-avatar-link:hover { opacity: 0.92; }
.inf-avatar-placeholder img,
.inf-sb-avatar-placeholder img,
.display_header_profile_image_new img,
.display_sidebar_avatar_placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
body.influencer-profile .inf-sb-user-info { flex: 1; min-width: 0; }
body.influencer-profile .inf-sb-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.influencer-profile .inf-sb-responsibility {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    margin-top: 6px;
    margin-bottom: 2px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
body.influencer-profile .inf-sb-responsibility.inf-sb-resp--unverified {
    color: #e2e8f0;
    background: rgba(71,85,105,0.45);
    border-color: rgba(148,163,184,0.35);
}
body.influencer-profile .inf-sb-responsibility.inf-sb-resp--t1 {
    color: #eef2ff;
    background: linear-gradient(135deg,rgba(99,102,241,0.55),rgba(139,92,246,0.4));
    border-color: rgba(165,180,252,0.5);
}
body.influencer-profile .inf-sb-responsibility.inf-sb-resp--t2 {
    color: #ecfeff;
    background: linear-gradient(135deg,rgba(14,165,233,0.5),rgba(6,182,212,0.38));
    border-color: rgba(103,232,249,0.45);
}
body.influencer-profile .inf-sb-responsibility.inf-sb-resp--t3 {
    color: #ecfdf5;
    background: linear-gradient(135deg,rgba(16,185,129,0.5),rgba(52,211,153,0.35));
    border-color: rgba(110,231,183,0.45);
}
body.influencer-profile .inf-sb-responsibility.inf-sb-resp--t4 {
    color: #fffbeb;
    background: linear-gradient(135deg,rgba(245,158,11,0.55),rgba(251,191,36,0.4));
    border-color: rgba(252,211,77,0.5);
}
body.influencer-profile .inf-sb-responsibility.inf-sb-resp--t5 {
    color: #fffbeb;
    background: linear-gradient(135deg,rgba(217,119,6,0.65),rgba(245,158,11,0.5));
    border-color: rgba(253,224,71,0.55);
}
body.influencer-profile .inf-sb-user-role { font-size: 0.72rem; color: #64748b; margin-top: 1px; }
body.influencer-profile .inf-sb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    backdrop-filter: blur(2px);
}
body.influencer-profile #sidebar-admin-wraper .admin-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul {
    padding: 4px 12px;
    list-style: none;
    margin: 0;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li { margin: 2px 0; }
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #94a3b8;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    position: relative;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li > a .inf-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    font-size: 0.9rem;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li > a:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li.active > a {
    background: rgba(99,102,241,0.14);
    color: #a5b4fc;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li.active > a .inf-nav-icon {
    background: rgba(99,102,241,0.25);
    color: #818cf8;
}
body.influencer-profile #sidebar-admin-wraper .admin-nav ul li.active > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #6366f1;
    border-radius: 0 3px 3px 0;
}
body.influencer-profile .inf-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #334155;
    padding: 14px 20px 6px;
}
body.influencer-profile .inf-sb-bottom {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
body.influencer-profile .inf-sb-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s;
    width: 100%;
}
body.influencer-profile .inf-sb-logout-btn:hover {
    background: rgba(239,68,68,0.1);
    color: #fca5a5;
}
body.influencer-profile #header-admin-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 260px !important;
    right: 0 !important;
    height: 64px !important;
    z-index: 1002 !important;
    transition: left 0.3s ease !important;
    background: #fff;
    box-shadow: 0 1px 0 #e8ecf0, 0 4px 16px rgba(15,23,42,0.05);
}
body.influencer-profile #header-admin-wrap.sidebar-collapsed { left: 0 !important; }
/* Override global style.css #header-admin fixed positioning */
body.influencer-profile #header-admin-wrap #header-admin {
    position: relative !important;
    width: 100% !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    border-bottom: none !important;
    background: transparent !important;
}
body.influencer-profile #content {
    left: 260px;
    width: calc(100% - 260px);
    padding: 84px 28px 40px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: left 0.3s ease, width 0.3s ease;
}
body.influencer-profile #sidebar-admin-wraper.active ~ #content,
body.influencer-profile #content.active {
    left: 0 !important;
    width: 100% !important;
}
body.influencer-profile .inf-hamburger {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}
body.influencer-profile .inf-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
}
@media (min-width: 769px) {
    body.influencer-profile #header-admin-wrap .inf-hamburger {
        display: flex !important;
        visibility: visible !important;
    }
}
body.influencer-profile .inf-header-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 16px;
    min-width: 0;
}
body.influencer-profile .inf-header-title h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.influencer-profile .inf-header-title .inf-breadcrumb {
    font-size: 0.75rem;
    color: #94a3b8;
}
body.influencer-profile .inf-header-title .inf-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}
body.influencer-profile .inf-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}
body.influencer-profile #header-admin-wrap {
    overflow: visible !important;
}
body.influencer-profile #header-admin-wrap #header-admin {
    overflow: visible !important;
}
body.influencer-profile .inf-header-lang-btn.dropdown-toggle::after {
    display: none !important;
}
body.influencer-profile .inf-header-lang-menu {
    min-width: 180px;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    padding: 6px;
    margin-top: 8px;
}
body.influencer-profile .inf-header-lang-wrap .dropdown-menu {
    z-index: 1060;
}
body.influencer-profile .inf-header-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.influencer-profile .inf-lang-icon {
    color: #6366f1;
    font-size: 0.9rem;
}
body.influencer-profile .inf-lang-chevron {
    font-size: 0.65rem;
    color: #94a3b8;
}
body.influencer-profile .inf-header-lang-btn[aria-expanded="true"] .inf-lang-chevron {
    transform: rotate(180deg);
}
body.influencer-profile .inf-header-avatar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 5px 14px 5px 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
body.influencer-profile .inf-header-avatar-btn:hover {
    background: #f1f5f9;
    border-color: #c7d2fe;
}
body.influencer-profile .inf-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
body.influencer-profile .inf-avatar-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.influencer-profile .inf-avatar-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.2s;
}
body.influencer-profile .inf-header-dropdown {
    min-width: 200px !important;
    border-radius: 14px !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 8px 32px rgba(15,23,42,0.12) !important;
    padding: 6px !important;
    margin-top: 8px !important;
}
body.influencer-profile .inf-header-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.influencer-profile .inf-header-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6366f1;
    flex-shrink: 0;
}
body.influencer-profile .inf-header-dropdown .dropdown-item:hover {
    background: #f0f0ff;
    color: #4f46e5;
}
body.influencer-profile .inf-header-dropdown .inf-dd-logout { color: #ef4444; }
body.influencer-profile .inf-header-dropdown .inf-dd-logout i { color: #ef4444; }
body.influencer-profile .inf-header-dropdown .inf-dd-logout:hover {
    background: #fff1f2;
    color: #dc2626;
}
body.influencer-profile .modal { z-index: 1101 !important; }
body.influencer-profile .modal-backdrop { z-index: 1100 !important; }

/* Desktop: hide mobile bottom nav */
@media (min-width: 769px) {
    .role-mobile-bottom-nav,
    .role-mobile-more-drawer,
    .role-mobile-more-drawer-backdrop {
        display: none !important;
    }
}

/* Tablet (769–991): sidebar overlay + burger, same as rewards.html */
@media (max-width: 991px) and (min-width: 769px) {
    body.influencer-profile #sidebar-admin-wraper {
        position: fixed !important;
        height: 100vh !important;
        transform: translateX(-260px) !important;
    }
    body.influencer-profile #sidebar-admin-wraper.mobile-open {
        transform: translateX(0) !important;
        z-index: 1050 !important;
    }
    body.influencer-profile #header-admin-wrap {
        left: 0 !important;
    }
    body.influencer-profile #content,
    body.influencer-profile #content.active {
        left: 0 !important;
        width: 100% !important;
    }
}

/* Phone (≤768): bottom nav, no burger, sidebar always hidden */
@media (max-width: 768px) {
    body.influencer-profile #sidebar-admin-wraper {
        position: fixed !important;
        height: 100vh !important;
        transform: translateX(-260px) !important;
    }
    body.influencer-profile #header-admin-wrap {
        left: 0 !important;
    }
    body.influencer-profile #content,
    body.influencer-profile #content.active {
        left: 0 !important;
        width: 100% !important;
        padding: 72px 16px 24px !important;
    }
    body.influencer-profile .inf-hamburger {
        display: none !important;
    }
    body.influencer-profile .inf-header-title {
        margin-left: 0 !important;
        flex: 1;
        margin-right: 8px;
    }
    body.influencer-profile .inf-header-title h2,
    body.influencer-profile .inf-header-title .inf-breadcrumb {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.influencer-profile .inf-avatar-name {
        display: none;
    }
}
