* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', 'Noto Sans SC', -apple-system, sans-serif; background: #F5F5F7; color: #1a1a2e; min-height: 100vh; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #DDD; border-radius: 3px; }

.topbar { background: #1a1a2e; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-logo { width: 34px; height: 34px; border-radius: 9px; background: #E05050; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; }
.topbar-title { color: #fff; font-weight: 700; font-size: 15px; font-family: 'Noto Serif SC', serif; letter-spacing: .02em; }
.topbar-sub { color: rgba(255,255,255,.35); font-size: 9px; letter-spacing: .1em; margin-top: 1px; }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.topbar-user span { color: rgba(255,255,255,.45); font-size: 12px; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; background: #6366F1; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.nav-tabs { display: flex; gap: 0; padding: 0 28px; background: #fff; border-bottom: 1px solid #EBEBEB; }
.nav-tab { padding: 14px 22px; font-size: 13px; font-weight: 600; color: #999; cursor: pointer; border-bottom: 2.5px solid transparent; transition: all .2s; display: flex; align-items: center; gap: 7px; }
.nav-tab:hover { color: #555; }
.nav-tab.active { color: #1a1a2e; border-bottom-color: #1a1a2e; }

.filter-bar { display: flex; align-items: center; gap: 10px; padding: 16px 28px; flex-wrap: wrap; }
.filter-label { font-size: 12px; font-weight: 600; color: #999; letter-spacing: .04em; margin-right: 4px; }
.brand-chip { padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid #E5E7EB; background: #fff; color: #666; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.brand-chip:hover { border-color: #999; color: #333; }
.brand-chip.active { border-color: #1a1a2e; color: #1a1a2e; background: #F0F0F5; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stats-bar { display: flex; gap: 12px; padding: 0 28px 16px; flex-wrap: wrap; }
.stat-card { background: #fff; border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; border: 1.5px solid #EBEBEB; transition: all .2s; flex: 1; min-width: 140px; }
.stat-card:hover { border-color: #C0C0C8; transform: translateY(-1px); }
.stat-card.active { border-color: #1a1a2e; box-shadow: 0 0 0 3px rgba(26,26,46,.08); }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.stat-label { font-size: 13px; font-weight: 700; }
.stat-sublabel { font-size: 10px; color: #999; margin-top: 2px; }

.grid-header { padding: 0 28px 12px; font-size: 12px; color: #999; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding: 0 28px 28px; }
.card { background: #fff; border-radius: 16px; padding: 18px; cursor: pointer; border: 1.5px solid #EBEBEB; transition: all .2s; }
.card:hover { border-color: #C0C0C8; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.avatar-circle { width: 40px; height: 40px; border-radius: 12px; background: #EEEEF5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #6366F1; }
.influencer-name { font-size: 14px; font-weight: 700; }
.influencer-handle { font-size: 11px; color: #999; margin-top: 2px; }
.card-tags-row { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.card-brand-tag { padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.campaign-tag { background: #F5F5F7; border-radius: 6px; padding: 3px 9px; font-size: 11px; color: #777; }
.campaign-name { font-weight: 600; }
.card-text { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-images { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.img-thumb { width: 60px; height: 60px; border-radius: 8px; background: #F0F0F5; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #888; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.img-preview { width: 100%; aspect-ratio: 1/1; border-radius: 10px; background: #F0F0F5; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #888; overflow: hidden; cursor: pointer; transition: opacity .15s; }
.img-preview:hover { opacity: .85; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-metrics { display: flex; gap: 10px; padding: 6px 0 2px; border-top: 1px solid #F3F4F6; margin-top: 6px; align-items: center; }
.cm-item { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #6B7280; font-weight: 500; }
.cm-link { display: flex; align-items: center; gap: 3px; font-size: 11px; color: #6366F1; text-decoration: none; font-weight: 500; }
.cm-link:hover { text-decoration: underline; }
.cm-refresh { display:flex;align-items:center;justify-content:center;margin-left:auto;width:18px;height:18px;border-radius:4px;border:1px solid #E5E7EB;background:#fff;cursor:pointer;color:#9CA3AF;padding:0;transition:color .15s,border-color .15s; }
.cm-refresh:hover { color:#6366F1;border-color:#6366F1; }
.cm-sep { width: 1px; height: 10px; background: #E5E7EB; margin: 0 2px; }
.card-date { font-size: 11px; color: #BBB; }
.reviewer-stack { display: flex; align-items: center; gap: 4px; }
.reviewer-dot { width: 22px; height: 22px; border-radius: 50%; background: #1a1a2e; color: #fff; font-size: 7px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; margin-left: -6px; }
.reviewer-dot:first-child { margin-left: 0; }
.review-count { font-size: 11px; color: #BBB; margin-left: 4px; }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.badge.pending   { background: #FEF3C7; color: #B45309; }
.badge.revision  { background: #FEE2E2; color: #B91C1C; }
.badge.approved  { background: #D1FAE5; color: #065F46; }
.badge.published { background: #DBEAFE; color: #1E40AF; }

.empty { text-align: center; padding: 60px 20px; color: #BBB; font-size: 14px; }
.empty .icon { margin-bottom: 12px; color: #D1D5DB; }
.empty .icon svg { width: 40px; height: 40px; }

.overlay { position: fixed; inset: 0; z-index: 1000; display: flex; }
.overlay.hidden { display: none; }
.overlay-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }
.panel { position: relative; margin-left: auto; width: 480px; max-width: 100%; background: #fff; height: 100%; overflow-y: auto; display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,.15); }
.panel-header { padding: 20px 24px; border-bottom: 1px solid #F0F0F0; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.panel-header h2 { font-size: 16px; font-weight: 700; }
.panel-header small { font-size: 11px; color: #999; }
.panel-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: #F5F5F7; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; color: #666; }
.panel-body { padding: 20px 24px; flex: 1; overflow-y: auto; }
.panel-footer { padding: 16px 24px; border-top: 1px solid #F0F0F0; flex-shrink: 0; background: #fff; }
.panel-influencer { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-influencer .name { font-size: 15px; font-weight: 700; }
.panel-influencer .meta { font-size: 12px; color: #999; margin-top: 2px; }
.panel-campaign { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.panel-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.panel-body-text { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 14px; }
.section-label { font-size: 11px; font-weight: 700; color: #999; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.panel-images { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-img-thumb { width: 80px; height: 80px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #888; cursor: pointer; overflow: hidden; flex-shrink: 0; }
.trail { margin-bottom: 14px; }
.trail-item { display: flex; gap: 10px; position: relative; }
.trail-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.trail-dot.approved { background: #10B981; }
.trail-dot.revision { background: #EF4444; }
.trail-line { position: absolute; left: 5px; top: 16px; bottom: -10px; width: 2px; background: #F0F0F0; }
.trail-reviewer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.trail-avatar { width: 20px; height: 20px; border-radius: 50%; background: #1a1a2e; color: #fff; font-size: 7px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.trail-name { font-size: 12px; font-weight: 600; }
.trail-time { font-size: 11px; color: #BBB; margin-left: auto; }
.trail-action { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.trail-action.approved { background: #D1FAE5; color: #065F46; }
.trail-action.revision { background: #FEE2E2; color: #B91C1C; }
.trail-comment { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 10px; padding-left: 2px; }

.publish-section { background: #1a1a2e; border-radius: 12px; padding: 16px; margin-top: 14px; }
.publish-section-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.publish-link-row { display: flex; gap: 8px; }
.publish-link-row input { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 12px; color: #fff; font-size: 13px; font-family: inherit; outline: none; }
.publish-link-row input::placeholder { color: rgba(255,255,255,.35); }
.publish-done-link { margin-bottom: 6px; }
.publish-done-link a { color: #93C5FD; font-size: 13px; word-break: break-all; }
.metrics-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.metric-chip { background: rgba(255,255,255,.1); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #fff; }
.mc-icon { display: flex; align-items: center; color: rgba(255,255,255,.6); }
.mc-label { font-size: 10px; color: rgba(255,255,255,.5); margin-left: 2px; }

.panel-actions { display: flex; gap: 10px; margin-top: 10px; }
.panel-actions button { flex: 1; }
textarea { width: 100%; border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-family: inherit; resize: vertical; min-height: 72px; outline: none; transition: border .2s; }
textarea:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

.btn-approve  { background: #10B981; color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-approve:hover  { opacity: .88; }
.btn-approve:disabled { opacity: .4; cursor: not-allowed; }
.btn-revision { background: #EF4444; color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-revision:hover  { opacity: .88; }
.btn-revision:disabled { opacity: .4; cursor: not-allowed; }
.btn-publish  { background: #1D4ED8; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn-publish:hover   { opacity: .88; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1a1a2e; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.2); display: flex; align-items: center; gap: 6px; }
.toast.hidden { display: none; }
.toast.success { background: #10B981; }
.toast.error   { background: #EF4444; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; }
.lightbox.hidden { display: none; }
.lb-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 80vw; max-height: 75vh; overflow: hidden; border-radius: 12px; }
.lb-img img { max-width: 80vw; max-height: 75vh; object-fit: contain; display: block; }
.lb-label { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 10px; }
.lb-counter { color: rgba(255,255,255,.5); font-size: 12px; margin-bottom: 8px; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 24px; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lb-nav.prev { left: -52px; }
.lb-nav.next { right: -52px; }

.dashboard { padding: 24px 28px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.brand-card { background: #fff; border-radius: 16px; padding: 20px; border: 1.5px solid #EBEBEB; }
.brand-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-logo-lg { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0; }
.brand-card-name { font-size: 15px; font-weight: 700; }
.brand-card-sub { font-size: 11px; color: #999; margin-top: 2px; }
.brand-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.brand-stat-box { text-align: center; background: #FAFAFA; border-radius: 8px; padding: 8px 4px; }
.brand-stat-num { font-size: 20px; font-weight: 700; }
.brand-stat-label { font-size: 10px; color: #999; margin-top: 2px; }
.progress-bar-bg { height: 6px; background: #F0F0F0; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.progress-bar { height: 100%; border-radius: 3px; transition: width .4s; }
.brand-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: #999; margin-bottom: 4px; }

.summary-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #EBEBEB; }
.summary-table th { padding: 10px 16px; font-size: 11px; font-weight: 600; color: #999; text-align: left; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #F1F1F1; }
.summary-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #F5F5F5; }
.summary-table tr:last-child td { border-bottom: none; }
.summary-table tr:hover td { background: #FAFAFA; }
.table-brand { display: flex; align-items: center; gap: 8px; }
.table-brand-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mini-bar { display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.mini-bar div { border-radius: 3px; min-width: 20px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }

/* ── Bottom Nav (Influencer) ─────────────────────────── */
.bottom-nav { display: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar { padding: 0 16px; }
  .topbar-sub { display: none; }
  .nav-tabs { padding: 0 12px; overflow-x: auto; }
  .nav-tab { padding: 12px 14px; font-size: 12px; white-space: nowrap; }
  .filter-bar { padding: 12px 16px; gap: 8px; }
  .stats-bar { padding: 0 16px 12px; gap: 8px; }
  .stat-card { min-width: 110px; padding: 10px 12px; }
  .grid-header { padding: 0 16px 10px; }
  .grid { grid-template-columns: 1fr; gap: 12px; padding: 0 16px 100px; }
  .panel { width: 100%; }
  .dashboard { padding: 16px; }
  .dash-grid { grid-template-columns: 1fr; }
  .summary-table { font-size: 12px; }
  .summary-table th, .summary-table td { padding: 8px 10px; }
  .lb-nav.prev { left: -40px; }
  .lb-nav.next { right: -40px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #fff; border-top: 1px solid #EBEBEB; z-index: 500; box-shadow: 0 -2px 12px rgba(0,0,0,.07); }
  .bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: #BBB; font-size: 10px; font-weight: 600; transition: color .2s; cursor: pointer; }
  .bn-item.active { color: #6366F1; }
  .bn-item svg { width: 22px; height: 22px; }
  .page-content { padding-bottom: 70px; }
}
@media (max-width: 480px) {
  .topbar-user span { display: none; }
  .stat-card { min-width: 90px; }
  .panel-header { padding: 16px 18px; }
  .panel-body { padding: 16px 18px; }
  .panel-footer { padding: 12px 18px; }
}

.hidden { display: none; }

