:root {
    --iv-ink: #182230;
    --iv-muted: #667085;
    --iv-border: #e6e9ef;
    --iv-surface: #ffffff;
    --iv-canvas: #f5f7fa;
    --iv-primary: #5b51d8;
    --iv-primary-dark: #453abf;
    --iv-accent: #18a67e;
    --iv-danger: #d64955;
    --iv-warning: #d68b19;
    --iv-sidebar: #111827;
    --iv-radius: 14px;
    --iv-shadow: 0 12px 34px rgba(23, 34, 52, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--iv-ink); background: var(--iv-canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: 264px; padding: 22px 16px; color: #d8deea; background: var(--iv-sidebar); display: flex; flex-direction: column; transition: transform .22s ease; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 26px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; color: #fff; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(145deg, #796df0, #4a42b7); box-shadow: 0 7px 20px rgba(92, 81, 216, .36); }
.brand-copy { display: grid; }.brand-copy strong { font-size: 16px; }.brand-copy small { color: #8f9aaf; font-size: 11px; }
.nav-label, .eyebrow { display: block; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; overflow: auto; }
.sidebar-nav .nav-label { padding: 8px 12px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 8px 11px; border-radius: 10px; color: #aeb8ca; text-decoration: none; transition: .16s ease; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: rgba(110,98,230,.24); box-shadow: inset 3px 0 #8b80ff; }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; }
.sidebar-user { margin-top: auto; padding: 14px 9px 2px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.sidebar-user div { display: grid; min-width: 0; }.sidebar-user strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.sidebar-user small { color: #8490a5; text-transform: capitalize; }
.main { min-height: 100vh; margin-left: 264px; }
.topbar { position: sticky; top: 0; z-index: 1020; height: 70px; padding: 0 30px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--iv-border); display: flex; align-items: center; gap: 18px; }
.global-search { width: min(430px, 45vw); display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--iv-border); border-radius: 10px; background: #f9fafb; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--iv-border); border-radius: 10px; background: #fff; display: grid; place-items: center; text-decoration: none; }
.profile-button { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: #e8e7fb; color: var(--iv-primary-dark); font-weight: 800; }
.avatar-sm { width: 34px; height: 34px; }
.content { max-width: 1600px; margin: 0 auto; padding: 30px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-heading h1 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.panel { background: var(--iv-surface); border: 1px solid var(--iv-border); border-radius: var(--iv-radius); box-shadow: 0 4px 18px rgba(23,34,52,.035); }
.panel-header { padding: 18px 20px; border-bottom: 1px solid var(--iv-border); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-header h2 { margin: 0; font-size: 16px; }.panel-body { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { padding: 19px; background: #fff; border: 1px solid var(--iv-border); border-radius: var(--iv-radius); box-shadow: 0 4px 18px rgba(23,34,52,.035); }
.stat-card .stat-label { color: var(--iv-muted); font-size: 12px; font-weight: 700; }.stat-card strong { display: block; margin-top: 10px; font-size: 27px; letter-spacing: -.04em; }.stat-card small { color: var(--iv-accent); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 20px; }
.data-table { width: 100%; border-collapse: collapse; }.data-table th { padding: 12px 14px; color: var(--iv-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: #fafbfc; border-bottom: 1px solid var(--iv-border); }.data-table td { padding: 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }.data-table tr:last-child td { border-bottom: 0; }
.badge-soft { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: #eef0ff; color: #5148bd; font-size: 11px; font-weight: 800; text-transform: capitalize; }.badge-active { background: #e7f8f1; color: #16795e; }.badge-inactive,.badge-archived { background: #f0f1f4; color: #667085; }.badge-video { background: #fff0e6; color: #a95416; }
.toolbar { padding: 14px; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--iv-border); border-radius: var(--iv-radius); }
.toolbar .form-control,.toolbar .form-select { min-width: 160px; width: auto; }
.toolbar .search-control { min-width: 240px; flex: 1; }
.btn { border-radius: 9px; font-weight: 700; font-size: 13px; padding: 9px 14px; }
.btn-primary { background: var(--iv-primary); border-color: var(--iv-primary); }.btn-primary:hover { background: var(--iv-primary-dark); border-color: var(--iv-primary-dark); }
.media-grid,.influencer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.media-card,.influencer-card { overflow: hidden; background: #fff; border: 1px solid var(--iv-border); border-radius: var(--iv-radius); transition: transform .18s ease, box-shadow .18s ease; }
.media-card:hover,.influencer-card:hover { transform: translateY(-2px); box-shadow: var(--iv-shadow); }
.media-thumb { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #e9edf3; display: grid; place-items: center; }
.media-thumb img,.media-thumb video { width: 100%; height: 100%; object-fit: cover; }.media-type { position: absolute; top: 10px; left: 10px; }
.media-meta { padding: 14px; }.media-meta h3 { margin: 0 0 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.media-meta p { margin: 0; color: var(--iv-muted); font-size: 12px; }
.influencer-cover { height: 78px; background: linear-gradient(120deg, #dcd9ff, #d9f3ec); }.influencer-content { padding: 0 16px 16px; }.influencer-content .avatar { width: 54px; height: 54px; margin-top: -27px; border: 4px solid #fff; }.influencer-content h3 { margin: 10px 0 2px; font-size: 16px; }.metric-row { display: flex; gap: 18px; margin-top: 14px; color: var(--iv-muted); }.metric-row strong { color: var(--iv-ink); }
.form-card { max-width: 980px; }.form-section { padding: 22px; border-bottom: 1px solid var(--iv-border); }.form-section:last-child { border-bottom: 0; }.form-section h2 { font-size: 16px; margin-bottom: 17px; }.form-label { font-size: 12px; font-weight: 750; color: #3a4657; }.form-control,.form-select { border-color: #dce1e8; border-radius: 9px; min-height: 42px; }.form-control:focus,.form-select:focus { border-color: #8a82e7; box-shadow: 0 0 0 3px rgba(91,81,216,.1); }
.drop-zone { padding: 40px 24px; text-align: center; border: 1.5px dashed #b8bfd0; border-radius: 13px; background: #fafbfc; transition: .18s ease; }.drop-zone.dragover { border-color: var(--iv-primary); background: #f2f1ff; }.drop-zone strong { display: block; margin-bottom: 5px; font-size: 16px; }.preview-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 10px; margin-top: 16px; }.preview-item { border: 1px solid var(--iv-border); border-radius: 9px; padding: 8px; overflow: hidden; }.preview-item img,.preview-item video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }.preview-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.65fr); gap: 20px; }.viewer { min-height: 520px; display: grid; place-items: center; overflow: hidden; background: #10141a; border-radius: var(--iv-radius); }.viewer img,.viewer video { max-width: 100%; max-height: 76vh; }
.profile-hero { overflow: hidden; }.profile-cover { height: 190px; background: linear-gradient(125deg,#d9d5ff,#d9f5ed 65%,#f4e9d5); }.profile-summary { padding: 0 26px 24px; display: flex; align-items: end; gap: 18px; }.profile-summary .avatar { width: 96px; height: 96px; margin-top: -48px; border: 6px solid #fff; font-size: 30px; }.profile-summary h2 { margin: 0; }
.note-card { padding: 18px; }.note-card + .note-card { border-top: 1px solid var(--iv-border); }.note-content { color: #394657; line-height: 1.65; }
.chat-shell { height: calc(100vh - 166px); min-height: 560px; display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }.conversation-list { border-right: 1px solid var(--iv-border); overflow-y: auto; }.conversation-item { display: block; padding: 15px 17px; border-bottom: 1px solid #edf0f4; text-decoration: none; }.conversation-item:hover,.conversation-item.active { background: #f3f2ff; }.conversation-item strong,.conversation-item small { display: block; }.conversation-item small { margin-top: 4px; color: var(--iv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { min-width: 0; display: flex; flex-direction: column; }.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--iv-border); }.message-list { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }.message { max-width: 70%; }.message.mine { align-self: flex-end; }.message-bubble { padding: 10px 13px; background: #eef1f5; border-radius: 4px 13px 13px 13px; white-space: pre-wrap; }.message.mine .message-bubble { color: #fff; background: var(--iv-primary); border-radius: 13px 4px 13px 13px; }.message-meta { margin-top: 3px; color: var(--iv-muted); font-size: 10px; }.chat-compose { padding: 14px; border-top: 1px solid var(--iv-border); display: flex; gap: 9px; }.chat-compose textarea { resize: none; min-height: 43px; max-height: 110px; }
.empty-state { padding: 64px 24px; text-align: center; color: var(--iv-muted); }.empty-state strong { display: block; color: var(--iv-ink); font-size: 17px; margin-bottom: 5px; }
.app-toast { min-width: 300px; color: #fff; border: 0; box-shadow: var(--iv-shadow); }.app-toast.success { background: #16795e; }.app-toast.danger { background: var(--iv-danger); }
.auth-body { min-height: 100vh; background: #edf0f5; }.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 1.05fr) minmax(420px, .95fr); }.auth-visual { padding: 46px; color: #fff; background: radial-gradient(circle at 75% 20%,rgba(120,108,240,.55),transparent 30%),linear-gradient(145deg,#121a2a,#26245f); display: flex; flex-direction: column; justify-content: space-between; }.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; }.auth-statement h1 { max-width: 680px; margin: 12px 0 18px; font-size: clamp(42px,5vw,70px); line-height: .98; letter-spacing: -.06em; }.auth-statement p { max-width: 560px; color: #c9cee0; font-size: 17px; }.auth-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #aeb7cd; font-size: 12px; }.auth-panel { display: grid; place-items: center; padding: 35px; background: #fff; }.auth-card { width: min(430px,100%); }.auth-card h2 { font-size: 30px; letter-spacing: -.04em; }.password-wrap { position: relative; }.password-wrap .form-control { padding-right: 62px; }.password-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--iv-primary); font-size: 12px; font-weight: 800; }.honeypot { position: absolute !important; left: -10000px !important; }
.error-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--iv-canvas); }.error-card { max-width: 620px; padding: 46px; text-align: center; background: #fff; border: 1px solid var(--iv-border); border-radius: 18px; box-shadow: var(--iv-shadow); }.error-code { color: var(--iv-primary); font-size: 76px; font-weight: 900; letter-spacing: -.08em; }
.mobile-menu,.sidebar-backdrop { display: none; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2,1fr); }.dashboard-grid,.detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); }.sidebar.open { transform: translateX(0); }.sidebar-backdrop.open { display: block; position: fixed; inset: 0; z-index: 1030; background: rgba(10,16,28,.45); }
    .main { margin-left: 0; }.mobile-menu { display: grid; }.content { padding: 22px 16px; }.topbar { padding: 0 16px; }.profile-name { display: none; }
    .auth-shell { grid-template-columns: 1fr; }.auth-visual { display: none; }.chat-shell { grid-template-columns: 1fr; }.chat-main:not(.active) { display: none; }.conversation-list:has(+ .chat-main.active) { display: none; }
}
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { padding: 14px; }.stat-card strong { font-size: 22px; }.global-search { display: none; }.toolbar .form-control,.toolbar .form-select,.toolbar .search-control { width: 100%; min-width: 0; }.profile-summary { align-items: flex-start; flex-direction: column; }.media-grid,.influencer-grid { grid-template-columns: 1fr; } }
