/* ============================================
   PAGES — Other page styles
   Includes: Finance (summary, charts, bars),
   group chat, calendar, staff page,
   staff autocomplete, contracts page,
   finance bar colors, finance year chart,
   hot score config panel, KOL tracker dashboard,
   hotscore admin controls, RND moodboard studio,
   RND responsive, metric explanation legend
   ============================================ */

/* ============================================ FINANCE ============================================ */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.finance-card {
  padding: 1.25rem;
  border-radius: var(--glass-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.finance-card-icon {
  color: var(--primary);
}

.finance-card-icon .material-symbols-outlined {
  font-size: 1.3rem;
}

.finance-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.finance-card-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.finance-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--glass-radius-sm);
}

.finance-empty p {
  font-size: 0.85rem;
}

/* Finance Tabs */
.fin-tabs {
  border-radius: var(--glass-radius-sm);
  padding: 0;
  overflow: hidden;
}



.fin-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.fin-tab-btn .material-symbols-outlined {
  font-size: 0.9rem;
}

.fin-tab-btn:hover {
  color: var(--text-light);
  background: var(--white-05);
}

.fin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--white-05);
}

.fin-tab-body {
  padding: 1rem;
}

/* Finance Table */
.fin-table {
  width: 100%;
  border-collapse: collapse;
}

.fin-table thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border-bottom: 1px solid var(--white-08);
}

.fin-table-row td {
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--white-05);
}

.fin-table-row:hover td {
  background: var(--white-05);
}

.fin-rank {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  width: 30px;
}

.fin-name {
  font-weight: 600;
}

.fin-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.fin-amount {
  font-weight: 700;
  color: var(--primary) !important;
  white-space: nowrap;
}

.fin-pct {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.fin-bar-cell {
  padding-left: 0.5rem !important;
}

.fin-bar-track {
  height: 18px;
  background: var(--white-05);
  border-radius: 6px;
  overflow: hidden;
}

.fin-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
}

.fin-total-row td {
  padding: 0.7rem 0.75rem;
  font-size: 0.8rem;
  border-top: 2px solid var(--primary-alpha-20);
  color: var(--text-light);
}

.fin-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Finance View Toggle */
.fin-tab-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white-05);
  border-bottom: 1px solid var(--white-08);
  overflow-x: auto;
}

.fin-tab-left {
  display: flex;
  overflow-x: auto;
}

.fin-view-toggle {
  display: flex;
  gap: 2px;
  padding: 0.35rem 0.5rem;
}

.fin-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition-fast);
}

.fin-view-btn .material-symbols-outlined {
  font-size: 1.05rem;
}

.fin-view-btn:hover {
  color: var(--text-light);
  background: var(--white-05);
}

.fin-view-btn.active {
  color: var(--primary);
  background: var(--white-08);
}

/* Finance Bar Chart */
.fin-barchart {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.fin-barchart-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.fin-barchart-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fin-barchart-bar-wrap {
  position: relative;
  height: 28px;
  background: var(--white-05);
  border-radius: 6px;
  overflow: hidden;
}

.fin-barchart-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 3px;
}

.fin-barchart-value {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Finance Donut Chart */
.fin-donut-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
}

.fin-donut-chart {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.fin-donut-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fin-donut-total-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fin-donut-total-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.15rem;
}

.fin-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fin-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.fin-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fin-legend-name {
  flex: 1;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fin-legend-pct {
  font-weight: 600;
  color: var(--text-light);
  min-width: 35px;
  text-align: right;
}

.fin-legend-amount {
  font-weight: 600;
  color: var(--primary);
  min-width: 80px;
  text-align: right;
  font-size: 0.72rem;
}

/* Completed Campaigns Section */
.fin-completed {
  padding: 1.25rem;
}

.fin-completed-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.fin-completed-title .material-symbols-outlined {
  color: #4ade80;
  font-size: 1.1rem;
}

.fin-completed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.fin-completed-card {
  padding: 1rem;
  border-radius: var(--glass-radius-sm);
  background: var(--white-05);
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.fin-completed-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.fin-completed-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.fin-completed-brand {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.65rem;
}

.fin-completed-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ============================================
   PROFITABILITY DASHBOARD
   ============================================ */
.fin-profitability {
  padding: 1.25rem;
}

.fin-prof-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #f5e9d0);
}

.fin-prof-title .material-symbols-outlined {
  color: var(--gold, #BA9E69);
}

.fin-prof-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

.fin-prof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(186, 158, 105, 0.05);
  border: 1px solid rgba(186, 158, 105, 0.2);
  border-radius: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.fin-prof-card:hover {
  transform: translateY(-2px);
  border-color: rgba(186, 158, 105, 0.4);
}

.fin-prof-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.fin-prof-card-icon .material-symbols-outlined {
  font-size: 22px;
}

.fin-prof-card-body {
  flex: 1;
  min-width: 0;
}

.fin-prof-card-label {
  font-size: 0.72rem;
  color: var(--muted, #b8a673);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.fin-prof-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #f5e9d0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-prof-card-sub {
  font-size: 0.78rem;
  color: var(--muted, #b8a673);
  margin-top: 2px;
}

/* Filter buttons */
.fin-prof-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fin-prof-filter-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(186, 158, 105, 0.25);
  border-radius: 16px;
  color: var(--muted, #b8a673);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.fin-prof-filter-btn:hover {
  border-color: rgba(186, 158, 105, 0.5);
  color: var(--text, #f5e9d0);
}

.fin-prof-filter-btn.active {
  background: rgba(186, 158, 105, 0.15);
  border-color: var(--gold, #BA9E69);
  color: var(--gold, #BA9E69);
  font-weight: 600;
}

/* Table */
.fin-prof-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(186, 158, 105, 0.15);
}

.fin-prof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fin-prof-table thead {
  background: rgba(186, 158, 105, 0.06);
}

.fin-prof-th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #c7b895;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(186, 158, 105, 0.2);
  transition: background 0.15s ease, color 0.15s ease;
}

.fin-prof-th:hover {
  background: rgba(186, 158, 105, 0.1);
  color: var(--primary-lighter);
}

.fin-prof-th-num {
  text-align: right;
}

.fin-prof-row {
  border-bottom: 1px solid rgba(186, 158, 105, 0.08);
  transition: background 0.15s ease;
}

.fin-prof-row:hover {
  background: rgba(186, 158, 105, 0.04);
}

.fin-prof-row:last-child {
  border-bottom: none;
}

.fin-prof-row-inactive {
  opacity: 0.7;
}

.fin-prof-name {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text, #f5e9d0);
}

.fin-prof-num {
  padding: 10px 12px;
  text-align: right;
  color: var(--text, #f5e9d0);
}

.fin-prof-revenue {
  font-weight: 700;
  color: var(--gold, #BA9E69);
}

.fin-prof-last {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--muted, #b8a673);
}

.fin-prof-meta-day {
  font-size: 0.72rem;
  color: var(--muted, #b8a673);
  opacity: 0.7;
}

/* Badges */
.fin-prof-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.fin-prof-badge-inactive {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.fin-prof-badge-contract {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.fin-prof-badge-nocontract {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, #b8a673);
  border: 1px solid rgba(186, 158, 105, 0.2);
}

/* Responsive */
@media (max-width: 700px) {
  .fin-prof-kpis {
    grid-template-columns: 1fr;
  }
  .fin-prof-table {
    font-size: 0.78rem;
  }
  .fin-prof-th, .fin-prof-name, .fin-prof-num, .fin-prof-last {
    padding: 8px 6px;
  }
}

/* Campaign Completion Toggle */
.camp-complete-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-dim);
  user-select: none;
}

.camp-complete-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white-12);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.camp-complete-check:checked {
  background: #4ade80;
  border-color: #4ade80;
}

.camp-complete-check:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #000;
}

.camp-complete-label {
  font-weight: 500;
}

.camp-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.camp-completed {
  border-color: rgba(74, 222, 128, 0.2) !important;
  opacity: 0.75;
}

/* ============================================ GROUP CHAT ============================================ */
.chat-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--white-08);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-header .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--primary);
}

.chat-count {
  background: var(--primary-alpha-20);
  color: var(--primary);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: auto;
}

.chat-messages {
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 120px;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.chat-message {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-alpha-20);
  border: 1px solid var(--primary-alpha-30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.chat-msg-body {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.1rem;
}

.chat-msg-author {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-light);
}

.chat-msg-time {
  font-size: 0.6rem;
  color: var(--text-dim);
}

.chat-msg-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
  background: var(--white-05);
  padding: 0.4rem 0.65rem;
  border-radius: 0 10px 10px 10px;
  display: inline-block;
}

.chat-input-area {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--white-08);
  background: var(--white-05);
}

.chat-input {
  flex: 1;
  background: var(--white-08);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-light);
  outline: none;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-input:focus {
  border-color: var(--primary-alpha-30);
  background: var(--white-10);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--primary-lighter);
  transform: scale(1.05);
}

.chat-send-btn .material-symbols-outlined {
  font-size: 1rem;
}

/* ============================================ CALENDAR ============================================ */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--glass-radius-sm);
  margin-bottom: 1rem;
}

.cal-nav-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  flex: 1;
  text-align: center;
}

.cal-nav-btn {
  background: var(--white-05);
  border: 1px solid var(--white-05);
  color: var(--text-muted);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.cal-today-btn {
  width: auto;
  padding: 0 0.75rem;
  font-weight: 600;
}

.cal-nav-btn:hover {
  background: var(--white-10);
  color: var(--primary);
}

.cal-grid {
  border-radius: var(--glass-radius-sm);
  overflow: hidden;
}

.cal-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--white-05);
}

.cal-header-cell {
  padding: 0.65rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 90px;
  padding: 0.4rem;
  border: 1px solid var(--white-05);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cal-cell:hover {
  background: var(--white-05);
}

.cal-cell.empty {
  background: transparent;
  cursor: default;
}

.cal-cell.cal-today {
  background: var(--primary-alpha-08);
  border-color: var(--primary-alpha-20);
}

.cal-day-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cal-today .cal-day-num {
  color: var(--primary);
  font-weight: 700;
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.cal-event-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: var(--white-05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-event-label.cal-event-fullday {
  background: rgba(191, 168, 117, 0.12);
  font-weight: 600;
  color: var(--text-light);
}

.cal-dots {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: auto;
}

.cal-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-more {
  font-size: 0.55rem;
  color: var(--text-dim);
}

.cal-legend {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  justify-content: center;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cal-color-pick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.cal-color-pick:has(input:checked) {
  border-color: var(--text-light);
  box-shadow: 0 0 0 2px var(--white-15);
}

.cal-color-pick input {
  display: none;
}

/* Day detail modal */
.day-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.day-detail-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--white-05);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.day-detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.day-detail-type {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-left: auto;
}

.day-detail-brand {
  font-size: 0.65rem;
  color: var(--primary);
}

.day-detail-delete {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.15rem;
  transition: var(--transition-fast);
}

.day-detail-delete:hover {
  color: var(--vote-color);
}

.day-detail-delete .material-symbols-outlined {
  font-size: 0.9rem;
}

/* ======= Staff Page ======= */
.staff-page {
  padding: 0 1rem 2rem;
}

.staff-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.staff-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}

/* Staff Card */
.sp-card {
  padding: 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.sp-card:hover {
  border-color: rgba(186, 158, 105, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sp-card-active {
  border-color: rgba(186, 158, 105, 0.3) !important;
  box-shadow: 0 0 0 1px rgba(186, 158, 105, 0.15), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sp-active-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  color: var(--primary);
  background: rgba(186, 158, 105, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sp-card-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.sp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sp-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #8B7355);
  color: var(--bg-dark);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sp-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.sp-card-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.sp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  min-height: 1.4rem;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 500;
}

.sp-badge-dept {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.sp-badge-brand {
  background: rgba(186, 158, 105, 0.12);
  color: var(--primary);
}

.sp-card-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  margin-bottom: 0.6rem;
  min-height: 1.2rem;
}

.sp-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.sp-card-actions {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.sp-card:hover .sp-card-actions {
  opacity: 1;
}

.sp-card-actions button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 0.3rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.sp-card-actions button .material-symbols-outlined {
  font-size: 0.85rem;
}

.sp-card-actions button:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
}

.sp-delete-btn:hover {
  color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.1) !important;
}

.sp-login-btn:hover {
  color: var(--primary) !important;
  background: rgba(186, 158, 105, 0.1) !important;
}

/* Staff Form — avatar section */
.sf-avatar-section {
  text-align: center;
}

.sf-avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid rgba(186, 158, 105, 0.2);
  transition: border-color 0.15s;
}

.sf-avatar-preview:hover {
  border-color: var(--primary);
}

.sf-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #8B7355);
  color: var(--bg-dark);
  font-size: 1.6rem;
  font-weight: 700;
}

.sf-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  color: white;
}

.sf-avatar-preview:hover .sf-avatar-overlay {
  opacity: 1;
}

/* ======= Staff Autocomplete Dropdown ======= */
.staff-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.staff-ac-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: background 0.1s;
}

.staff-ac-item:hover {
  background: rgba(186, 158, 105, 0.1);
}

.staff-ac-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.staff-ac-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #8B7355);
  color: var(--bg-dark);
  font-size: 0.55rem;
  font-weight: 700;
}

.staff-ac-name {
  font-size: 0.8rem;
  color: var(--text-light);
  flex: 1;
}

.staff-ac-dept {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ======= Contracts Page ======= */
.contracts-page {
  padding: 0 1rem 2rem;
}

.contracts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.contracts-alerts {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ct-alert {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ct-alert-danger {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.ct-alert-warning {
  background: rgba(241, 196, 15, 0.12);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.2);
}

.contracts-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.contracts-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}

.contracts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.contracts-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.contracts-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  vertical-align: middle;
}

.ct-row:hover td {
  background: rgba(186, 158, 105, 0.04);
}

.ct-talent-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-talent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-alpha-20);
  flex-shrink: 0;
}

.ct-talent-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white-08);
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-talent-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.ct-talent-type {
  font-size: 0.6rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.ct-contract-type {
  font-size: 0.7rem;
  color: var(--primary);
}

.ct-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.ct-status-active {
  background: rgba(39, 174, 96, 0.12);
  color: #2ecc71;
}

.ct-status-expiring {
  background: rgba(241, 196, 15, 0.12);
  color: #f1c40f;
}

.ct-status-expired {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
}

.ct-status-unknown {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.ct-amount {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.ct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.75rem;
}

.ct-link:hover {
  text-decoration: underline;
}

.ct-actions {
  display: flex;
  gap: 0.2rem;
}

.ct-actions button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 0.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.ct-actions button:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.ct-detail-row td {
  padding: 0.3rem 0.75rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

/* ======= Finance Bar Colors ======= */
.finance-bar-fill.campaign {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.finance-bar-fill.brand {
  background: linear-gradient(90deg, var(--primary), #8B7355);
}

.finance-bar-fill.type {
  background: linear-gradient(90deg, #4A90D9, #2980b9);
}

/* ======= Finance Year Vertical Chart ======= */
.finance-bars-year {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 0;
  min-height: 160px;
}

.finance-year-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  max-width: 80px;
}

.finance-year-bar-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.finance-year-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary), #8B7355);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.finance-year-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.finance-year-amount {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   HOT SCORE CONFIG PANEL
   ============================================ */

.hs-config-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.hs-config-toggle-btn:hover,
.hs-config-toggle-btn.active {
  background: rgba(186, 158, 105, 0.15);
  border-color: rgba(186, 158, 105, 0.3);
  color: var(--primary);
}

.hs-config-toggle-btn .material-symbols-outlined {
  font-size: 1rem;
}

.hs-config-panel {
  margin: 14px 0;
  padding: 0;
  border-radius: var(--glass-radius-sm, 12px);
  border: 1px solid rgba(186, 158, 105, 0.15);
  background: rgba(25, 22, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  animation: hsCfgSlideIn 0.25s ease;
}

@keyframes hsCfgSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hs-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(186, 158, 105, 0.05);
}

.hs-config-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hs-config-title .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--primary);
}

.hs-config-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}

.hs-config-close:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.hs-config-body {
  padding: 14px 16px;
  max-height: 400px;
  overflow-y: auto;
}

.hs-config-body::-webkit-scrollbar {
  width: 4px;
}

.hs-config-body::-webkit-scrollbar-thumb {
  background: rgba(186, 158, 105, 0.2);
  border-radius: 2px;
}

.hs-config-section {
  margin-bottom: 16px;
}

.hs-config-section:last-child {
  margin-bottom: 0;
}

.hs-config-section-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hs-config-hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hs-config-hint strong {
  font-weight: 700;
}

/* Criterion blocks */
.hs-cfg-criterion {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hs-cfg-criterion-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.hs-cfg-icon {
  font-size: 0.95rem;
}

.hs-cfg-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.hs-cfg-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hs-cfg-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 70px;
}

.hs-cfg-field-sm {
  flex: 0 0 auto;
  min-width: 60px;
  max-width: 90px;
}

.hs-cfg-field-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hs-cfg-input {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.hs-cfg-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(186, 158, 105, 0.12);
}

.hs-cfg-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Recency brackets */
.hs-cfg-recency-brackets {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hs-cfg-bracket-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.hs-cfg-bracket-remove {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.06);
  color: #f87171;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.hs-cfg-bracket-remove:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: #f87171;
}

.hs-cfg-bracket-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(186, 158, 105, 0.2);
  background: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.hs-cfg-bracket-add:hover {
  background: rgba(186, 158, 105, 0.08);
  border-color: rgba(186, 158, 105, 0.4);
}

/* Tier rows */
.hs-cfg-tier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}

.hs-cfg-tier-emoji {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
}

.hs-cfg-tier-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  min-width: 60px;
}

/* Actions bar */
.hs-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(186, 158, 105, 0.03);
}

.hs-config-actions-right {
  display: flex;
  gap: 6px;
}

.hs-config-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.hs-config-btn .material-symbols-outlined {
  font-size: 0.9rem;
}

.hs-config-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.hs-config-btn-save {
  background: rgba(186, 158, 105, 0.15);
  border-color: rgba(186, 158, 105, 0.3);
  color: var(--primary);
}

.hs-config-btn-save:hover {
  background: rgba(186, 158, 105, 0.25);
}

.hs-config-btn-reset {
  border-color: rgba(248, 113, 113, 0.15);
  color: var(--text-dim);
}

.hs-config-btn-reset:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* Config toast */
.hs-config-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.25s, transform 0.25s;
}

.hs-config-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   KOL TRACKER DASHBOARD
   ============================================ */

:root {
  --hot-color: #ff6b35;
  --rising-color: #fbbf24;
  --warm-color: #34d399;
  --quiet-color: #60a5fa;
  --cold-color: #94a3b8;
}

.kol-tracker {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

/* ---- Header ---- */
.kol-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.kol-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}

.kol-title .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--hot-color);
  animation: kol-fire-pulse 2s ease-in-out infinite;
}

@keyframes kol-fire-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.kol-subtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.kol-updated-note {
  display: inline-flex;
  margin-left: 8px;
  color: var(--text-muted);
  white-space: nowrap;
}

.kol-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kol-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.kol-refresh-btn:hover {
  background: rgba(186, 158, 105, 0.1);
  color: var(--primary);
  border-color: rgba(186, 158, 105, 0.25);
}

.kol-refresh-btn .material-symbols-outlined {
  font-size: 1.15rem;
  transition: transform 0.5s;
}

.kol-refresh-btn.spinning .material-symbols-outlined {
  animation: kol-spin 0.8s linear infinite;
}

@keyframes kol-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.kol-admin-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: all 0.25s;
}

.kol-admin-toggle-btn:hover,
.kol-admin-toggle-btn.active {
  background: rgba(186, 158, 105, 0.1);
  color: var(--primary);
  border-color: rgba(186, 158, 105, 0.25);
}

.kol-admin-toggle-btn .material-symbols-outlined {
  font-size: 1rem;
}

/* ---- Summary Cards ---- */
.kol-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kol-summary-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(35, 31, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.kol-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.kol-card-total::before {
  background: linear-gradient(90deg, var(--primary), #c9ae7c);
}

.kol-card-hot::before {
  background: linear-gradient(90deg, #ff6b35, #ff9a68);
}

.kol-card-rising::before {
  background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.kol-card-er::before {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.kol-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kol-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.kol-card-total .kol-card-icon {
  background: rgba(186, 158, 105, 0.12);
  color: var(--primary);
}

.kol-card-hot .kol-card-icon {
  background: rgba(255, 107, 53, 0.12);
  color: var(--hot-color);
}

.kol-card-rising .kol-card-icon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--rising-color);
}

.kol-card-er .kol-card-icon {
  background: rgba(52, 211, 153, 0.12);
  color: var(--warm-color);
}

.kol-card-icon .material-symbols-outlined {
  font-size: 1.4rem;
}

.kol-card-body {
  display: flex;
  flex-direction: column;
}

.kol-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
  font-family: Arial, Helvetica, sans-serif;
}

.kol-card-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Filter Bar ---- */
.kol-filter-bar {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kol-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.kol-filter-row-secondary {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.kol-filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0 12px;
  flex: 0 1 260px;
  min-width: 180px;
}

.kol-filter-search .material-symbols-outlined {
  font-size: 1rem;
  color: var(--text-dim);
}

.kol-filter-search input {
  flex: 1;
  padding: 9px 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.82rem;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

.kol-filter-search input::placeholder {
  color: var(--text-dim);
}

.kol-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kol-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Tier chips */
.kol-tier-chips,
.kol-platform-chips,
.kol-type-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.kol-tier-chip,
.kol-plat-chip,
.kol-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.kol-tier-chip:hover,
.kol-plat-chip:hover,
.kol-type-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.kol-tier-chip.active,
.kol-plat-chip.active,
.kol-type-chip.active {
  background: rgba(186, 158, 105, 0.12);
  border-color: rgba(186, 158, 105, 0.35);
  color: var(--primary);
}

.kol-chip-hot.active {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.35);
  color: var(--hot-color);
}

.kol-chip-rising.active {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--rising-color);
}

.kol-chip-warm.active {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--warm-color);
}

.kol-chip-quiet.active {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--quiet-color);
}

.kol-chip-cold.active {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--cold-color);
}

.kol-sort-select {
  padding: 6px 28px 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-light);
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b1ada5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.kol-sort-select option {
  background: var(--bg-surface);
  color: var(--text-light);
}

/* ---- Main Table ---- */
.kol-results {
  padding: 20px;
}

.kol-results-header {
  margin-bottom: 16px;
}

.kol-results-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.kol-results-title .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--primary);
}

.kol-results-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 4px;
}

.kol-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}

.kol-table-wrap::-webkit-scrollbar {
  height: 4px;
}

.kol-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(186, 158, 105, 0.2);
  border-radius: 2px;
}

.kol-table {
  width: 100%;
  border-collapse: collapse;
}

.kol-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 2;
}

/* Sortable headers */
.kol-th-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.kol-th-sortable:hover {
  color: var(--text-light);
  background: rgba(186, 158, 105, 0.06);
}

.kol-th-sortable.kol-th-active {
  color: var(--primary);
  background: rgba(186, 158, 105, 0.08);
}

.kol-sort-arrow {
  display: inline-block;
  font-size: 0.72rem;
  margin-left: 2px;
  color: var(--primary);
  font-weight: 800;
}

.kol-table tbody td {
  padding: 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.kol-row {
  cursor: pointer;
  transition: all 0.2s;
}

.kol-row:hover {
  background: rgba(186, 158, 105, 0.06);
}

.kol-row:hover .kol-name-text {
  color: var(--primary);
}

/* Rank */
.kol-td-rank {
  width: 48px;
  text-align: center;
}

.kol-rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.kol-rank-1 {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.kol-rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.kol-rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.kol-rank-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* Name cell */
.kol-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.kol-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kol-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(186, 158, 105, 0.2), rgba(186, 158, 105, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid rgba(186, 158, 105, 0.15);
}

.kol-name-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kol-name-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.2s;
  white-space: nowrap;
}

.kol-name-types {
  display: flex;
  gap: 4px;
}

.kol-update-note {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.kol-type-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kol-type-kol {
  background: rgba(186, 158, 105, 0.15);
  color: var(--primary);
}

.kol-type-koc {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.kol-type-model {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

/* Score circle */
.kol-td-score {
  width: 72px;
  text-align: center;
  vertical-align: middle;
}

.kol-score-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.kol-score-circle {
  position: absolute;
  top: 0;
  left: 0;
}

.kol-score-value {
  font-size: 0.78rem;
  font-weight: 800;
  z-index: 1;
}

.kol-td-score .hot-trend-sparkline {
  display: block;
  margin: 4px auto 0;
  opacity: 0.85;
}

/* Followers */
.kol-td-followers {
  white-space: nowrap;
}

.kol-followers-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kol-followers-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.kol-growth {
  font-size: 0.68rem;
  font-weight: 600;
}

.kol-growth-up {
  color: #4ade80;
}

.kol-growth-down {
  color: #f87171;
}

.kol-growth-stable {
  color: var(--text-dim);
}

/* ER */
.kol-td-er {
  text-align: center;
}

.kol-er-value {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.kol-er-excellent {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.kol-er-good {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.kol-er-ok {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.kol-er-low {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-dim);
}

/* Total Views */
.kol-td-views {
  text-align: center;
  white-space: nowrap;
}

.kol-views-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(186, 158, 105, 0.08);
}

/* Booking */
.kol-td-booking {
  text-align: center;
  white-space: nowrap;
}

.kol-booking-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kol-booking-count {
  font-weight: 800;
  color: var(--primary);
  background: rgba(186, 158, 105, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.kol-booking-score {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
}


/* Action preview button */
.kol-td-action {
  text-align: center;
  white-space: nowrap;
}

.kol-th-action {
  text-align: center;
  width: 92px;
}

/* Nút (+) thêm talent vào Booking từ trang Độ Hot (Mục 2, 2026-06-08) */
.kol-add-booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: rgba(212, 185, 106, 0.16);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}
.kol-add-booking-btn .material-symbols-outlined {
  font-size: 1.1rem;
}
.kol-add-booking-btn:hover {
  background: var(--primary);
  color: #1d1a15;
  border-color: var(--primary);
}

.kol-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--white-05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.kol-preview-btn .material-symbols-outlined {
  font-size: 1rem;
}

.kol-preview-btn:hover {
  background: var(--primary);
  color: #1d1a15;
  border-color: var(--primary);
}

/* Platform Badges */
.kol-td-platforms {
  white-space: nowrap;
}

.kol-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  margin-right: 4px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.kol-platform-tiktok {
  background: rgba(255, 255, 255, 0.05);
  color: #111111;
}

.kol-platform-instagram {
  background: rgba(255, 255, 255, 0.05);
  color: #E4405F;
}

.kol-platform-facebook {
  background: rgba(255, 255, 255, 0.05);
  color: #1877f2;
}

.kol-platform-tiktok svg {
  filter: drop-shadow(-0.7px 0 0 #25F4EE) drop-shadow(0.7px 0 0 #FE2C55);
}

.kol-platform-instagram svg {
  filter: drop-shadow(-0.5px -0.4px 0 #833AB4) drop-shadow(0.6px 0.5px 0 #F77737);
}

.kol-platform-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Empty state */
.kol-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.kol-empty .material-symbols-outlined {
  font-size: 3.5rem;
  opacity: 0.15;
  display: block;
  margin: 0 auto 12px;
}

.kol-empty p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

/* ---- Score Formula Bar ---- */
.kol-formula-bar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.kol-formula-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kol-formula-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.kol-formula-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
}

.kol-formula-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  opacity: 0.08;
  border-radius: 8px;
}

.kol-formula-vr {
  background: var(--hot-color);
}

.kol-formula-er {
  background: var(--rising-color);
}

.kol-formula-con {
  background: var(--warm-color);
}

.kol-formula-viral {
  background: #a78bfa;
}

.kol-formula-bk {
  background: var(--primary);
}

.kol-formula-vote {
  background: var(--quiet-color);
}

.kol-formula-item span {
  position: relative;
  z-index: 1;
}

.kol-formula-item strong {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  font-weight: 700;
}

/* ---- Admin Section (collapsible) ---- */
.kol-admin-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.kol-admin-section.expanded {
  max-height: 2000px;
  opacity: 1;
}

.kol-admin-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

/* ============================================
   HOTSCORE ADMIN CONTROLS (preserved)
   ============================================ */

.hotscore-section-title {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hotscore-section-title .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--primary);
}

/* ---- Crawl Controls ---- */
.hotscore-controls {
  padding: 20px;
}

.hotscore-scope {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hotscore-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.hotscore-radio-label:has(input:checked) {
  background: rgba(186, 158, 105, 0.12);
  border-color: rgba(186, 158, 105, 0.35);
  color: var(--primary);
}

.hotscore-radio-label input[type="radio"] {
  display: none;
}

.hotscore-scope-inputs {
  margin-bottom: 16px;
}

/* ---- Talent Search ---- */
.hotscore-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 12px;
}

.hotscore-search-wrap .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.hotscore-search {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

.hotscore-search::placeholder {
  color: var(--text-dim);
}

.hotscore-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hotscore-dd-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.hotscore-dd-item:hover {
  background: rgba(186, 158, 105, 0.1);
}

.hotscore-dd-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.hotscore-dd-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.hotscore-dd-empty {
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.scope-panel {
  position: relative;
}

.hotscore-selected-talent {
  margin-top: 10px;
}

.hotscore-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(186, 158, 105, 0.12);
  border: 1px solid rgba(186, 158, 105, 0.3);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.hotscore-selected-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.hotscore-selected-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  transition: color 0.15s;
}

.hotscore-selected-remove:hover {
  color: #f87171;
}

/* ---- Tag Select ---- */
.hotscore-tag-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b1ada5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.hotscore-tag-select option,
.hotscore-tag-select optgroup {
  background: var(--bg-surface);
  color: var(--text-light);
}

.hotscore-tag-count {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- All scope info ---- */
.hotscore-all-info {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ---- Actions ---- */
.hotscore-actions {
  display: flex;
  gap: 10px;
}

.hotscore-crawl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, rgba(186, 158, 105, 0.2), rgba(186, 158, 105, 0.35));
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.hotscore-crawl-btn:hover {
  background: linear-gradient(135deg, rgba(186, 158, 105, 0.3), rgba(186, 158, 105, 0.5));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(186, 158, 105, 0.2);
}

.hotscore-crawl-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.hotscore-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.hotscore-stop-btn:hover {
  background: rgba(248, 113, 113, 0.2);
}

/* ---- Progress ---- */
.hotscore-progress {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hotscore-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hotscore-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #c9ae7c);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.hotscore-progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.hotscore-log {
  max-height: 160px;
  overflow-y: auto;
  font-size: 0.72rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  line-height: 1.6;
}

.hotscore-log::-webkit-scrollbar {
  width: 4px;
}

.hotscore-log::-webkit-scrollbar-thumb {
  background: rgba(186, 158, 105, 0.2);
  border-radius: 2px;
}

.hotscore-log-line {
  color: var(--text-muted);
  padding: 1px 0;
}

/* ---- Schedule Info ---- */
.hotscore-schedule {
  padding: 20px;
}

.hotscore-schedule-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotscore-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.hotscore-schedule-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.hotscore-schedule-value {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hotscore-status-active {
  color: #4ade80;
}

.hotscore-status-active .material-symbols-outlined {
  font-size: 0.9rem;
}

.hotscore-schedule-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hotscore-schedule-note code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
}

/* ---- Results Table ---- */
.hotscore-results {
  padding: 20px;
}

.hotscore-table-wrap {
  overflow-x: auto;
}

.hotscore-table {
  width: 100%;
  border-collapse: collapse;
}

.hotscore-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hotscore-table td {
  padding: 10px 12px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hotscore-row {
  cursor: pointer;
  transition: background 0.15s;
}

.hotscore-row:hover {
  background: rgba(186, 158, 105, 0.06);
}

.hs-rank {
  width: 40px;
  text-align: center;
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.hotscore-row:nth-child(1) .hs-rank {
  color: #ffd700;
}

.hotscore-row:nth-child(2) .hs-rank {
  color: #c0c0c0;
}

.hotscore-row:nth-child(3) .hs-rank {
  color: #cd7f32;
}

.hs-name {
  white-space: nowrap;
}

.hs-name-text {
  font-weight: 600;
  color: var(--text-light);
}

.hs-name-types {
  margin-left: 8px;
}

.hs-tier {
  text-align: center;
}

.hs-score {
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.hs-updated {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---- Empty State ---- */
.hotscore-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.hotscore-empty p {
  margin: 10px 0 0;
  font-size: 0.82rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .kol-summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .kol-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .kol-filter-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .kol-table .kol-th-views,
  .kol-table .kol-td-views,
  .kol-table .kol-th-booking,
  .kol-table .kol-td-booking,
  .kol-table .kol-th-action,
  .kol-table .kol-td-action {
    display: none;
  }

  .kol-formula-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .kol-summary-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .kol-summary-card {
    padding: 14px;
  }

  .kol-card-value {
    font-size: 1.3rem;
  }

  .kol-table .kol-th-platforms,
  .kol-table .kol-td-platforms,
  .kol-table .kol-th-er,
  .kol-table .kol-td-er {
    display: none;
  }

  .kol-name-cell {
    min-width: 140px;
  }

  .hotscore-scope {
    flex-direction: column;
  }

  .hotscore-radio-label {
    justify-content: center;
  }

  .hotscore-table th:nth-child(5),
  .hotscore-table td:nth-child(5) {
    display: none;
  }
}

/* ============================================
   RND — MOODBOARD STUDIO
   ============================================ */

.rnd-page {
  max-width: 1300px;
  margin: 0 auto;
}

/* ---- Header ---- */
.rnd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border, #2e2820);
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.8) 0%, transparent 100%);
}

.rnd-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rnd-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4a843, #8b6914);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #0f0d0b;
  flex-shrink: 0;
}

.rnd-title {
  font-size: 20px;
  font-weight: 700;
  color: #f5ead6;
  letter-spacing: 1px;
  margin: 0;
}

.rnd-subtitle-header {
  font-size: 11px;
  color: var(--text-muted, #7a6e5e);
  margin: 0;
  letter-spacing: 0.5px;
}

.rnd-template-count {
  font-size: 10px;
  color: var(--text-muted, #7a6e5e);
  letter-spacing: 0.5px;
}

/* ---- Body Layout ---- */
.rnd-body {
  display: flex;
  min-height: calc(100vh - 180px);
}

/* ---- Sidebar ---- */
.rnd-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border, #2e2820);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.rnd-sidebar-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted, #a89b8a);
  letter-spacing: 2px;
  padding: 4px 6px;
  text-transform: uppercase;
}

.rnd-sidebar-card {
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border, #2e2820);
  background: var(--card-bg, #1a1714);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.2s;
  font-family: inherit;
  color: inherit;
}

.rnd-sidebar-card:hover {
  border-color: rgba(212, 168, 67, 0.4);
  background: rgba(139, 105, 20, 0.1);
}

.rnd-sidebar-card.active {
  border-color: #d4a843;
  background: rgba(139, 105, 20, 0.15);
}

.rnd-sidebar-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #e8dcc8);
  transition: color 0.2s;
}

.rnd-sidebar-card.active .rnd-sidebar-card-name {
  color: #d4a843;
}

.rnd-sidebar-card-subtitle {
  font-size: 10px;
  color: var(--text-muted, #7a6e5e);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.rnd-sidebar-card-category {
  font-size: 9px;
  color: var(--text-muted, #a89b8a);
  margin-top: 4px;
}

/* ---- Main Content ---- */
.rnd-main {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}

/* ---- Moodboard Card ---- */
.rnd-moodboard {
  border: 1px solid var(--border, #2e2820);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark, #0f0d0b);
}

/* Moodboard Header */
.rnd-mb-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border, #2e2820);
  background: linear-gradient(180deg, rgba(26, 23, 20, 1) 0%, rgba(15, 13, 11, 1) 100%);
}

.rnd-mb-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.rnd-mb-accent-bar {
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d4a843, #8b6914);
  flex-shrink: 0;
}

.rnd-mb-category {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted, #a89b8a);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rnd-mb-name {
  font-size: 22px;
  font-weight: 800;
  color: #f5ead6;
  margin: 0;
  letter-spacing: -0.3px;
}

.rnd-mb-subtitle {
  font-size: 13px;
  color: var(--text-muted, #a89b8a);
  font-style: italic;
  margin-left: 16px;
  letter-spacing: 1px;
}

/* Mood Tags */
.rnd-mb-mood-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.rnd-mood-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #d4a843;
  border: 1px solid rgba(139, 105, 20, 0.27);
  background: rgba(139, 105, 20, 0.08);
  letter-spacing: 0.5px;
}

/* ---- Content Area ---- */
.rnd-mb-content {
  padding: 24px 32px;
}

.rnd-mb-section {
  margin-bottom: 24px;
}

.rnd-mb-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #d4a843;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Color Palette Strip */
.rnd-palette-strip {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
}

.rnd-palette-swatch {
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.rnd-palette-swatch:hover {
  transform: scaleY(1.15);
  z-index: 1;
}

.rnd-palette-hex {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff8ec !important;
  background: rgba(15, 13, 11, 0.82);
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  opacity: 1;
}

/* Image Grid */
.rnd-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.rnd-image-hero {
  grid-row: 1 / 3;
}

.rnd-image-placeholder {
  border-radius: 8px;
  border: 1.5px dashed var(--border, #2e2820);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-size: cover;
  background-position: center;
}

.rnd-image-placeholder:hover {
  border-color: #d4a843;
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.1);
}

.rnd-image-placeholder.drag-over {
  border-color: #d4a843;
  border-style: solid;
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.2);
}

.rnd-image-placeholder.has-image {
  border-style: solid;
  border-color: rgba(212, 168, 67, 0.3);
}

.rnd-image-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(139, 105, 20, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.rnd-image-content {
  text-align: center;
  z-index: 1;
  transition: opacity 0.3s;
}

.rnd-image-icon {
  font-size: 20px;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rnd-image-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #a89b8a);
  letter-spacing: 1.5px;
  line-height: 1.6;
  white-space: pre-line;
  text-transform: uppercase;
}

.rnd-image-hint {
  font-size: 9px;
  color: var(--text-muted, #7a6e5e);
  margin-top: 6px;
}

/* ---- Info Grid ---- */
.rnd-mb-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.rnd-info-block {
  margin-bottom: 16px;
}

.rnd-info-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #d4a843;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.rnd-info-icon {
  font-size: 13px;
}

.rnd-info-text {
  font-size: 12px;
  color: var(--text-primary, #e8dcc8);
  line-height: 1.7;
  padding-left: 21px;
}

/* Props */
.rnd-info-props {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 21px;
}

.rnd-prop-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--card-bg, #1a1714);
  border: 1px solid var(--border, #2e2820);
  color: var(--text-primary, #e8dcc8);
}

/* Poses */
.rnd-poses-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 21px;
}

.rnd-pose-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.rnd-pose-num {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(139, 105, 20, 0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #d4a843;
  flex-shrink: 0;
}

.rnd-pose-text {
  color: var(--text-primary, #e8dcc8);
}

/* ---- Notes Area ---- */
.rnd-notes-area {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--card-bg, #1a1714);
  border: 1px solid var(--border, #2e2820);
  border-radius: 10px;
}

.rnd-notes-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #a89b8a);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rnd-notes-editor {
  font-size: 12px;
  color: var(--text-primary, #e8dcc8);
  line-height: 1.8;
  min-height: 48px;
  outline: none;
  border: none;
  background: transparent;
  cursor: text;
}

.rnd-notes-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted, #7a6e5e);
  font-style: italic;
}

.rnd-notes-editor:focus {
  border-left: 2px solid #d4a843;
  padding-left: 12px;
}

/* ---- Footer ---- */
.rnd-mb-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #2e2820);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted, #7a6e5e);
  letter-spacing: 0.5px;
}

/* Editable tag controls */
.rnd-tag-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0 2px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.rnd-editable-tag:hover .rnd-tag-remove {
  opacity: 1;
}

.rnd-tag-remove:hover {
  color: #f87171;
}

.rnd-editable-tag {
  cursor: pointer;
  transition: background 0.15s;
}

.rnd-editable-tag:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.rnd-tag-add {
  background: none;
  border: 1px dashed var(--text-dim);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  transition: all 0.15s;
}

.rnd-tag-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(186, 158, 105, 0.08);
}

.rnd-export-btn {
  background: var(--primary);
  color: #0f0d0b;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.rnd-export-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.rnd-export-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rnd-info-text[contenteditable] {
  outline: none;
  border-radius: 6px;
  padding: 4px;
  transition: background 0.15s;
}

.rnd-info-text[contenteditable]:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rnd-info-text[contenteditable]:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px var(--primary-alpha-20);
}

/* KOL Tracker inline breakdown */
.kol-row-breakdown td {
  animation: fadeSlideDown 0.2s ease-out;
}

/* Hot Score Trend Chart (modal breakdown) */
.hot-trend-chart {
  background: rgba(186, 158, 105, 0.04);
  border: 1px solid rgba(186, 158, 105, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.hot-trend-empty {
  color: var(--muted, #b8a673);
  font-size: 0.85rem;
  text-align: center;
  padding: 18px 12px;
  font-style: italic;
}

.hot-trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.hot-trend-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold, #BA9E69);
  letter-spacing: 0.02em;
}

.hot-trend-overlay {
  font-size: 0.78rem;
  color: var(--muted, #b8a673);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.hot-trend-overlay strong {
  color: var(--text, #f5e9d0);
  font-weight: 700;
}

.hot-trend-sep {
  opacity: 0.4;
}

.hot-trend-chart svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Palette editable */
.rnd-palette-editable {
  cursor: pointer;
  position: relative;
}

.rnd-palette-editable:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* ============================================
   RND — Responsive
   ============================================ */

@media (max-width: 900px) {
  .rnd-body {
    flex-direction: column;
  }

  .rnd-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border, #2e2820);
    padding: 12px;
    gap: 8px;
  }

  .rnd-sidebar-label {
    display: none;
  }

  .rnd-sidebar-card {
    min-width: 160px;
    flex-shrink: 0;
  }

  .rnd-main {
    padding: 16px;
  }

  .rnd-mb-header {
    padding: 20px;
  }

  .rnd-mb-content {
    padding: 16px 20px;
  }

  .rnd-mb-info-grid {
    grid-template-columns: 1fr;
  }

  .rnd-image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rnd-image-hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .rnd-header {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .rnd-header-left {
    gap: 10px;
  }

  .rnd-title {
    font-size: 16px;
  }

  .rnd-mb-name {
    font-size: 18px;
  }

  .rnd-image-grid {
    grid-template-columns: 1fr;
  }

  .rnd-image-hero {
    grid-row: auto;
  }

  .rnd-sidebar-card {
    min-width: 140px;
    padding: 10px 14px;
  }

  .rnd-sidebar-card-name {
    font-size: 12px;
  }
}

/* ============================================
   METRIC EXPLANATION LEGEND
   ============================================ */

.kol-metrics-legend {
  margin: 0 1.5rem 1rem;
  padding: 0;
  border-radius: 14px;
}

.kol-legend-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.kol-legend-toggle:hover {
  color: var(--primary);
}

.kol-legend-toggle .material-symbols-outlined {
  font-size: 1rem;
}

.kol-legend-arrow {
  margin-left: auto;
  transition: transform 0.3s;
}

.kol-legend-body {
  display: none;
  padding: 0 1.25rem 1rem;
}

.kol-legend-body.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

.kol-legend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.kol-legend-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.kol-legend-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.kol-legend-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}

.kol-legend-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .kol-legend-grid {
    grid-template-columns: 1fr;
  }

  .kol-metrics-legend {
    margin: 0 0.5rem 0.5rem;
  }
}

/* ============================================ CAO TALENT ============================================ */

.ct-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.ct-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ct-card-wide {
  grid-column: span 2;
}

.ct-card-full {
  grid-column: span 2;
}

.ct-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-card-icon {
  color: var(--primary);
  font-size: 1.4rem;
}

.ct-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.ct-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Form elements ---- */

.ct-form-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ct-select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 27, 22, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.ct-select:focus {
  border-color: var(--primary);
}

.ct-select-sm {
  flex: 0 0 120px;
}

.ct-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(30, 27, 22, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.ct-input:focus {
  border-color: var(--primary);
}

.ct-input-wide {
  width: 100%;
}

.ct-input::placeholder {
  color: var(--text-dim);
}

/* ---- Buttons ---- */

.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.ct-btn .material-symbols-outlined {
  font-size: 1.1rem;
}

.ct-btn-primary {
  background: var(--primary);
  color: #1a1714;
}

.ct-btn-primary:hover {
  background: var(--primary-hover, #c9ae7c);
  transform: translateY(-1px);
}

.ct-btn-secondary {
  background: rgba(186, 158, 105, 0.15);
  color: var(--primary);
  border: 1px solid rgba(186, 158, 105, 0.3);
}

.ct-btn-secondary:hover {
  background: rgba(186, 158, 105, 0.25);
}

.ct-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- Results ---- */

.ct-result {
  min-height: 0;
}

.ct-result:empty {
  display: none;
}

.ct-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.75rem 0;
}

.ct-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(186, 158, 105, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ct-spin 0.6s linear infinite;
}

@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

.ct-success {
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.ct-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #f87171;
}

.ct-error .material-symbols-outlined {
  font-size: 1rem;
}

/* ---- Tables ---- */

.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.ct-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--glass-border);
}

.ct-table td {
  padding: 0.45rem 0.6rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(52, 49, 45, 0.4);
}

.ct-table tbody tr:hover {
  background: rgba(186, 158, 105, 0.05);
}

.ct-table-sm th,
.ct-table-sm td {
  padding: 0.35rem 0.5rem;
}

.ct-updated-cell {
  color: var(--text-dim) !important;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Report stats ---- */

.ct-report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ct-report-stat {
  padding: 1rem;
  background: rgba(30, 27, 22, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-align: center;
}

.ct-report-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.ct-report-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ---- Misc ---- */

.ct-stat-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ct-stat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ct-stat strong {
  color: var(--primary);
}

.ct-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0.25rem 0;
}

.ct-section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ct-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ct-type-chip {
  padding: 0.3rem 0.6rem;
  background: rgba(186, 158, 105, 0.1);
  border: 1px solid rgba(186, 158, 105, 0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ct-type-chip strong {
  color: var(--primary);
  margin-left: 0.2rem;
}

.ct-platform-stat {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
}

.ct-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: rgba(186, 158, 105, 0.12);
  border: 1px solid rgba(186, 158, 105, 0.25);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.ct-score-big {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.ct-compare-table th:first-child,
.ct-compare-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* ---- Potential Talents ---- */

.ct-potential {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(186, 158, 105, 0.25);
}

.ct-icon-rising {
  color: #22c55e;
}

.ct-badge-new {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.08em;
}

.ct-potential-table td:nth-child(5) {
  white-space: nowrap;
}

.ct-change-hot {
  color: #f97316;
}

.ct-change-warm {
  color: #eab308;
}

.ct-sparkline {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--primary);
  letter-spacing: 1px;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-card-wide,
  .ct-card-full {
    grid-column: span 1;
  }

  .ct-form-row {
    flex-direction: column;
  }

  .ct-select-sm {
    flex: 1;
    width: 100%;
  }

  .ct-report-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   UX REDESIGN — Pages responsive safety
   ============================================ */
.page-container {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
}

.finance-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fin-tabs,
.fin-tab-nav,
.fin-tab-left,
.contracts-table-wrap,
.kol-table-wrap,
.hotscore-table-wrap,
.fin-prof-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.contracts-table,
.kol-table,
.hotscore-table,
.fin-prof-table {
  min-width: 680px;
}

.cal-nav-btn,
.fin-view-btn,
.kol-refresh-btn,
.rnd-export-btn {
  min-width: 44px;
  min-height: 44px;
}

.rnd-tag-remove {
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.ct-card {
  min-width: 0;
  overflow-x: auto;
}

.ct-table {
  min-width: 560px;
}

@media (max-width: 760px) {
  .page-container {
    padding: 18px 16px 96px;
  }

  .page-header,
  .contracts-header,
  .kol-header,
  .staff-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-title,
  .kol-title {
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .finance-card {
    min-width: 0;
    padding: 14px;
  }

  .finance-card-value {
    overflow-wrap: anywhere;
    font-size: 1rem;
  }

  .fin-tab-nav {
    align-items: stretch;
    gap: 8px;
  }

  .fin-tab-left {
    flex: 1 1 auto;
  }

  .fin-tab-btn,
  .fin-view-btn,
  .fin-prof-filter-btn {
    min-height: 44px;
  }

  .cal-nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .cal-nav-title {
    order: -1;
    flex: 1 0 100%;
    text-align: left;
    font-size: 1rem;
  }

  .cal-grid {
    overflow-x: hidden;
  }

  .cal-header-cell {
    padding: 8px 2px;
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .cal-cell {
    min-height: 72px;
    padding: 4px;
  }

  .contracts-page {
    padding: 0;
  }

  .contracts-alerts,
  .kol-header-actions {
    align-items: stretch;
  }

  .kol-header-actions {
    flex-wrap: wrap;
  }

  .rnd-page {
    width: 100%;
    max-width: 100%;
  }

  .rnd-header {
    align-items: stretch;
  }

  .rnd-header-left {
    min-width: 0;
  }

  .rnd-sidebar {
    max-width: 100%;
  }

  .rnd-moodboard {
    min-width: 0;
  }

  .rnd-mb-header-top,
  .rnd-mb-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rnd-palette-strip,
  .rnd-mb-mood-tags,
  .rnd-info-props {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .rnd-mood-tag,
  .rnd-prop-tag {
    white-space: nowrap;
  }

  .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-card,
  .ct-potential {
    padding: 14px;
  }

  .ct-form-row,
  .ct-stat-row {
    flex-direction: column;
    gap: 8px;
  }

  .ct-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .finance-summary,
  .ct-report-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LIQUID GLASS LEVEL 2 — secondary pages
   ============================================ */
.finance-card,
.fin-tabs,
.calendar-panel,
.staff-card,
.contract-card,
.hot-score-card,
.hot-score-config-panel,
.kol-tracker-card,
.rnd-panel,
.ct-card,
.trend-video-card,
.trend-creator-row,
.profit-card,
.metric-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
}

.finance-card:hover,
.contract-card:hover,
.staff-card:hover,
.hot-score-card:hover,
.kol-tracker-card:hover,
.ct-card:hover,
.trend-video-card:hover,
.trend-creator-row:hover,
.profit-card:hover,
.metric-card:hover {
  background: var(--glass-hover);
  border-color: rgba(232, 205, 145, 0.32);
  box-shadow: var(--glass-shadow);
}

.fin-tab-nav,
.fin-view-btn,
.fin-bar-track,
.chat-input-wrap,
.calendar-day,
.staff-avatar,
.contract-status,
.hot-rank-badge,
.hot-tier-badge,
.ct-stat,
.ct-btn,
.ct-btn-sm,
.trend-tag-chip,
.trend-tier-badge {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.08), rgba(255, 248, 236, 0.025));
  border-color: rgba(232, 205, 145, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.07);
}

.fin-tab-btn:hover,
.fin-tab-btn.active,
.fin-view-btn:hover,
.fin-view-btn.active,
.ct-btn:hover,
.ct-btn-sm:hover,
.trend-tag-chip:hover,
.ct-clickable-row:hover {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.12), rgba(215, 184, 117, 0.08));
  border-color: rgba(232, 205, 145, 0.3);
}

.fin-table thead th,
.ct-table thead th,
.hot-table thead th {
  background: rgba(255, 248, 236, 0.035);
  border-bottom-color: rgba(232, 205, 145, 0.14);
}

.fin-table-row:hover td,
.ct-clickable-row:hover td,
.hot-table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(215, 184, 117, 0.1), rgba(107, 160, 149, 0.05));
}

.fin-bar-fill,
.year-bar-fill,
.hot-score-fill,
.ct-progress-fill {
  background: linear-gradient(90deg, #e4c783, #b9964d);
  box-shadow: 0 0 18px rgba(215, 184, 117, 0.18);
}

.trend-vid-play {
  background: rgba(13, 11, 9, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 248, 236, 0.12);
}

.trend-vid-niche {
  background: linear-gradient(135deg, #e4c783, #b9964d);
  color: #17110c;
}

.trend-cr-avatar,
.finance-card-icon,
.ct-card-icon {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(232, 205, 145, 0.16);
}


/* ===== Trend Hot (Cào Talent) ===== */
.ct-trend {
  margin-bottom: 20px;
  padding: 24px;
  overflow: hidden;
}

/* ---- Trend Hot: tab nền tảng (TikTok / Instagram / Facebook) ---- */
.trend-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.trend-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 10px 10px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.trend-tab-btn:hover { color: var(--text-light); background: var(--white-05); }
.trend-tab-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.trend-tab-icon { font-size: 20px; opacity: .9; transition: opacity .18s ease; }
.trend-tab-btn.active { color: var(--primary-lighter); background: var(--white-05); }
.trend-tab-btn.active .trend-tab-icon { opacity: 1; }
/* brand tint cho icon nền tảng (luôn hiển thị để dễ nhận diện) */
.trend-tab-tiktok .trend-tab-icon { color: #25F4EE; }
.trend-tab-instagram .trend-tab-icon { color: #ff6f9e; }
.trend-tab-facebook .trend-tab-icon { color: #4599FF; }
/* thanh chỉ báo tab active = màu thương hiệu nền tảng */
.trend-tab-btn::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background .18s ease;
}
.trend-tab-btn.active.trend-tab-tiktok::after { background: #25F4EE; }
.trend-tab-btn.active.trend-tab-instagram::after { background: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF); }
.trend-tab-btn.active.trend-tab-facebook::after { background: #0866FF; }

/* ---- Trend Hot: màn hình "đang phát triển" (Instagram/Facebook — Đợt 1) ---- */
.trend-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 300px;
  padding: 56px 24px;
}
.trend-cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
}
.trend-cs-icon .material-symbols-outlined { font-size: 40px; }
.trend-coming-instagram .trend-cs-icon {
  color: #E1306C;
  border-color: rgba(225, 48, 108, .35);
  background: radial-gradient(circle at 30% 25%, rgba(245, 133, 41, .18), rgba(221, 42, 123, .12) 60%, transparent);
}
.trend-coming-facebook .trend-cs-icon {
  color: #4599FF;
  border-color: rgba(8, 102, 255, .35);
  background: radial-gradient(circle at 30% 25%, rgba(8, 102, 255, .2), transparent 65%);
}
.trend-cs-title { font-size: 17px; font-weight: 700; color: var(--text-light); }
.trend-cs-desc { max-width: 420px; margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
.trend-cs-badge {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary-lighter);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(232, 205, 145, .12);
  border: 1px solid rgba(232, 205, 145, .28);
}

@media (max-width: 560px) {
  .trend-tab-btn { flex: 1 1 0; justify-content: center; padding: 8px 8px; font-size: 13px; }
  .trend-tab-btn::after { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .trend-tab-btn, .trend-tab-icon, .trend-tab-btn::after { transition: none; }
}

.ct-trend .ct-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(232, 205, 145, 0.12);
}

.trend-card-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 260px;
  flex: 1 1 360px;
}

.trend-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.trend-card-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

.ct-trend .trend-source-badge {
  margin-left: 2px;
  flex: 0 0 auto;
}

.trend-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 0;
  flex: 1 1 420px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid rgba(232, 205, 145, 0.12);
  border-radius: 14px;
  background: rgba(255, 248, 236, 0.035);
}

.ct-trend .ct-select-sm {
  flex: 0 0 172px;
  min-height: 40px;
}

.ct-trend .ct-btn-sm {
  min-height: 40px;
}

.trend-vn-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.trend-vn-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.ct-btn-sm { padding: 6px 12px; font-size: 13px; }
.ct-empty { padding: 28px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }

.trend-section { margin-top: 24px; }

.trend-section + .trend-section {
  margin-top: 28px;
}

.trend-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.trend-h { font-size: 15px; color: var(--primary-lighter); margin: 0; font-weight: 600; letter-spacing: .3px; }
.trend-sub { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.trend-section-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.trend-updated-note,
.trend-video-updated,
.trend-cr-updated {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.trend-count {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: 12px;
  border: 1px solid rgba(232, 205, 145, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 248, 236, 0.035);
}

/* Video grid */
.trend-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.trend-video-card { display: flex; flex-direction: column; min-width: 0; background: var(--white-05); border: 1px solid var(--glass-border); border-radius: var(--glass-radius-sm); overflow: hidden; text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.trend-video-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.trend-vid-thumb { position: relative; aspect-ratio: 4/5; background: radial-gradient(circle at 30% 20%, rgba(232, 205, 145, 0.13), transparent 34%), var(--bg-dark); overflow: hidden; }
.trend-vid-thumb::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
}
.trend-vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.trend-vid-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  align-content: center;
  color: rgba(249, 247, 241, 0.58);
  font-size: 12px;
  text-align: center;
  z-index: 0;
}
.trend-vid-fallback .material-symbols-outlined {
  font-size: 34px;
  color: rgba(232, 205, 145, 0.48);
}
.trend-vid-play { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 999px; }
.trend-vid-play .material-symbols-outlined { font-size: 15px; }
.trend-vid-niche { position: absolute; right: 12px; top: 12px; z-index: 3; font-size: 11px; color: var(--bg-dark); background: var(--primary); padding: 4px 9px; border-radius: 999px; font-weight: 700; }
.trend-vid-play { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(13, 11, 9, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 248, 236, 0.12); padding: 5px 10px; border-radius: 999px; }
.trend-vid-play .material-symbols-outlined { font-size: 15px; }
.trend-vid-niche { position: absolute; right: 12px; top: 12px; z-index: 3; font-size: 11px; color: #17110c; background: linear-gradient(135deg, #e4c783, #b9964d); padding: 4px 9px; border-radius: 999px; font-weight: 700; }
.trend-vid-country { position: absolute; left: 12px; top: 12px; z-index: 3; font-size: 11px; color: #f9f7f1; background: rgba(13, 11, 9, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 248, 236, 0.12); padding: 4px 9px; border-radius: 999px; font-weight: 700; }
/* Trend Radar — nhãn "đang tăng tốc" (bottom-left, xếp trên badge lượt xem). */
.trend-vid-rising { position: absolute; left: 12px; bottom: 46px; z-index: 4; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .2px; padding: 4px 9px; border-radius: 999px; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-rising-rising { color: #17110c; background: linear-gradient(135deg, #e4c783, #b9964d); box-shadow: 0 2px 10px rgba(185, 150, 77, 0.35); }
.trend-rising-explosive { color: #fff; background: linear-gradient(135deg, #ff7a3c, #ff3d6e); box-shadow: 0 2px 12px rgba(255, 61, 110, 0.45); }
/* ▲ tăng trưởng so hôm qua (hashtag/nhạc). */
.trend-growth { display: inline-flex; align-items: center; margin-left: 6px; font-size: 11px; font-weight: 800; color: #3ddc84; }
.trend-video-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  min-height: 104px;
}
.trend-vid-desc { min-height: 40px; font-size: 13.5px; color: var(--text-light); line-height: 1.42; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-vid-author { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-video-updated { display: block; }

/* Tag + sound chips */
.trend-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trend-signal-panel {
  min-width: 0;
  border: 1px solid rgba(232, 205, 145, 0.12);
  border-radius: var(--glass-radius-sm);
  background: rgba(255, 248, 236, 0.035);
  padding: 14px;
}

.trend-signal-title {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trend-tags { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.trend-tag-chip { max-width: 100%; min-height: 38px; display: inline-flex; align-items: center; gap: 7px; background: var(--primary-alpha-08); border: 1px solid var(--glass-border); border-radius: 12px; padding: 8px 12px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.trend-tag-chip:hover { background: var(--primary-alpha-15); }
.trend-tag-name { min-width: 0; max-width: 240px; font-size: 13px; color: var(--primary-lighter); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-tag-views { font-size: 12px; color: var(--text-dim); }
.trend-sound-chip { color: var(--text-muted); font-size: 13px; }
.trend-sound-chip .material-symbols-outlined { font-size: 15px; color: var(--secondary-text); }

/* Creators */
.trend-creators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trend-creator-row { min-width: 0; display: flex; align-items: center; gap: 12px; background: var(--white-05); border: 1px solid var(--white-08); border-radius: var(--glass-radius-sm); padding: 12px 14px; }
.trend-cr-avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--primary-alpha-20); display: grid; place-items: center; }
.trend-cr-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trend-cr-initials { font-size: 14px; font-weight: 700; color: var(--primary-lighter); }
.trend-cr-info { flex: 1; min-width: 0; }
.trend-cr-name { font-size: 14px; color: var(--text-light); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-cr-handle { font-size: 12px; color: var(--text-dim); }
.trend-cr-updated { margin-top: 2px; }
.trend-cr-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.trend-cr-fol { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.trend-tier-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.trend-tier-small { background: var(--white-10); color: var(--text-muted); }
.trend-tier-mid { background: rgba(163,177,108,.18); color: var(--secondary-text); }
.trend-tier-big { background: var(--primary-alpha-20); color: var(--primary-lighter); }
.trend-cr-link { padding: 8px 10px; flex-shrink: 0; align-self: center; }

@media (max-width: 900px) {
  .trend-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .trend-signal-grid,
  .trend-creators {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ct-trend {
    padding: 16px;
  }

  .ct-trend .ct-card-header {
    gap: 14px;
    padding-bottom: 16px;
  }

  .trend-card-title-group {
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
  }

  .trend-card-copy {
    flex: 1 1 200px;
  }

  .ct-trend .trend-source-badge {
    margin-left: 0;
  }

  .trend-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .ct-trend .ct-select-sm,
  .trend-vn-toggle,
  .ct-trend .ct-btn-sm {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    min-height: 44px;
  }

  .trend-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .trend-count {
    align-self: flex-start;
  }

  .trend-video-grid { grid-template-columns: 1fr; gap: 14px; }

  .trend-video-body {
    padding: 14px 15px 16px;
  }

  .trend-tag-chip {
    width: 100%;
    justify-content: space-between;
  }

  .trend-tag-name {
    max-width: none;
  }

  .trend-creator-row {
    flex-wrap: wrap;
  }

  .trend-cr-info {
    flex: 1 1 calc(100% - 62px);
  }

  .trend-cr-stats {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .trend-cr-link {
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .trend-cr-name { max-width: none; }
}

/* Hàng talent bấm được → mở hồ sơ đầy đủ */
.ct-clickable-row { cursor: pointer; transition: background .12s ease; }
.ct-clickable-row:hover { background: var(--primary-alpha-08); }
.ct-clickable-row td:nth-child(2) { color: var(--primary-lighter); }

/* ============================================
   LIQUID GLASS LEVEL 2 — secondary pages
   ============================================ */
.finance-card,
.fin-tabs,
.calendar-panel,
.staff-card,
.contract-card,
.hot-score-card,
.hot-score-config-panel,
.kol-tracker-card,
.rnd-panel,
.ct-card,
.trend-video-card,
.trend-creator-row,
.profit-card,
.metric-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
}

.finance-card:hover,
.contract-card:hover,
.staff-card:hover,
.hot-score-card:hover,
.kol-tracker-card:hover,
.ct-card:hover,
.trend-video-card:hover,
.trend-creator-row:hover,
.profit-card:hover,
.metric-card:hover {
  background: var(--glass-hover);
  border-color: rgba(232, 205, 145, 0.32);
  box-shadow: var(--glass-shadow);
}

.fin-tab-nav,
.fin-view-btn,
.fin-bar-track,
.chat-input-wrap,
.calendar-day,
.staff-avatar,
.contract-status,
.hot-rank-badge,
.hot-tier-badge,
.ct-stat,
.ct-btn,
.ct-btn-sm,
.trend-tag-chip,
.trend-tier-badge {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.08), rgba(255, 248, 236, 0.025));
  border-color: rgba(232, 205, 145, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.07);
}

.fin-tab-btn:hover,
.fin-tab-btn.active,
.fin-view-btn:hover,
.fin-view-btn.active,
.ct-btn:hover,
.ct-btn-sm:hover,
.trend-tag-chip:hover,
.ct-clickable-row:hover {
  background: linear-gradient(145deg, rgba(255, 248, 236, 0.12), rgba(215, 184, 117, 0.08));
  border-color: rgba(232, 205, 145, 0.3);
}

.fin-table thead th,
.ct-table thead th,
.hot-table thead th {
  background: rgba(255, 248, 236, 0.035);
  border-bottom-color: rgba(232, 205, 145, 0.14);
}

.fin-table-row:hover td,
.ct-clickable-row:hover td,
.hot-table tbody tr:hover td {
  background: linear-gradient(90deg, rgba(215, 184, 117, 0.1), rgba(107, 160, 149, 0.05));
}

.fin-bar-fill,
.year-bar-fill,
.hot-score-fill,
.ct-progress-fill {
  background: linear-gradient(90deg, #e4c783, #b9964d);
  box-shadow: 0 0 18px rgba(215, 184, 117, 0.18);
}

.trend-vid-play {
  background: rgba(13, 11, 9, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 248, 236, 0.12);
}

.trend-vid-niche {
  background: linear-gradient(135deg, #e4c783, #b9964d);
  color: #17110c;
}

.trend-cr-avatar,
.finance-card-icon,
.ct-card-icon {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(232, 205, 145, 0.16);
}

/* ============================================
   FINANCE REDESIGN — Demo 1: Khoa học gọn
   Scoped to .finance-page so other pages keep their current styles.
   ============================================ */
.finance-page {
  --fin-bg: rgba(18, 17, 13, 0.86);
  --fin-panel: rgba(31, 29, 23, 0.82);
  --fin-panel-strong: rgba(43, 41, 31, 0.86);
  --fin-border: rgba(223, 194, 116, 0.24);
  --fin-border-soft: rgba(223, 194, 116, 0.13);
  --fin-gold: #dfc274;
  --fin-text: #f6f0e4;
  --fin-muted: #bdb29c;
  --fin-dim: #8f846f;
  --fin-green: #53d6a2;
  --fin-red: #ff7a73;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--fin-text);
}

.finance-page .finance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 4px 0 8px;
}

.finance-page .finance-hero-copy {
  min-width: 0;
}

.finance-page .finance-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--fin-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-page .finance-demo-pill,
.finance-page .finance-section-kicker,
.finance-page .finance-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.finance-page .finance-demo-pill,
.finance-page .finance-period {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--fin-border);
  border-radius: 999px;
  background: rgba(43, 41, 31, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.06);
}

.finance-page .finance-section-kicker {
  color: var(--fin-gold);
}

.finance-page .finance-title {
  max-width: 1120px;
  margin: 0;
  color: var(--fin-text);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.finance-page .finance-subtitle {
  max-width: 930px;
  margin: 10px 0 0;
  color: var(--fin-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.finance-page .finance-period {
  align-self: center;
  color: var(--fin-muted);
  font-size: 14px;
  white-space: nowrap;
}

.finance-page .finance-period strong {
  color: var(--fin-text);
  font-size: 16px;
}

.finance-page .finance-summary {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.finance-page .finance-card {
  min-height: 148px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--fin-border);
  background:
    radial-gradient(circle at 85% 18%, rgba(223, 194, 116, 0.09), transparent 34%),
    var(--fin-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 248, 236, 0.05);
}

.finance-page .finance-card-primary {
  background:
    radial-gradient(circle at 78% 12%, rgba(83, 214, 162, 0.11), transparent 28%),
    linear-gradient(135deg, rgba(223, 194, 116, 0.14), rgba(31, 29, 23, 0.82));
}

.finance-page .finance-card:hover {
  border-color: rgba(223, 194, 116, 0.38);
  background:
    radial-gradient(circle at 85% 18%, rgba(223, 194, 116, 0.12), transparent 34%),
    var(--fin-panel-strong);
}

.finance-page .finance-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.finance-page .finance-card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--fin-gold);
  background: rgba(223, 194, 116, 0.12);
  border: 1px solid rgba(223, 194, 116, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.07);
}

.finance-page .finance-card-icon .material-symbols-outlined {
  font-size: 20px;
}

.finance-page .finance-card-label,
.finance-page .fin-prof-card-label {
  color: var(--fin-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-page .finance-card-value {
  margin-top: 24px;
  color: var(--fin-text);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.finance-page .finance-card-note {
  margin-top: 10px;
  color: var(--fin-dim);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.finance-page .finance-card-badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--fin-gold);
  color: #14120c;
  font-size: 12px;
  font-weight: 900;
}

.finance-page .finance-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.finance-page .fin-tabs,
.finance-page .finance-rules,
.finance-page .fin-profitability,
.finance-page .fin-completed {
  border: 1px solid var(--fin-border);
  border-radius: 14px;
  background: var(--fin-bg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 248, 236, 0.05);
  overflow: hidden;
}

.finance-page .fin-tab-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--fin-border-soft);
  background: rgba(43, 41, 31, 0.76);
  box-shadow: none;
}

.finance-page .fin-tab-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: visible;
}

.finance-page .fin-tab-btn,
.finance-page .fin-view-btn,
.finance-page .fin-prof-filter-btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--fin-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.finance-page .fin-tab-btn {
  padding: 0 13px;
  border-bottom: 1px solid transparent;
}

.finance-page .fin-tab-btn:hover,
.finance-page .fin-tab-btn.active,
.finance-page .fin-view-btn:hover,
.finance-page .fin-view-btn.active,
.finance-page .fin-prof-filter-btn:hover,
.finance-page .fin-prof-filter-btn.active {
  color: var(--fin-text);
  border-color: var(--fin-border);
  background: rgba(223, 194, 116, 0.12);
}

.finance-page .fin-tab-btn.active,
.finance-page .fin-view-btn.active,
.finance-page .fin-prof-filter-btn.active {
  color: var(--fin-gold);
}

.finance-page .fin-view-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 0;
}

.finance-page .fin-view-btn {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}

.finance-page .fin-tab-body {
  padding: 18px;
}

.finance-page .fin-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: start;
}

.finance-page .fin-analysis-main {
  min-width: 0;
}

.finance-page .fin-analysis-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.finance-page .fin-insight-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--fin-border);
  background: rgba(43, 41, 31, 0.72);
}

.finance-page .fin-insight-card p {
  margin: 8px 0 0;
  color: var(--fin-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
}

.finance-page .fin-insight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fin-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-page .fin-insight-value {
  margin-top: 12px;
  color: var(--fin-text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.finance-page .fin-quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.finance-page .fin-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--fin-border-soft);
}

.finance-page .fin-quick-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.finance-page .fin-quick-row strong,
.finance-page .fin-quick-row span {
  display: block;
}

.finance-page .fin-quick-row strong {
  color: var(--fin-text);
  font-size: 14px;
  line-height: 1.25;
}

.finance-page .fin-quick-row span {
  margin-top: 3px;
  color: var(--fin-dim);
  font-size: 12px;
  font-weight: 700;
}

.finance-page .fin-quick-row em {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(223, 194, 116, 0.32);
  border-radius: 999px;
  color: var(--fin-gold);
  background: rgba(223, 194, 116, 0.1);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.finance-page .fin-table-wrap,
.finance-page .fin-prof-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--fin-border-soft);
  border-radius: 12px;
  background: rgba(20, 19, 15, 0.68);
}

.finance-page .fin-table,
.finance-page .fin-prof-table {
  min-width: 620px;
  border-collapse: collapse;
}

.finance-page .fin-table thead th,
.finance-page .fin-prof-table thead th {
  padding: 13px 10px;
  color: var(--fin-dim);
  background: rgba(43, 41, 31, 0.72);
  border-bottom: 1px solid var(--fin-border-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-page .fin-table-row td,
.finance-page .fin-prof-row td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--fin-border-soft);
  color: var(--fin-text);
  font-size: 14px;
  font-weight: 800;
}

.finance-page .fin-table-row:last-child td,
.finance-page .fin-prof-row:last-child td {
  border-bottom: 0;
}

.finance-page .fin-table-row:hover td,
.finance-page .fin-prof-row:hover td {
  background: rgba(223, 194, 116, 0.06);
}

.finance-page .fin-rank {
  width: 40px;
  color: var(--fin-dim);
  font-weight: 900;
}

.finance-page .fin-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  color: var(--fin-text);
}

.finance-page .fin-rank-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 30px;
  border-radius: 999px;
}

.finance-page .fin-count,
.finance-page .fin-pct {
  color: var(--fin-text);
  text-align: center;
}

.finance-page .fin-amount,
.finance-page .fin-prof-revenue {
  color: var(--fin-gold) !important;
  white-space: nowrap;
}

.finance-page .fin-bar-cell {
  min-width: 130px;
}

.finance-page .fin-bar-track {
  position: relative;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(223, 194, 116, 0.17);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.07);
}

.finance-page .fin-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1d889, #c7a64f);
  box-shadow: 0 0 18px rgba(223, 194, 116, 0.2);
}

.finance-page .fin-bar-label {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fin-text);
  font-size: 11px;
  font-weight: 900;
}

.finance-page .fin-total-row td {
  padding: 14px 12px;
  color: var(--fin-text);
  border-top: 2px solid rgba(223, 194, 116, 0.22);
  background: rgba(223, 194, 116, 0.04);
}

.finance-page .finance-rules {
  min-height: 0;
}

.finance-page .finance-rules-title,
.finance-page .fin-prof-title,
.finance-page .fin-completed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--fin-border-soft);
  color: var(--fin-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.finance-page .finance-rule-list {
  display: flex;
  flex-direction: column;
}

.finance-page .finance-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 17px 18px;
  border-bottom: 1px solid var(--fin-border-soft);
}

.finance-page .finance-rule-row:last-child {
  border-bottom: 0;
}

.finance-page .finance-rule-title {
  color: var(--fin-text);
  font-size: 15px;
  font-weight: 900;
}

.finance-page .finance-rule-body {
  margin-top: 4px;
  color: var(--fin-dim);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.finance-page .finance-rule-badge,
.finance-page .fin-prof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(223, 194, 116, 0.32);
  border-radius: 999px;
  color: var(--fin-gold);
  background: rgba(223, 194, 116, 0.11);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.finance-page .finance-rule-badge.is-good,
.finance-page .fin-prof-badge-contract {
  border-color: rgba(83, 214, 162, 0.36);
  color: var(--fin-green);
  background: rgba(83, 214, 162, 0.1);
}

.finance-page .fin-profitability {
  margin-top: 0;
}

.finance-page .fin-prof-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.finance-page .fin-prof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--fin-border);
  border-radius: 12px;
  background: rgba(43, 41, 31, 0.72);
}

.finance-page .fin-prof-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  color: #17130d;
  font-size: 16px;
  font-weight: 950;
}

.finance-page .fin-prof-avatar.is-gold {
  background: var(--fin-gold);
}

.finance-page .fin-prof-avatar.is-purple {
  background: #a48bff;
}

.finance-page .fin-prof-avatar.is-alert {
  background: var(--fin-red);
}

.finance-page .fin-prof-card-body {
  min-width: 0;
}

.finance-page .fin-prof-card-value {
  margin-top: 4px;
  color: var(--fin-text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.finance-page .fin-prof-card-sub {
  margin-top: 3px;
  color: var(--fin-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.finance-page .fin-prof-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
}

.finance-page .fin-prof-filter-btn {
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
}

.finance-page .fin-prof-table-wrap {
  margin: 0 18px 18px;
  width: calc(100% - 36px);
}

.finance-page .fin-prof-table {
  min-width: 900px;
}

.finance-page .fin-prof-th {
  cursor: pointer;
}

.finance-page .fin-prof-th-num,
.finance-page .fin-prof-num {
  text-align: right;
}

.finance-page .fin-prof-name {
  min-width: 170px;
  font-weight: 900;
}

.finance-page .fin-prof-last {
  color: var(--fin-muted);
  white-space: nowrap;
}

.finance-page .fin-prof-badge-inactive {
  border-color: rgba(255, 122, 115, 0.36);
  color: var(--fin-red);
  background: rgba(255, 122, 115, 0.1);
}

.finance-page .fin-prof-badge-nocontract {
  color: var(--fin-gold);
}

.finance-page .fin-prof-meta-day {
  display: block;
  margin-top: 4px;
  color: var(--fin-dim);
  font-size: 12px;
  font-weight: 800;
}

.finance-page .fin-barchart,
.finance-page .fin-donut-container {
  min-height: 360px;
  padding: 12px;
  border: 1px solid var(--fin-border-soft);
  border-radius: 12px;
  background: rgba(20, 19, 15, 0.68);
}

.finance-page .fin-barchart-label {
  color: var(--fin-text);
  font-weight: 850;
}

.finance-page .fin-barchart-value,
.finance-page .fin-legend-name,
.finance-page .fin-legend-pct,
.finance-page .fin-legend-amount {
  color: var(--fin-muted);
  font-weight: 750;
}

.finance-page .fin-donut-hole {
  background: #14130f;
}

.finance-page .finance-empty {
  border: 1px solid var(--fin-border);
  border-radius: 14px;
  background: var(--fin-bg);
}

.finance-page .finance-empty .material-symbols-outlined {
  font-size: 48px;
  opacity: 0.22;
}

@media (max-width: 1180px) {
  .finance-page .finance-main-grid {
    grid-template-columns: 1fr;
  }

  .finance-page .finance-rules {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .finance-page .finance-rules-title {
    border-right: 1px solid var(--fin-border-soft);
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .finance-page .finance-hero,
  .finance-page .finance-summary,
  .finance-page .fin-analysis-grid,
  .finance-page .fin-prof-kpis {
    grid-template-columns: 1fr;
  }

  .finance-page .finance-period {
    justify-self: start;
  }

  .finance-page .finance-rules {
    display: block;
  }

  .finance-page .finance-rules-title {
    border-right: 0;
    border-bottom: 1px solid var(--fin-border-soft);
  }
}

@media (max-width: 760px) {
  .finance-page {
    gap: 14px;
  }

  .finance-page .finance-title {
    font-size: 34px;
  }

  .finance-page .finance-subtitle {
    font-size: 14px;
  }

  .finance-page .fin-tab-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .finance-page .fin-tab-left,
  .finance-page .fin-view-toggle {
    width: 100%;
  }

  .finance-page .fin-tab-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 0 10px;
  }

  .finance-page .fin-view-btn {
    flex: 1 1 0;
    width: auto;
  }

  .finance-page .fin-tab-body,
  .finance-page .fin-prof-kpis,
  .finance-page .finance-rule-row {
    padding: 14px;
  }

  .finance-page .fin-table,
  .finance-page .fin-table tbody,
  .finance-page .fin-table-row,
  .finance-page .fin-table-row td,
  .finance-page .fin-prof-table,
  .finance-page .fin-prof-table tbody,
  .finance-page .fin-prof-row,
  .finance-page .fin-prof-row td {
    display: block;
    width: 100%;
  }

  .finance-page .fin-table,
  .finance-page .fin-prof-table {
    min-width: 0;
  }

  .finance-page .fin-table thead,
  .finance-page .fin-table tfoot,
  .finance-page .fin-prof-table thead {
    display: none;
  }

  .finance-page .fin-table-wrap,
  .finance-page .fin-prof-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .finance-page .fin-prof-table-wrap {
    margin: 0 14px 14px;
    width: calc(100% - 28px);
  }

  .finance-page .fin-table tbody,
  .finance-page .fin-prof-table tbody {
    display: grid;
    gap: 10px;
  }

  .finance-page .fin-table-row,
  .finance-page .fin-prof-row {
    padding: 12px;
    border: 1px solid var(--fin-border-soft);
    border-radius: 12px;
    background: rgba(20, 19, 15, 0.72);
  }

  .finance-page .fin-table-row td,
  .finance-page .fin-prof-row td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--fin-border-soft);
    text-align: right;
  }

  .finance-page .fin-table-row td:last-child,
  .finance-page .fin-prof-row td:last-child {
    border-bottom: 0;
  }

  .finance-page .fin-table-row td::before,
  .finance-page .fin-prof-row td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--fin-dim);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
  }

  .finance-page .fin-name {
    justify-content: flex-end;
    min-width: 0;
    text-align: right;
  }

  .finance-page .fin-rank-dot {
    width: 7px;
    height: 24px;
  }

  .finance-page .fin-bar-cell {
    display: block !important;
  }

  .finance-page .fin-bar-cell::before {
    display: block;
    margin-bottom: 8px;
  }

  .finance-page .fin-prof-last {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .finance-page .finance-card {
    min-height: 136px;
  }

  .finance-page .finance-card-value {
    font-size: 28px;
  }

  .finance-page .fin-tab-btn {
    flex-basis: 100%;
  }

  .finance-page .finance-rule-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Đối thủ (Competitor) ===== */

.cmp-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---- Competitor grid (list of fanpages) ---- */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.cmp-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--glass-radius);
  text-align: left;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font-body);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cmp-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-alpha-30);
}

.cmp-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- Nút gộp nhóm thương hiệu (thẻ đơn) — đặt cạnh trái nút ghim ---- */
.cmp-group-btn {
  position: absolute;
  top: 10px;
  right: 48px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-10);
  border-radius: 8px;
  background: var(--white-05);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.cmp-group-btn:hover { color: var(--gold, #BA9E69); border-color: var(--primary-alpha-30); }
.cmp-group-btn .material-symbols-outlined { font-size: 1.05rem; }

/* ---- Thẻ NHÓM (nhiều page cùng thương hiệu) ---- */
.cmp-group { gap: 0; padding: 0; cursor: default; }
/* Cho phép co lại trong ô grid hẹp (mobile) — nếu không, stats grid 3 cột giữ min-content → tràn ngang */
.cmp-group, .cmp-group-head, .cmp-group .cmp-card-top, .cmp-group .cmp-card-headings, .cmp-group .cmp-card-stats { min-width: 0; }
.cmp-group-head { width: 100%; box-sizing: border-box; }
.cmp-group .cmp-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Cột stats co được dưới min-content (minmax 0) — nếu để 1fr, 3 cột giữ min-content ép thẻ tràn ngang trên mobile */
.cmp-group .cmp-card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-group-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  border-radius: var(--glass-radius);
}
.cmp-group-head:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cmp-group-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--primary-alpha-15);
  color: var(--gold, #BA9E69);
  border: 1px solid var(--primary-alpha-30);
  vertical-align: middle;
}
.cmp-avatar-group { background: var(--primary-alpha-20); color: var(--gold, #BA9E69); }
.cmp-group-expand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.cmp-group-caret { font-size: 1.1rem; transition: transform var(--transition-fast); }
.cmp-group-open .cmp-group-caret { transform: rotate(180deg); }
.cmp-group-members {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--white-10);
}

/* ---- Page con trong nhóm ---- */
.cmp-member {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--white-05);
  border-radius: 0;
  cursor: pointer;
}
.cmp-member:hover { background: var(--white-05); transform: none; border-color: transparent; }
.cmp-member:last-child { border-bottom: none; }
.cmp-avatar-sm { width: 36px; height: 36px; border-radius: 9px; font-size: 0.7rem; }
.cmp-member-info { flex: 1 1 auto; min-width: 0; }
.cmp-member-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmp-member-stats { font-size: 0.74rem; color: var(--text-dim); }
.cmp-member-run { color: #4ade80; font-weight: 600; }
.cmp-ungroup-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-10);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.cmp-ungroup-btn:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
.cmp-ungroup-btn .material-symbols-outlined { font-size: 1rem; }

.cmp-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmp-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-alpha-15);
  border: 1px solid var(--primary-alpha-30);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.cmp-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1rem;
}

/* Ảnh fanpage đối thủ phủ lên ô avatar (nền initials phía sau khi ảnh lỗi) */
.cmp-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Handle fanpage hiển thị ở card (vd studio79.vn) */
.cmp-card-url {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Nút mở trang Facebook đối thủ (trong chi tiết) */
.cmp-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
}
.cmp-detail-link:hover { text-decoration: underline; }
.cmp-detail-link .material-symbols-outlined { font-size: 1rem; }

.cmp-card-headings {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmp-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmp-card-niche {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cmp-row-updated {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmp-ads-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cmp-ads-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: cmp-pulse 1.8s ease-out infinite;
}

@keyframes cmp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.cmp-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--white-08);
}

.cmp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.cmp-stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
}

.cmp-stat-value small {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-dim);
}

.cmp-stat-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cmp-empty {
  margin-top: 1rem;
}

/* ---- Detail panel ---- */
.cmp-detail-host:empty {
  display: none;
}

.cmp-detail {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--glass-radius);
  scroll-margin-top: 88px;
}

.cmp-detail:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cmp-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--white-08);
}

.cmp-detail-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cmp-detail-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
}

.cmp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cmp-close-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cmp-close-btn:hover {
  background: var(--white-10);
  color: var(--text-light);
}

.cmp-close-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.cmp-detail-body {
  padding-top: 1.25rem;
}

/* ---- Conclusion banner (accent gold) ---- */
.cmp-conclusion {
  position: relative;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  border-radius: var(--glass-radius-sm);
  background: linear-gradient(135deg, var(--primary-alpha-15), rgba(107, 160, 149, 0.06));
  border: 1px solid var(--primary-alpha-30);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.06);
}

.cmp-conclusion-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e4c783, #b9964d);
  color: #17110c;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cmp-conclusion-tag .material-symbols-outlined {
  font-size: 1rem;
}

.cmp-conclusion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cmp-conclusion-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cmp-conclusion-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-alpha-15);
  color: var(--primary);
  font-size: 1.3rem;
}

.cmp-conclusion-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cmp-conclusion-value {
  margin-top: 0.15rem;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.35;
}

.cmp-conclusion-value strong {
  color: var(--primary-lighter);
  font-size: 1.2rem;
}

.cmp-conclusion-hint {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- Section titles ---- */
.cmp-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.5rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cmp-section-title .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--primary);
}

.cmp-section-updated {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.cmp-section-empty {
  margin: 0 0 0.5rem;
}

/* ---- Ads list ---- */
.cmp-ad-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cmp-ad {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border-radius: var(--glass-radius-sm);
  background: rgba(30, 27, 22, 0.55);
  border: 1px solid var(--white-08);
}

.cmp-ad-inactive {
  opacity: 0.72;
}

.cmp-ad-media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--white-08);
}

.cmp-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ảnh bài viết đối thủ (full chiều ngang card, nằm trên cùng) */
.cmp-post-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
  margin-bottom: 4px;
}
.cmp-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Thẻ đối thủ: ghim + link + xổ chi tiết inline ===== */
.cmp-card { position: relative; }
.cmp-card-open { border-color: var(--primary-alpha-30); box-shadow: 0 0 0 1px var(--primary-alpha-30); }

/* Nút ghim (góc trên phải thẻ) */
.cmp-pin-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-10);
  border-radius: 8px;
  background: var(--white-05);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.cmp-pin-btn:hover { color: var(--primary); border-color: var(--primary-alpha-30); }
.cmp-pin-btn.is-pinned { color: var(--primary); border-color: var(--primary-alpha-30); background: var(--primary-alpha-15); }
.cmp-pin-btn .material-symbols-outlined { font-size: 18px; }

/* Link fanpage clickable ngay trên thẻ */
.cmp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--primary);
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmp-card-link:hover { text-decoration: underline; }
.cmp-card-link .material-symbols-outlined { font-size: 13px; }

/* ---- MXH khác trên MẶT THẺ (icon TikTok + Instagram) ---- */
.cmp-social-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cmp-soc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--white-08);
  background: rgba(30, 27, 22, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.cmp-soc .cmp-soc-svg { display: block; }
.cmp-soc-num { color: var(--text-light); }
.cmp-soc-tt { color: #111111; }
.cmp-soc-tt:hover { color: #25f4ee; border-color: rgba(37, 244, 238, 0.4); background: rgba(37, 244, 238, 0.1); }
.cmp-soc-ig { color: #E4405F; }
.cmp-soc-ig:hover { color: #fe5fa6; border-color: rgba(254, 95, 166, 0.4); background: rgba(254, 95, 166, 0.1); }
.cmp-soc-tt .cmp-soc-svg { filter: drop-shadow(-0.7px 0 0 #25F4EE) drop-shadow(0.7px 0 0 #FE2C55); }
.cmp-soc-ig .cmp-soc-svg { filter: drop-shadow(-0.5px -0.4px 0 #833AB4) drop-shadow(0.6px 0.5px 0 #F77737); }
.cmp-soc-empty { color: var(--text-dim); opacity: 0.4; cursor: pointer; }
.cmp-soc-empty:hover { opacity: 0.7; }

/* ---- Khu "Mạng xã hội khác" trong CHI TIẾT ---- */
.cmp-social { margin-bottom: 0.5rem; }
.cmp-social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cmp-social-head .cmp-section-title { margin: 1rem 0 0.6rem; }
.cmp-social-edit-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--white-12);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.cmp-social-edit-btn:hover { color: var(--primary); border-color: var(--primary-alpha-30); }
.cmp-social-edit-btn .material-symbols-outlined { font-size: 15px; }

.cmp-social-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.cmp-social-tab {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon meta";
  align-items: center;
  column-gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--white-08);
  background: rgba(30, 27, 22, 0.5);
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cmp-social-tab .cmp-soc-ic-lg {
  grid-area: icon;
}

.cmp-social-tab > span:not(.cmp-soc-ic-lg) {
  grid-area: name;
  min-width: 0;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.cmp-social-tab small {
  grid-area: meta;
  min-width: 0;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmp-social-tab.is-active {
  background: rgba(228, 199, 131, 0.12);
  border-color: rgba(228, 199, 131, 0.34);
}

.cmp-social-tab-tt.is-active .cmp-soc-ic-lg,
.cmp-social-tab-tt:hover .cmp-soc-ic-lg { color: #25f4ee; }

.cmp-social-tab-ig.is-active .cmp-soc-ic-lg,
.cmp-social-tab-ig:hover .cmp-soc-ic-lg { color: #fe5fa6; }

.cmp-social-panels {
  width: 100%;
}

.cmp-social-panel[hidden] {
  display: none !important;
}

.cmp-social-panel .cmp-soc-card { width: 100%; }

.cmp-soc-card {
  padding: 0.8rem 0.9rem;
  border-radius: var(--glass-radius-sm);
  background: rgba(30, 27, 22, 0.55);
  border: 1px solid var(--white-08);
}
.cmp-soc-card-empty { opacity: 0.7; }
.cmp-soc-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.cmp-soc-ic-lg { display: inline-flex; }
.cmp-soc-card-tt .cmp-soc-ic-lg {
  color: #111111;
  filter: drop-shadow(-0.7px 0 0 #25F4EE) drop-shadow(0.7px 0 0 #FE2C55);
}
.cmp-soc-card-ig .cmp-soc-ic-lg {
  color: #E4405F;
  filter: drop-shadow(-0.5px -0.4px 0 #833AB4) drop-shadow(0.6px 0.5px 0 #F77737);
}
.cmp-soc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}
.cmp-soc-stats strong { color: var(--text-light); font-size: 0.92rem; }
.cmp-soc-pending,
.cmp-soc-none {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}
.cmp-soc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cmp-soc-open {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.cmp-soc-open:hover { text-decoration: underline; }
.cmp-soc-open .material-symbols-outlined { font-size: 14px; }
.cmp-soc-crawled { font-size: 0.68rem; color: var(--text-dim); }

.cmp-sync-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--white-15);
  color: var(--text-light);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}
.cmp-sync-btn:hover {
  background: var(--white-08);
  border-color: var(--white-30);
  color: var(--primary);
}
.cmp-sync-btn .material-symbols-outlined {
  font-size: 0.9rem;
}
.cmp-sync-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cmp-soc-avg-stats {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--white-08);
  width: 100%;
}
.cmp-avg-title {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.cmp-avg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.4rem;
}
.cmp-avg-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--white-05);
}
.cmp-avg-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  overflow-wrap: anywhere;
}
.cmp-avg-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ---- Form sửa link MXH ---- */
.cmp-social-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: var(--glass-radius-sm);
  background: rgba(30, 27, 22, 0.55);
  border: 1px solid var(--white-08);
}
.cmp-soc-field { display: flex; flex-direction: column; gap: 4px; }
.cmp-soc-field-label { font-size: 0.74rem; color: var(--text-dim); font-weight: 600; }
.cmp-soc-field input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--white-12);
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.82rem;
}
.cmp-soc-field input:focus { outline: none; border-color: var(--primary); }
.cmp-social-msg { font-size: 0.74rem; color: #f87171; min-height: 1em; }
.cmp-social-form-actions { display: flex; gap: 0.5rem; }
.cmp-soc-save,
.cmp-soc-cancel {
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.cmp-soc-save {
  background: linear-gradient(135deg, #e4c783, #b9964d);
  color: #17110c;
  border: none;
}
.cmp-soc-save:hover { filter: brightness(1.05); }
.cmp-soc-save:disabled { opacity: 0.6; cursor: default; }
.cmp-soc-cancel {
  background: transparent;
  border: 1px solid var(--white-12);
  color: var(--text-dim);
}
.cmp-soc-cancel:hover { color: var(--text-light); }

/* Panel chi tiết xổ NGAY DƯỚI thẻ (chiếm trọn 1 hàng trong grid) */
.cmp-detail-inline { grid-column: 1 / -1; }
.cmp-detail-inline .cmp-detail { margin-top: 4px; }

/* Nút CTA "Vào fanpage" — nổi bật, full chiều ngang thẻ */
.cmp-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e4c783, #b9964d);
  color: #17110c;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.cmp-card-cta:hover { opacity: 0.92; transform: translateY(-1px); }
.cmp-card-cta .material-symbols-outlined { font-size: 16px; }

.cmp-ad-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cmp-ad-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cmp-ad-days {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
}

.cmp-ad-days .material-symbols-outlined {
  font-size: 1rem;
}

.cmp-ad-status {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmp-ad-status-on {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.cmp-ad-status-off {
  background: var(--white-08);
  border: 1px solid var(--white-10);
  color: var(--text-dim);
}

.cmp-ad-crawled,
.cmp-post-crawled {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.cmp-ad-body {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Góc bán hàng AI/máy đọc từ QC (Plan 1 — bộ não đối thủ) */
.cmp-ad-angle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: var(--primary-alpha-15);
  border: 1px solid var(--primary-alpha-30);
}
.cmp-ad-angle-text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}
.cmp-ad-angle-text .material-symbols-outlined { font-size: 1rem; }
.cmp-ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cmp-ad-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}
.cmp-ad-tag-price { color: var(--primary); border-color: var(--primary-alpha-30); }

.cmp-ad-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}

.cmp-ad-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  background: var(--primary-alpha-15);
  border: 1px solid var(--primary-alpha-30);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.cmp-ad-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.cmp-ad-pages-count {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cmp-ad-pages-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cmp-ad-page-btn {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--white-10);
  background: rgba(30, 27, 22, 0.55);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cmp-ad-page-btn:hover:not(:disabled),
.cmp-ad-page-btn.is-active {
  border-color: var(--primary-alpha-30);
  background: var(--primary-alpha-15);
  color: var(--primary);
}

.cmp-ad-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cmp-ad-page-arrow .material-symbols-outlined {
  font-size: 1.15rem;
}

.cmp-ad-page-ellipsis {
  min-width: 18px;
  color: var(--text-dim);
  text-align: center;
  font-weight: 800;
}

.cmp-ad-link,
.cmp-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.cmp-ad-link:hover,
.cmp-post-link:hover {
  color: var(--primary-lighter);
}

.cmp-ad-link .material-symbols-outlined,
.cmp-post-link .material-symbols-outlined {
  font-size: 0.95rem;
}

/* ---- Posts list ---- */
.cmp-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cmp-post {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.85rem;
  border-radius: var(--glass-radius-sm);
  background: rgba(30, 27, 22, 0.55);
  border: 1px solid var(--white-08);
}

.cmp-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cmp-post-kind {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--secondary-alpha);
  border: 1px solid rgba(111, 145, 103, 0.3);
  color: var(--secondary-text);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cmp-post-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.cmp-post-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cmp-post-platform-tt {
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.25);
  color: #fe2c55;
}
.cmp-post-platform-fb {
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.25);
  color: #1877f2;
}
.cmp-post-platform-ig {
  background: rgba(219, 111, 160, 0.12);
  border: 1px solid rgba(219, 111, 160, 0.25);
  color: #E4405F;
}
.cmp-post-platform-badge svg {
  width: 10px;
  height: 10px;
}
.cmp-post-platform-tt svg {
  filter: drop-shadow(-0.7px 0 0 #25F4EE) drop-shadow(0.7px 0 0 #FE2C55);
}
.cmp-post-platform-ig svg {
  filter: drop-shadow(-0.5px -0.4px 0 #833AB4) drop-shadow(0.6px 0.5px 0 #F77737);
}

.cmp-post-engage {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.cmp-post-engage .material-symbols-outlined {
  font-size: 1rem;
}

.cmp-post-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-light);
}

.cmp-post-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--white-08);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cmp-post-metrics > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cmp-post-metrics .material-symbols-outlined {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.cmp-post-metrics .cmp-post-link {
  margin-left: auto;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .cmp-grid {
    /* minmax(0,1fr): track co được về bề rộng container — nếu để 1fr (sàn=min-content),
       thẻ nhóm có nội dung rộng sẽ kéo cả cột tràn ngang trên mobile. */
    grid-template-columns: minmax(0, 1fr);
  }

  .cmp-conclusion-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cmp-ad-list,
  .cmp-post-list {
    grid-template-columns: 1fr;
  }

  .cmp-card {
    padding: 1.1rem;
  }

  .cmp-detail {
    padding: 1.25rem 1rem;
  }

  .cmp-detail-head {
    flex-wrap: wrap;
  }

  .cmp-ad-media {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .cmp-close-btn {
    width: 44px;
    height: 44px;
  }

  .cmp-ad-link,
  .cmp-post-link {
    min-height: 44px;
    align-items: center;
  }
}

/* ===== Competitor redesign demo — analytical workspace ===== */
.cmp-overview {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(460px, 1.7fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 1rem;
  padding: 18px;
  border-radius: 16px;
}

.cmp-overview-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.cmp-overline {
  display: inline-flex;
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(228, 199, 131, 0.12);
  border: 1px solid rgba(228, 199, 131, 0.22);
  color: #e4c783;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cmp-overview-main h3 {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.22;
  color: var(--text-light);
}

.cmp-channel-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmp-channel-map span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--white-10);
  background: rgba(30, 27, 22, 0.58);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.cmp-channel-map strong { color: var(--text-light); }

.cmp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cmp-kpi {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--white-08);
  background: rgba(18, 15, 12, 0.46);
}

.cmp-kpi .material-symbols-outlined {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(228, 199, 131, 0.12);
  color: #e4c783;
  font-size: 18px;
}

.cmp-kpi strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.cmp-kpi small {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmp-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
}

.cmp-search {
  flex: 1 1 280px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--white-10);
  background: rgba(18, 15, 12, 0.54);
  color: var(--text-dim);
}

.cmp-search .material-symbols-outlined { font-size: 18px; }

.cmp-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-light);
  font: inherit;
  font-size: 14px;
}

.cmp-search input::placeholder { color: var(--text-dim); }

.cmp-segments {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--white-10);
  background: rgba(18, 15, 12, 0.54);
}

.cmp-segments button,
.cmp-toggle {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 11px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cmp-segments button.is-active,
.cmp-toggle.is-active {
  color: #17110c;
  background: linear-gradient(135deg, #e4c783, #b9964d);
}

.cmp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--white-10);
  background: rgba(18, 15, 12, 0.54);
}

.cmp-toggle .material-symbols-outlined { font-size: 16px; }

.cmp-filter-count {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.cmp-workbench {
  display: grid;
  grid-template-columns: minmax(440px, 0.78fr) minmax(560px, 1.22fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.cmp-roster {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.cmp-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--white-08);
}

.cmp-roster-title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-light);
}

.cmp-roster-head span {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.cmp-roster-sort {
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.03);
}

.cmp-board {
  display: flex;
  flex-direction: column;
}

.cmp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--white-08);
  background: rgba(18, 15, 12, 0.42);
}

.cmp-pagination-single {
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
}

.cmp-page-range,
.cmp-page-current {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cmp-page-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(228, 199, 131, 0.22);
  background: rgba(228, 199, 131, 0.1);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.cmp-page-actions button:hover:not(:disabled) {
  background: rgba(228, 199, 131, 0.18);
  border-color: rgba(228, 199, 131, 0.4);
}

.cmp-page-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.cmp-page-actions .material-symbols-outlined {
  font-size: 16px;
}

.cmp-row {
  --cmp-tone-line: #e4c783;
  --cmp-tone-bg: rgba(228, 199, 131, 0.12);
  --cmp-tone-bg-strong: rgba(228, 199, 131, 0.22);
  --cmp-tone-border: rgba(228, 199, 131, 0.28);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 104px 78px;
  gap: 5px;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid var(--white-08);
  border-radius: 0;
  background: rgba(28, 24, 20, 0.54);
  box-shadow: none;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font-body);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.cmp-row:hover {
  transform: none;
  background: rgba(39, 34, 28, 0.68);
}

.cmp-row:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(228, 199, 131, 0.44);
}

.cmp-card-open {
  background: rgba(45, 39, 31, 0.72);
  box-shadow: inset 0 0 0 1px var(--cmp-tone-border);
}

.cmp-tone-1 { --cmp-tone-line: #ffd166; --cmp-tone-bg: rgba(255, 209, 102, 0.13); --cmp-tone-bg-strong: rgba(255, 209, 102, 0.24); --cmp-tone-border: rgba(255, 209, 102, 0.4); }
.cmp-tone-2 { --cmp-tone-line: #25f4ee; --cmp-tone-bg: rgba(37, 244, 238, 0.12); --cmp-tone-bg-strong: rgba(37, 244, 238, 0.23); --cmp-tone-border: rgba(37, 244, 238, 0.38); }
.cmp-tone-3 { --cmp-tone-line: #ff5fa2; --cmp-tone-bg: rgba(255, 95, 162, 0.13); --cmp-tone-bg-strong: rgba(255, 95, 162, 0.24); --cmp-tone-border: rgba(255, 95, 162, 0.38); }
.cmp-tone-4 { --cmp-tone-line: #4ade80; --cmp-tone-bg: rgba(74, 222, 128, 0.12); --cmp-tone-bg-strong: rgba(74, 222, 128, 0.23); --cmp-tone-border: rgba(74, 222, 128, 0.38); }
.cmp-tone-5 { --cmp-tone-line: #60a5fa; --cmp-tone-bg: rgba(96, 165, 250, 0.13); --cmp-tone-bg-strong: rgba(96, 165, 250, 0.24); --cmp-tone-border: rgba(96, 165, 250, 0.38); }
.cmp-tone-6 { --cmp-tone-line: #c084fc; --cmp-tone-bg: rgba(192, 132, 252, 0.13); --cmp-tone-bg-strong: rgba(192, 132, 252, 0.24); --cmp-tone-border: rgba(192, 132, 252, 0.38); }

/* Trang Gạo Nâu trong "Bản đồ đối thủ" — ghim đầu, tô nổi bật màu brand (Mục 4, 2026-06-08).
   !important để thắng theme brand (html[data-gn-color-demo] .cmp-card có specificity cao hơn). */
.cmp-card.cmp-self,
.cmp-group.cmp-self {
  box-shadow: inset 0 0 0 2px rgba(196, 160, 64, 0.92), 0 4px 18px rgba(196, 160, 64, 0.22) !important;
  background: rgba(212, 185, 106, 0.18) !important;
  border-radius: 14px;
}
.cmp-self-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4a3c12;
  background: linear-gradient(135deg, #f2d98b, #d4b96a);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

.cmp-row-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cmp-row .cmp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.cmp-row .cmp-avatar-sm {
  width: 31px;
  height: 31px;
  border-radius: 8px;
}

.cmp-card-headings { gap: 1px; }

.cmp-card-name {
  white-space: normal;
  line-height: 1.12;
  font-size: 0.88rem;
}

.cmp-card-niche,
.cmp-member-stats {
  font-size: 0.62rem;
}

.cmp-row-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}

.cmp-row .cmp-card-link {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 2px;
  font-size: 0.66rem;
}

.cmp-row-links .cmp-social-row {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-top: 0;
}

.cmp-row .cmp-soc {
  padding: 2px 5px;
  gap: 2px;
  font-size: 0.58rem;
}

.cmp-row .cmp-soc-svg {
  width: 12px;
  height: 12px;
}

.cmp-row-metrics {
  display: grid;
  grid-template-columns: 42px 29px 34px;
  justify-self: end;
  width: max-content;
  gap: 3px;
}

.cmp-row-metric {
  min-width: 0;
  min-height: 29px;
  padding: 3px 3px;
  border-radius: 6px;
  border: 1px solid var(--white-08);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.cmp-row-metric strong {
  display: block;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 9.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cmp-row-metric span {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 5.8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.cmp-row-metric.is-ad-active {
  border-color: rgba(74, 222, 128, 0.46);
  background: rgba(34, 197, 94, 0.14);
}

.cmp-row-metric.is-ad-active strong,
.cmp-row-metric.is-ad-active span {
  color: #4ade80;
}

.cmp-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.cmp-group-btn,
.cmp-pin-btn,
.cmp-ungroup-btn,
.cmp-delete-btn {
  position: static;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.cmp-delete-btn {
  border-color: rgba(255, 122, 115, 0.22);
  color: #ff9b95;
  background: rgba(255, 122, 115, 0.06);
}

.cmp-delete-btn:hover {
  border-color: rgba(255, 122, 115, 0.48);
  color: #ffd2cf;
  background: rgba(255, 122, 115, 0.14);
}

.cmp-row-actions .material-symbols-outlined,
.cmp-group-expand .material-symbols-outlined {
  font-size: 16px;
}

.cmp-group {
  --cmp-tone-line: #e4c783;
  --cmp-tone-bg: rgba(228, 199, 131, 0.12);
  --cmp-tone-bg-strong: rgba(228, 199, 131, 0.22);
  --cmp-tone-border: rgba(228, 199, 131, 0.28);
  border-bottom: 1px solid var(--white-08);
  background: rgba(21, 18, 15, 0.48);
}

.cmp-group.cmp-tone-1 { --cmp-tone-line: #ffd166; --cmp-tone-bg: rgba(255, 209, 102, 0.13); --cmp-tone-bg-strong: rgba(255, 209, 102, 0.24); --cmp-tone-border: rgba(255, 209, 102, 0.4); }
.cmp-group.cmp-tone-2 { --cmp-tone-line: #25f4ee; --cmp-tone-bg: rgba(37, 244, 238, 0.12); --cmp-tone-bg-strong: rgba(37, 244, 238, 0.23); --cmp-tone-border: rgba(37, 244, 238, 0.38); }
.cmp-group.cmp-tone-3 { --cmp-tone-line: #ff5fa2; --cmp-tone-bg: rgba(255, 95, 162, 0.13); --cmp-tone-bg-strong: rgba(255, 95, 162, 0.24); --cmp-tone-border: rgba(255, 95, 162, 0.38); }
.cmp-group.cmp-tone-4 { --cmp-tone-line: #4ade80; --cmp-tone-bg: rgba(74, 222, 128, 0.12); --cmp-tone-bg-strong: rgba(74, 222, 128, 0.23); --cmp-tone-border: rgba(74, 222, 128, 0.38); }
.cmp-group.cmp-tone-5 { --cmp-tone-line: #60a5fa; --cmp-tone-bg: rgba(96, 165, 250, 0.13); --cmp-tone-bg-strong: rgba(96, 165, 250, 0.24); --cmp-tone-border: rgba(96, 165, 250, 0.38); }
.cmp-group.cmp-tone-6 { --cmp-tone-line: #c084fc; --cmp-tone-bg: rgba(192, 132, 252, 0.13); --cmp-tone-bg-strong: rgba(192, 132, 252, 0.24); --cmp-tone-border: rgba(192, 132, 252, 0.38); }

.cmp-group-head {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
}

.cmp-group-open .cmp-group-head {
  box-shadow: inset 0 0 0 1px var(--cmp-tone-border);
}

.cmp-group-count {
  margin-left: 4px;
}

.cmp-group-expand {
  width: 54px;
  height: 27px;
  justify-self: end;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  border: 1px solid var(--cmp-tone-border);
  background: var(--cmp-tone-bg);
  color: var(--text-light);
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.cmp-group-members {
  border-top: 1px solid var(--white-08);
  background: rgba(15, 13, 11, 0.42);
}

.cmp-group-members[hidden] {
  display: none !important;
}

.cmp-member {
  padding-left: 16px;
}

.cmp-member:last-child {
  border-bottom: 0;
}

.cmp-member-run {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
}

.cmp-insight-pane {
  position: sticky;
  top: 88px;
  max-height: none;
  overflow: visible;
  border-radius: 16px;
}

.cmp-insight-pane .cmp-detail {
  margin-top: 0;
  padding: 16px;
  border-radius: 16px;
}

.cmp-insight-pane .cmp-detail-body {
  padding-top: 14px;
}

.cmp-insight-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 16px;
}

.cmp-insight-empty .material-symbols-outlined {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #e4c783;
  background: rgba(228, 199, 131, 0.12);
}

.cmp-insight-empty strong {
  max-width: 320px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

.cmp-insight-pane .cmp-conclusion {
  margin-bottom: 14px;
}

.cmp-insight-pane .cmp-ad-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cmp-insight-pane .cmp-ad {
  flex-direction: column;
  gap: 12px;
}

.cmp-insight-pane .cmp-ad-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  flex-basis: auto;
}

.cmp-insight-pane .cmp-post-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cmp-social-form[hidden],
.cmp-social-view[hidden],
.cmp-social-edit-btn[hidden] {
  display: none !important;
}

.cmp-no-results {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.cmp-no-results .material-symbols-outlined {
  color: #e4c783;
  font-size: 34px;
}

@media (max-width: 1180px) {
  .cmp-overview {
    grid-template-columns: 1fr;
  }

  .cmp-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmp-workbench {
    grid-template-columns: 1fr;
  }

  .cmp-insight-pane {
    position: static;
    max-height: none;
  }

  .cmp-ad-list,
  .cmp-insight-pane .cmp-ad-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cmp-overview {
    padding: 14px;
  }

  .cmp-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmp-filterbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cmp-search,
  .cmp-segments,
  .cmp-toggle {
    width: 100%;
  }

  .cmp-segments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmp-segments button,
  .cmp-toggle,
  .cmp-group-btn,
  .cmp-pin-btn,
  .cmp-ungroup-btn,
  .cmp-group-expand {
    min-height: 44px;
  }

  .cmp-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 14px;
  }

  .cmp-row-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmp-row-status,
  .cmp-row-actions {
    justify-content: flex-start;
  }

  .cmp-ad-list,
  .cmp-insight-pane .cmp-ad-list,
  .cmp-insight-pane .cmp-post-list {
    grid-template-columns: 1fr;
  }

  .cmp-ad-pages {
    align-items: flex-start;
  }

  .cmp-ad-pages-controls {
    width: 100%;
  }

  .cmp-member {
    padding-left: 18px;
  }

  .cmp-insight-pane .cmp-ad-media {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* ===== So sánh Gạo Nâu vs Đối thủ (khu đầu trang Đối thủ) ===== */
.cmp-vs {
  margin-top: 1rem;
  padding: 16px 18px;
  border-radius: 16px;
}

/* Bản tin tuần + Khoảng trống (Bộ não Đối thủ, Plan 2/3) */
.cmp-digest, .cmp-gaps {
  margin-top: 1rem;
  padding: 16px 18px;
  border-radius: 16px;
}
.cmp-digest-head { margin-bottom: 12px; }
.cmp-digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.cmp-digest-block-title { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.cmp-digest-items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.cmp-digest-items li { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.cmp-digest-items strong { color: var(--text); }
.cmp-digest-dim { color: var(--text-dim); font-size: 0.78rem; }
.cmp-gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cmp-gap-brand {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
}
.cmp-gap-brandname { display: block; font-size: 0.92rem; margin-bottom: 8px; }
.cmp-gap-row { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cmp-gap-lbl { color: var(--text-dim); }

.cmp-vs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cmp-vs-titles { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.cmp-vs-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.25;
  color: var(--text-light);
}

.cmp-vs-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(228, 199, 131, 0.22);
  background: rgba(228, 199, 131, 0.1);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.cmp-vs-toggle:hover { background: rgba(228, 199, 131, 0.18); border-color: rgba(228, 199, 131, 0.4); }
.cmp-vs-toggle .material-symbols-outlined { font-size: 18px; }

.cmp-vs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 14px;
}

.cmp-vs-brand {
  border: 1px solid var(--white-08);
  border-radius: 14px;
  background: rgba(18, 15, 12, 0.46);
  overflow: hidden;
}

.cmp-vs-brandhead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--white-08);
  background: var(--vsA-soft, rgba(228, 199, 131, 0.1));
}

.cmp-vs-brandicon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--vsA, rgba(228, 199, 131, 0.4));
  font-size: 18px;
}

.cmp-vs-brandtext { min-width: 0; display: flex; flex-direction: column; }
.cmp-vs-brandtext strong { font-family: var(--font-display); font-size: 15px; color: var(--text-light); }
.cmp-vs-brandtext span { font-size: 11px; color: var(--text-dim); font-weight: 700; }

.cmp-vs-deltas { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }

.cmp-vs-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cmp-vs-delta.is-up { background: rgba(74, 222, 128, 0.14); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.cmp-vs-delta.is-down { background: rgba(248, 113, 113, 0.14); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }

.cmp-vs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 44px 44px 52px;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--white-05);
  font-size: 12px;
  color: var(--text-light);
}

.cmp-vs-colhead {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cmp-vs-colhead span:not(:first-child),
.cmp-vs-row .cmp-vs-num { text-align: right; }

.cmp-vs-self {
  background: var(--vsA-bg, rgba(228, 199, 131, 0.1));
  box-shadow: inset 3px 0 0 var(--vsA, var(--primary));
}

.cmp-vs-identity { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 7px; }
/* Cỡ avatar riêng cho bảng so sánh (class cmp-avatar-sm gốc chỉ áp trong .cmp-row). */
.cmp-vs .cmp-avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 0.66rem; flex-shrink: 0; }

.cmp-vs-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-light);
  text-decoration: none;
}

a.cmp-vs-name:hover { text-decoration: underline; color: var(--primary); }
.cmp-vs-self .cmp-vs-name { font-weight: 800; }

.cmp-vs-badge {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--vsA, var(--primary));
  color: #1a1a1a;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cmp-vs-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-muted); }
.cmp-vs-self .cmp-vs-num { color: var(--text-light); }

.cmp-vs-more,
.cmp-vs-empty {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--text-dim);
}

.cmp-vs-empty { font-style: italic; }

@media (max-width: 720px) {
  .cmp-vs-grid { grid-template-columns: 1fr; }
  /* Ẩn cột THÍCH (likes, ít quan trọng nhất) trên mobile → tên trang rộng hơn, hết bị cắt. */
  .cmp-vs-row { grid-template-columns: minmax(0, 1fr) 50px 40px 44px; padding-left: 10px; padding-right: 10px; }
  .cmp-vs-row > :last-child { display: none; }
  .cmp-vs-deltas { width: 100%; margin-left: 0; }
}

/* ============================================
   TALENT LISTS — "Danh sách Talent đã lưu" (giỏ talent)
   ============================================ */
.tlist-loading {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tlist-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.tlist-empty .material-symbols-outlined {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.55;
}

.tlist-empty h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
}

.tlist-empty p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.tlist-empty .btn-primary-pill {
  margin-top: 0.5rem;
}

/* Grid of list cards */
.tlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.tlist-card {
  padding: 1.1rem 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tlist-card:hover {
  border-color: var(--primary-alpha-20);
  transform: translateY(-2px);
}

.tlist-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.tlist-card-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  line-height: 1.3;
}

.tlist-card-count {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--white-05);
  border: 1px solid var(--primary-alpha-20);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tlist-card-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tlist-card-thumbs {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.tlist-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card, #231f20);
  margin-right: -8px;
  background: var(--white-08);
}

.tlist-thumb-ph,
.tlist-thumb-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.tlist-thumb-more {
  background: var(--primary);
  color: var(--bg-page, #1a1614);
}

.tlist-card-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.tlist-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.tlist-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tlist-card-meta .material-symbols-outlined {
  font-size: 0.85rem;
}

.tlist-card-campaign {
  color: var(--primary) !important;
}

.tlist-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 0.7rem;
}

.tlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--white-05);
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tlist-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tlist-btn .material-symbols-outlined {
  font-size: 0.95rem;
}

.tlist-btn-open,
.tlist-btn-camp {
  flex: 1;
  justify-content: center;
}

.tlist-btn-del {
  color: #f87171;
}

.tlist-btn-del:hover {
  border-color: #f87171;
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

/* Detail view */
.tlist-detail-header {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tlist-detail-titlewrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tlist-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--white-05);
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.tlist-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tlist-detail-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--white-05);
  border: 1px solid var(--primary-alpha-20);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.tlist-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tlist-detail-note {
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.tlist-members {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tlist-members-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tlist-members-empty .material-symbols-outlined {
  font-size: 2.2rem;
  opacity: 0.3;
}

.tlist-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.tlist-member:hover {
  background: var(--white-05);
}

.tlist-member-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--white-08);
}

.tlist-member-av-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.tlist-member-info {
  flex: 1;
  min-width: 0;
}

.tlist-member-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tlist-member-badges {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.tlist-member-region {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 90px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tlist-member-hot {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  width: 56px;
  text-align: center;
}

.tlist-member-hot-none {
  color: var(--text-dim);
  font-weight: 400;
}

.tlist-member-cost {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  width: 100px;
  text-align: right;
  white-space: nowrap;
}

.tlist-member-missing {
  opacity: 0.6;
  font-style: italic;
}

.tlist-member-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.tlist-member-remove:hover {
  border-color: #f87171;
  color: #f87171;
}

.tlist-member-remove .material-symbols-outlined {
  font-size: 0.95rem;
}

/* "Thêm vào danh sách" picker */
.tlist-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
}

.tlist-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--white-05);
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  text-align: left;
}

.tlist-pick:hover {
  border-color: var(--primary);
  background: var(--white-08);
}

.tlist-pick:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tlist-pick-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.tlist-pick-count {
  font-size: 0.7rem;
  color: var(--primary);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .tlist-member-region {
    display: none;
  }

  .tlist-member-cost {
    width: 78px;
  }

  .tlist-detail-actions {
    width: 100%;
  }

  .tlist-detail-actions .btn-primary-pill {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================================
   SEO / Web page (.seo-*) — bám Dark Luxury + Liquid Glass (token core.css)
   ============================================================================ */
.seo-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    --seo-panel-bg: rgba(255,255,255,.045);
    --seo-panel-bg-strong: rgba(255,255,255,.075);
    --seo-panel-border: rgba(255,255,255,.10);
}
.seo-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 24px; flex-wrap: wrap;
}
.seo-header-text { min-width: 0; }
.seo-title { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; color: var(--text-light); margin: 0; line-height: 1.18; }
.seo-title .material-symbols-outlined { color: var(--primary); font-size: 26px; }
.seo-sub { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 72ch; text-wrap: pretty; }
.seo-updated-note {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.seo-btn {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600;
    border: 1px solid var(--glass-border); background: var(--white-05); color: var(--text-light);
    transition: background .2s, border-color .2s, transform .1s; min-height: 44px;
}
.seo-btn:hover { background: var(--white-10); }
.seo-btn:active { transform: scale(.98); }
.seo-btn:disabled { opacity: .55; cursor: not-allowed; }
.seo-btn-primary { background: var(--primary-alpha-20); border-color: var(--primary-alpha-30); color: var(--primary-lighter); }
.seo-btn-primary:hover { background: var(--primary-alpha-30); }
.seo-btn-ghost { padding: 9px 14px; }
.seo-btn .material-symbols-outlined { font-size: 19px; }

.seo-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.seo-tab {
    cursor: pointer; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--glass-border); background: var(--white-05); color: var(--text-muted);
    min-height: 44px; transition: background .2s, color .2s, border-color .2s;
}
.seo-tab:hover { background: var(--white-10); color: var(--text-light); }
.seo-tab.is-active { background: var(--primary-alpha-20); border-color: var(--primary-alpha-30); color: var(--primary-lighter); }

.seo-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.seo-overview-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 112px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--seo-panel-border);
    background: linear-gradient(145deg, var(--seo-panel-bg-strong), rgba(255,255,255,.025));
}
.seo-overview-item > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--primary-lighter);
    background: var(--primary-alpha-15);
}
.seo-overview-item strong {
    display: block;
    color: var(--text-light);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.seo-overview-item small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.seo-overview-item p {
    margin: 8px 0 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
}
.seo-overview-item.is-alert > .material-symbols-outlined { color: #f5a09a; background: rgba(240,133,125,.16); }
.seo-overview-item.is-warn > .material-symbols-outlined { color: #f0d488; background: rgba(233,196,106,.16); }
.seo-overview-item.is-score { background: linear-gradient(145deg, rgba(233,196,106,.11), rgba(255,255,255,.032)); border-color: rgba(233,196,106,.22); }
.seo-overview-item.is-alert { background: linear-gradient(145deg, rgba(240,133,125,.115), rgba(255,255,255,.028)); border-color: rgba(240,133,125,.26); }
.seo-overview-item.is-good { background: linear-gradient(145deg, rgba(110,231,168,.10), rgba(255,255,255,.028)); border-color: rgba(110,231,168,.23); }
.seo-overview-item.is-info { background: linear-gradient(145deg, rgba(125,211,252,.10), rgba(255,255,255,.028)); border-color: rgba(125,211,252,.22); }
.seo-overview-item.is-score > .material-symbols-outlined { color: #f0d488; background: rgba(233,196,106,.16); }
.seo-overview-item.is-good > .material-symbols-outlined { color: #8ff0bd; background: rgba(110,231,168,.15); }
.seo-overview-item.is-info > .material-symbols-outlined { color: #9bdcff; background: rgba(125,211,252,.14); }

.seo-brands { display: flex; flex-direction: column; gap: 16px; }
.seo-brand {
    padding: 22px;
    border-color: color-mix(in srgb, var(--seo-brand-accent) 30%, var(--glass-border));
}
.seo-brand-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.seo-kicker {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}
.seo-brand-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--text-light); margin: 6px 0 0; line-height: 1.2; }
.seo-brand-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; background: var(--seo-brand-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--seo-brand-accent) 18%, transparent); }
.seo-brand-meta { margin: 6px 0 0; color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.seo-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--seo-panel-border);
    background: var(--seo-panel-bg);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.seo-status-good { color: #8ff0bd; background: rgba(110,231,168,.12); border-color: rgba(110,231,168,.28); }
.seo-status-mid { color: #f0d488; background: rgba(233,196,106,.12); border-color: rgba(233,196,106,.28); }
.seo-status-low { color: #f5a09a; background: rgba(240,133,125,.14); border-color: rgba(240,133,125,.30); }

.seo-config-row {
    display: grid;
    grid-template-columns: max-content minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.seo-config-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.seo-input {
    min-width: 0; padding: 10px 12px; min-height: 44px;
    border-radius: 10px; border: 1px solid var(--glass-border); background: var(--bg-dark);
    color: var(--text-light); font-size: 14px;
}
.seo-input:focus { outline: 2px solid var(--primary-alpha-30); outline-offset: 1px; border-color: var(--primary); }

.seo-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
}
.seo-score-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--seo-brand-accent) 11%, transparent), var(--seo-panel-bg));
    border: 1px solid color-mix(in srgb, var(--seo-brand-accent) 24%, var(--seo-panel-border));
}
.seo-score-main {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.seo-score-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--bg-dark) 0 58%, transparent 59%),
        conic-gradient(var(--seo-brand-accent) var(--score-deg), rgba(255,255,255,.10) 0);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.seo-score-ring strong {
    color: var(--text-light);
    font-size: 30px;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.seo-score-ring span { margin-top: 3px; color: var(--text-dim); font-size: 11px; font-weight: 700; }
.seo-score-main h4 { margin: 7px 0 0; color: var(--text-light); font-size: 19px; line-height: 1.25; }
.seo-score-main p { margin: 8px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.seo-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.seo-mini-stat {
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.16);
    border: 1px solid var(--seo-panel-border);
}
.seo-mini-stat .material-symbols-outlined { color: var(--seo-brand-accent); font-size: 19px; }
.seo-mini-stat strong { display: block; margin-top: 8px; color: var(--text-light); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.seo-mini-stat small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; font-weight: 800; }
.seo-mini-stat p { margin: 7px 0 0; color: var(--text-dim); font-size: 11px; line-height: 1.35; }
.seo-mini-stat.tone-benchmark { background: rgba(233,196,106,.10); border-color: rgba(233,196,106,.20); }
.seo-mini-stat.tone-alert { background: rgba(240,133,125,.11); border-color: rgba(240,133,125,.24); }
.seo-mini-stat.tone-good { background: rgba(110,231,168,.10); border-color: rgba(110,231,168,.22); }
.seo-mini-stat.tone-content { background: rgba(125,211,252,.10); border-color: rgba(125,211,252,.22); }
.seo-mini-stat.tone-benchmark .material-symbols-outlined { color: #f0d488; }
.seo-mini-stat.tone-alert .material-symbols-outlined { color: #f5a09a; }
.seo-mini-stat.tone-good .material-symbols-outlined { color: #8ff0bd; }
.seo-mini-stat.tone-content .material-symbols-outlined { color: #9bdcff; }

.seo-explain-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}
.seo-explain-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.seo-info-card {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--seo-panel-border);
    background: var(--seo-panel-bg);
}
.seo-info-reason { background: linear-gradient(145deg, rgba(125,211,252,.09), var(--seo-panel-bg)); border-color: rgba(125,211,252,.22); }
.seo-info-goal { background: linear-gradient(145deg, rgba(110,231,168,.09), var(--seo-panel-bg)); border-color: rgba(110,231,168,.22); }
.seo-explain-compact .seo-info-card {
    padding: 12px 14px;
    border-radius: 14px;
}
.seo-info-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.seo-explain-compact .seo-info-head { align-items: center; gap: 9px; }
.seo-info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: var(--primary-lighter);
}
.seo-info-reason .seo-info-icon { color: #9bdcff; background: rgba(125,211,252,.14); }
.seo-info-goal .seo-info-icon { color: #8ff0bd; background: rgba(110,231,168,.14); }
.seo-explain-compact .seo-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 18px;
}
.seo-info-head h4 { margin: 0; color: var(--text-light); font-size: 16px; font-weight: 800; line-height: 1.25; }
.seo-info-head span:not(.material-symbols-outlined) { display: block; margin-top: 4px; color: var(--text-dim); font-size: 12px; font-weight: 800; }
.seo-info-copy { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.seo-explain-compact .seo-info-head h4 { font-size: 14px; }
.seo-explain-compact .seo-info-head span:not(.material-symbols-outlined) { margin-top: 2px; font-size: 11px; }
.seo-explain-compact .seo-info-copy { margin-top: 8px; font-size: 12px; line-height: 1.45; }
.seo-info-copy strong { color: var(--text-light); font-variant-numeric: tabular-nums; }
.seo-compact-detail { margin-top: 8px; }
.seo-compact-detail summary {
    cursor: pointer;
    color: var(--primary-lighter);
    font-size: 12px;
    font-weight: 800;
}
.seo-compact-detail summary:hover { color: var(--primary); }
.seo-compact-detail .seo-factor-list,
.seo-compact-detail .seo-goal-list { margin-top: 8px; }
.seo-factor-list,
.seo-goal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
}
.seo-score-factor,
.seo-goal-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid var(--seo-panel-border);
    background: rgba(0,0,0,.13);
}
.seo-score-factor .material-symbols-outlined,
.seo-goal-item .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 19px;
    background: rgba(255,255,255,.07);
}
.seo-score-factor strong,
.seo-goal-item strong { display: block; color: var(--text-light); font-size: 13px; font-weight: 800; line-height: 1.25; }
.seo-score-factor small,
.seo-goal-item small { display: block; margin-top: 3px; color: var(--text-dim); font-size: 12px; line-height: 1.35; white-space: normal; }
.seo-score-factor em,
.seo-goal-item em {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--text-light);
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.seo-factor-good { border-color: rgba(110,231,168,.20); }
.seo-factor-good .material-symbols-outlined,
.seo-factor-good em { color: #8ff0bd; background: rgba(110,231,168,.12); }
.seo-factor-mid { border-color: rgba(233,196,106,.22); }
.seo-factor-mid .material-symbols-outlined,
.seo-factor-mid em { color: #f0d488; background: rgba(233,196,106,.13); }
.seo-factor-low { border-color: rgba(240,133,125,.24); }
.seo-factor-low .material-symbols-outlined,
.seo-factor-low em { color: #f5a09a; background: rgba(240,133,125,.14); }
.seo-goal-high { border-color: rgba(240,133,125,.28); background: rgba(240,133,125,.09); }
.seo-goal-med { border-color: rgba(233,196,106,.26); background: rgba(233,196,106,.09); }
.seo-goal-low { border-color: rgba(125,211,252,.22); background: rgba(125,211,252,.08); }
.seo-goal-good { border-color: rgba(110,231,168,.23); background: rgba(110,231,168,.09); }
.seo-goal-high .material-symbols-outlined,
.seo-goal-high em { color: #f5a09a; background: rgba(240,133,125,.14); }
.seo-goal-med .material-symbols-outlined,
.seo-goal-med em { color: #f0d488; background: rgba(233,196,106,.13); }
.seo-goal-low .material-symbols-outlined,
.seo-goal-low em { color: #9bdcff; background: rgba(125,211,252,.12); }
.seo-goal-good .material-symbols-outlined,
.seo-goal-good em { color: #8ff0bd; background: rgba(110,231,168,.13); }
.seo-score-check,
.seo-info-note {
    margin: 12px 0 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
}
.seo-explain-compact .seo-info-note,
.seo-explain-compact .seo-score-check { margin-top: 8px; font-size: 11px; }

.seo-analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}
.seo-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.seo-section { min-width: 0; margin-top: 0; }
.seo-section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--primary-lighter); margin: 0 0 10px; text-transform: uppercase; }
.seo-section-title .material-symbols-outlined { font-size: 19px; }
.seo-section-action {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--seo-panel-border);
    background: var(--seo-panel-bg);
}
.seo-section-muted { opacity: .86; }

.seo-table-wrap { overflow-x: auto; overflow-y: hidden; border-radius: var(--glass-radius-sm); border: 1px solid var(--white-08); }
.seo-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.seo-table-health {
    min-width: 1000px;
    font-size: 12px;
}
.seo-table-health th,
.seo-table-health td { padding: 9px 8px; }
.seo-table-health .seo-cell-name { min-width: 160px; }
.seo-table th, .seo-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--white-05); white-space: nowrap; }
.seo-table thead th { background: var(--white-05); color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; position: sticky; top: 0; }
.seo-table tbody tr:last-child td { border-bottom: none; }
.seo-table tbody tr:hover { background: var(--white-05); }
.seo-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-light); }
.seo-num-cell { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.seo-time {
    color: var(--text-dim);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.seo-row-self { background: var(--primary-alpha-08); }
.seo-row-self:hover { background: var(--primary-alpha-15); }
.seo-badge-self { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--primary-alpha-20); color: var(--primary-lighter); text-transform: uppercase; letter-spacing: .5px; }
.seo-cell-name { display: flex; flex-direction: column; gap: 2px; }
.seo-cell-name a { color: var(--text-light); text-decoration: none; font-weight: 600; }
.seo-cell-name a:hover { color: var(--primary-lighter); text-decoration: underline; }
.seo-domain { color: var(--text-dim); font-size: 11px; }

.seo-light { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.seo-light-good { background: rgba(110,231,168,.14); color: #8ff0bd; }
.seo-light-mid { background: rgba(233,196,106,.14); color: #f0d488; }
.seo-light-low { background: rgba(240,133,125,.16); color: #f5a09a; }
.seo-light .seo-num { color: inherit; }
.seo-light-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.seo-signal { display: inline-flex; flex-direction: column; gap: 2px; }
.seo-signal strong { font-variant-numeric: tabular-nums; color: var(--text-light); }
.seo-signal small { color: var(--text-dim); font-size: 11px; }
.seo-signal-good strong { color: #8ff0bd; }
.seo-signal-mid strong { color: #f0d488; }
.seo-signal-low strong { color: #f5a09a; }

.seo-yes { color: #8ff0bd; font-weight: 700; }
.seo-no { color: #f5a09a; font-weight: 700; }
.seo-issue-count { display: inline-block; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 6px; background: rgba(240,133,125,.16); color: #f5a09a; font-weight: 700; cursor: help; }

.seo-services { white-space: normal; max-width: 320px; }
.seo-chip { display: inline-block; margin: 2px 3px 2px 0; padding: 2px 8px; border-radius: 7px; background: var(--white-08); color: var(--text-muted); font-size: 11px; }

.seo-empty { text-align: center; color: var(--text-muted); padding: 40px 20px; font-size: 14px; }
.seo-empty-err { color: #f5a09a; }
.seo-empty-hint { color: var(--text-muted); font-size: 13px; line-height: 1.6; padding: 16px; background: var(--white-05); border-radius: var(--glass-radius-sm); border: 1px dashed var(--glass-border); }
.seo-empty-hint strong { color: var(--primary-lighter); }

.seo-soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seo-soon { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.seo-soon .material-symbols-outlined { font-size: 28px; color: var(--primary); opacity: .8; flex: 0 0 auto; }
.seo-soon strong { color: var(--text-light); font-size: 14px; }
.seo-soon p { margin: 3px 0 0; color: var(--text-muted); font-size: 12px; }
.seo-soon-tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--white-08); color: var(--text-dim); text-transform: uppercase; flex: 0 0 auto; }

.seo-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
    background: var(--bg-dark); color: var(--text-light); padding: 12px 20px; border-radius: 12px;
    border: 1px solid var(--glass-border); box-shadow: 0 8px 30px rgba(0,0,0,.4); font-size: 14px;
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2000; max-width: 90vw;
}
.seo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.seo-toast[data-kind="success"] { border-color: rgba(110,231,168,.4); }
.seo-toast[data-kind="error"] { border-color: rgba(240,133,125,.5); }

.seo-spin { animation: seo-spin 1s linear infinite; }
@keyframes seo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seo-spin { animation: none; } }

@media (max-width: 860px) {
    .seo-soon-grid { grid-template-columns: 1fr; }
    .seo-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-command-grid,
    .seo-explain-grid,
    .seo-analysis-grid,
    .seo-secondary-grid { grid-template-columns: 1fr; }
    .seo-header { padding: 16px 18px; }
    .seo-title { font-size: 19px; }
}
@media (max-width: 560px) {
    .seo-overview { grid-template-columns: 1fr; }
    .seo-overview-item { min-height: 0; }
    .seo-brand { padding: 18px 16px; }
    .seo-brand-head { flex-direction: column; align-items: stretch; gap: 10px; }
    .seo-status-pill { align-self: flex-start; }
    .seo-config-row { grid-template-columns: 1fr; align-items: stretch; }
    .seo-input { width: 100%; }
    .seo-btn-primary,
    .seo-config-row .seo-btn { width: 100%; justify-content: center; }
    .seo-score-main { grid-template-columns: 1fr; justify-items: start; }
    .seo-score-ring { width: 104px; height: 104px; }
    .seo-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- SEO: Cơ hội & việc nên làm / GEO / Thứ hạng (GĐ2-4) ---- */
.seo-op-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.seo-op { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--glass-radius-sm); background: var(--white-05); border-left: 3px solid var(--text-dim); }
.seo-op .material-symbols-outlined { font-size: 22px; color: var(--primary); flex: 0 0 auto; margin-top: 2px; }
.seo-op strong { color: var(--text-light); font-size: 14px; }
.seo-op p { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.seo-op-tag { margin-left: auto; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; flex: 0 0 auto; white-space: nowrap; }
.seo-op-high { border-left-color: #f0857d; }
.seo-op-high .seo-op-tag { background: rgba(240,133,125,.16); color: #f5a09a; }
.seo-op-med { border-left-color: #e9c46a; }
.seo-op-med .seo-op-tag { background: rgba(233,196,106,.16); color: #f0d488; }
.seo-op-low { border-left-color: var(--text-dim); }
.seo-op-low .seo-op-tag { background: var(--white-08); color: var(--text-dim); }
.seo-op-empty {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--glass-radius-sm);
    background: rgba(110,231,168,.08);
    border: 1px solid rgba(110,231,168,.18);
}
.seo-op-empty .material-symbols-outlined { color: #8ff0bd; font-size: 24px; }
.seo-op-empty strong { display: block; color: var(--text-light); font-size: 14px; }
.seo-op-empty p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }

.seo-geo-stat { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.seo-geo-num { flex: 1 1 200px; padding: 14px 16px; border-radius: var(--glass-radius-sm); background: var(--white-05); border: 1px solid var(--white-08); }
.seo-geo-num strong { display: block; font-size: 24px; color: var(--primary-lighter); font-variant-numeric: tabular-nums; }
.seo-geo-num span { color: var(--text-muted); font-size: 12px; }
.seo-geo-detail { margin-top: 8px; }
.seo-geo-detail summary { cursor: pointer; color: var(--text-muted); font-size: 13px; padding: 6px 0; }
.seo-geo-detail summary:hover { color: var(--text-light); }
.seo-geo-q { padding: 8px 0; border-bottom: 1px solid var(--white-05); }
.seo-geo-q strong { color: var(--text-light); font-size: 13px; }
.seo-geo-q em { color: var(--text-dim); font-size: 11px; font-style: normal; }
.seo-geo-q p { margin: 4px 0 0; font-size: 12px; }

/* =====================================================================
   BÁO CÁO PHÂN TÍCH ĐỐI THỦ — modal toàn màn hình (Dark Luxury)
   ===================================================================== */
.cmp-detail-head-actions { display: flex; align-items: center; gap: 8px; }
.cmp-report-open {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
    background: var(--primary-alpha-15); border: 1px solid var(--glass-border);
    color: var(--primary-lighter); font-size: 13px; font-weight: 700;
    transition: background .15s ease, border-color .15s ease;
}
.cmp-report-open:hover { background: var(--primary-alpha-20); border-color: var(--primary-alpha-30); }
.cmp-report-open .material-symbols-outlined { font-size: 18px; }

.cmp-report-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(10, 8, 6, 0.72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: cmpReportIn .18s ease;
}
@keyframes cmpReportIn { from { opacity: 0; } to { opacity: 1; } }
.cmp-report-modal {
    width: 100%; max-width: 1120px; max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--glass-radius); background: var(--bg-surface);
    border: 1px solid var(--glass-border); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.cmp-report-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid var(--white-08);
    background: linear-gradient(180deg, var(--primary-alpha-08), transparent);
}
.cmp-report-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cmp-report-id-text { min-width: 0; }
.cmp-report-name { display: block; font-size: 19px; font-weight: 800; color: var(--text-light); }
.cmp-report-self { font-size: 11px; font-weight: 700; color: var(--bg-dark); background: var(--primary); padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.cmp-report-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; }
.cmp-plat-badge { font-size: 11px; font-weight: 700; color: var(--pc, var(--primary)); border: 1px solid color-mix(in srgb, var(--pc, var(--primary)) 45%, transparent); padding: 2px 9px; border-radius: 999px; }
.cmp-report-fb { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 3px; }
.cmp-report-fb .material-symbols-outlined { font-size: 15px; }

.cmp-report-scroll { overflow-y: auto; padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 22px; }

/* Ô số đầu trang */
.cmp-rstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cmp-rstat { background: var(--bg-dark); border: 1px solid var(--white-08); border-radius: var(--glass-radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cmp-rstat-val { font-size: 24px; font-weight: 800; color: var(--primary-lighter); line-height: 1.1; }
.cmp-rstat-lbl { font-size: 12px; color: var(--text-muted); }
.cmp-rstat-sub { font-size: 11px; color: var(--secondary-text); font-weight: 700; }

/* Section */
.cmp-rsec { display: flex; flex-direction: column; gap: 12px; }
.cmp-rsec-head { display: flex; align-items: center; gap: 8px; }
.cmp-rsec-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-light); }
.cmp-rsec-head .material-symbols-outlined { font-size: 19px; color: var(--primary); }
.cmp-rempty, .cmp-chart-empty { background: var(--bg-dark); border: 1px dashed var(--white-12); border-radius: var(--glass-radius-sm); padding: 18px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* Bài đăng gần nhất */
.cmp-rpost-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cmp-rpost { display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.cmp-rpost-media { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-dark); border: 1px solid var(--white-08); }
.cmp-rpost-img { width: 100%; height: 100%; object-fit: cover; }
.cmp-rpost-noimg .cmp-rpost-media::after, .cmp-rpost-media.cmp-rpost-noimg::after { content: 'image'; font-family: 'Material Symbols Outlined'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white-15); font-size: 30px; }
.cmp-rpost-kind { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; color: var(--text-light); background: rgba(0, 0, 0, 0.55); padding: 1px 7px; border-radius: 999px; }
.cmp-rpost-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--text-muted); }

/* QC đang chạy */
.cmp-rad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cmp-rad { display: flex; gap: 10px; background: var(--bg-dark); border: 1px solid var(--white-08); border-radius: var(--glass-radius-sm); padding: 10px; }
.cmp-rad-media { position: relative; flex: 0 0 84px; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--bg-surface); }
.cmp-rad-img { width: 100%; height: 100%; object-fit: cover; }
.cmp-rad-noimg::after { content: 'campaign'; font-family: 'Material Symbols Outlined'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white-15); font-size: 26px; }
.cmp-rad-days { position: absolute; bottom: 4px; left: 4px; font-size: 10px; font-weight: 700; color: var(--text-light); background: rgba(0, 0, 0, 0.6); padding: 1px 6px; border-radius: 999px; }
.cmp-rad-live { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3); }
.cmp-rad-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cmp-rad-cta { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--primary-lighter); background: var(--primary-alpha-15); padding: 2px 9px; border-radius: 999px; }
.cmp-rad-angle { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-rad-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* Biểu đồ */
.cmp-rtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-mtab { padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700; background: var(--white-05); border: 1px solid var(--white-08); color: var(--text-muted); transition: all .15s ease; }
.cmp-mtab.is-active { background: var(--primary-alpha-20); border-color: var(--primary-alpha-30); color: var(--primary-lighter); }
.cmp-rchart-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-rchart, .cmp-rdonut-box { background: var(--bg-dark); border: 1px solid var(--white-08); border-radius: var(--glass-radius-sm); padding: 14px; }
.cmp-rchart-cap { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.cmp-chart-svg { display: block; }

/* Donut */
.cmp-rdonut-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmp-donut { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cmp-donut-svg { width: 120px; height: 120px; }
.cmp-donut-legend { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.cmp-donut-leg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.cmp-donut-leg i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.cmp-donut-leg b { margin-left: auto; color: var(--text-light); }

/* Tổng & trung bình */
.cmp-rta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-rta-box { background: var(--bg-dark); border: 1px solid var(--white-08); border-radius: var(--glass-radius-sm); padding: 14px 16px; }
.cmp-rta-title { font-size: 13px; font-weight: 700; color: var(--text-light); margin-bottom: 10px; }
.cmp-rta-row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--white-05); font-size: 13px; color: var(--text-muted); }
.cmp-rta-row:first-of-type { border-top: 0; }
.cmp-rta-row b { color: var(--primary-lighter); font-weight: 800; }

/* AI 13 mục accordion */
.cmp-ai-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.cmp-ai-acc { display: flex; flex-direction: column; gap: 8px; }
.cmp-ai-item { background: var(--bg-dark); border: 1px solid var(--white-08); border-radius: var(--glass-radius-sm); overflow: hidden; }
.cmp-ai-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer; background: none; border: 0; text-align: left; color: var(--text-light); }
.cmp-ai-num { font-size: 12px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.cmp-ai-label { font-size: 14px; font-weight: 700; flex: 1; }
.cmp-ai-chevron { font-size: 20px; color: var(--text-muted); transition: transform .2s ease; }
.cmp-ai-open .cmp-ai-chevron { transform: rotate(180deg); }
.cmp-ai-content { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.cmp-ai-open .cmp-ai-content { max-height: 1200px; }
.cmp-ai-content p { margin: 0; padding: 0 15px 15px 41px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.cmp-ai-empty { text-align: center; padding: 26px; color: var(--text-dim); background: var(--bg-dark); border: 1px dashed var(--white-12); border-radius: var(--glass-radius-sm); }
.cmp-ai-empty .material-symbols-outlined { font-size: 34px; color: var(--primary-alpha-30); }
.cmp-ai-empty p { margin: 8px 0 0; font-size: 14px; }
.cmp-ai-empty-sub { font-size: 12px !important; color: var(--text-dim); }
.cmp-ai-empty code { background: var(--white-08); padding: 1px 6px; border-radius: 5px; font-size: 11px; }

/* Responsive */
@media (max-width: 900px) {
    .cmp-rchart-2col, .cmp-rdonut-3col, .cmp-rta-grid { grid-template-columns: 1fr; }
    .cmp-rpost-grid { grid-template-columns: repeat(4, 1fr); }
    .cmp-rad-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cmp-report-overlay { padding: 0; }
    .cmp-report-modal { max-height: 100vh; height: 100%; border-radius: 0; }
    .cmp-rstats { grid-template-columns: repeat(2, 1fr); }
    .cmp-rpost-grid { grid-template-columns: repeat(3, 1fr); }
    .cmp-rad-grid { grid-template-columns: 1fr; }
    .cmp-detail-head-actions .cmp-report-open span:not(.material-symbols-outlined) { display: none; }
}

/* =====================================================================
   GẠO NÂU DATA — color-only palette demo
   ===================================================================== */
.gn-color-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gn-color-header {
    margin-bottom: 2px;
}

.gn-color-subtitle {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.gn-color-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 16px 18px;
}

.gn-color-note strong {
    color: var(--primary-lighter);
}

.gn-color-note span {
    color: var(--text-muted);
}

.gn-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gn-color-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.gn-color-swatch {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--swatch);
    border: 1px solid rgba(45, 43, 40, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.gn-color-card h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.gn-color-card p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.gn-color-card code {
    grid-column: 2;
    justify-self: start;
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 560px) {
    .gn-color-grid {
        grid-template-columns: 1fr;
    }

    .gn-color-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .gn-color-swatch {
        width: 48px;
        height: 48px;
    }
}

/* App-wide Gạo Nâu Data color tokens: color-only, no layout changes. */
html[data-gn-color-demo] {
    --bg-page: #ebe6dc;
    --bg-surface: #f8f5ee;
    --bg-surface-alpha: rgba(248, 245, 238, 0.88);
    --bg-dark: #e3dbcf;
    --bg-card: #f8f5ee;
    --surface-card: #f8f5ee;
    --text-light: #2d2b28;
    --text-muted: #575149;
    --text-dim: #575149;
    --primary: #bd9b58;
    --primary-hover: #a98744;
    --primary-lighter: #5d4314;
    --accent: #bd9b58;
    --primary-alpha-20: rgba(189, 155, 88, 0.2);
    --primary-alpha-15: rgba(189, 155, 88, 0.15);
    --primary-alpha-08: rgba(189, 155, 88, 0.08);
    --primary-alpha-30: rgba(189, 155, 88, 0.3);
    --primary-glow: 0 0 15px rgba(189, 155, 88, 0.25);
    --secondary: #cce4d2;
    --secondary-text: #267a36;
    --secondary-alpha: rgba(204, 228, 210, 0.55);
    --glass-bg: rgba(248, 245, 238, 0.88);
    --glass-border: rgba(207, 190, 157, 0.88);
    --glass-shadow: 0 18px 45px rgba(79, 64, 35, 0.1);
    --glass-hover: rgba(241, 236, 226, 0.96);
    --gn-card-tint: #f8f5ee;
    --gn-card-border: #d5c4a4;
    --gn-card-stone: #e4ded5;
    --gn-card-sand: #eee7d2;
    --gn-card-rose: #efdbe1;
    --gn-card-lavender: #f2f0fa;
    --gn-card-mint: #dfeee4;
    --gn-card-cream: #f8f5ee;
    --kol-color: #bd9b58;
    --model-color: #d7adbb;
    --koc-color: #267a36;
    --vote-color: #d72c1f;
}

html[data-gn-color-demo],
html[data-gn-color-demo] body {
    background-color: #ebe6dc;
}

html[data-gn-color-demo] body {
    background: linear-gradient(180deg, #ebe6dc 0%, #f4efe6 54%, #e3dbcf 100%);
}

html[data-gn-color-demo] body::before {
    opacity: 0.28;
}

/* Color accessibility overrides: color-only, no layout changes. */
html[data-gn-color-demo] .header-avatar,
html[data-gn-color-demo] .brand-switch-btn,
html[data-gn-color-demo] .brand-switch-icon,
html[data-gn-color-demo] .brand-switch-label,
html[data-gn-color-demo] .brand-switch-btn .material-symbols-outlined,
html[data-gn-color-demo] .page-title .material-symbols-outlined,
html[data-gn-color-demo] .gn-color-note strong {
    color: #5d4314;
}

html[data-gn-color-demo] .brand-switch-btn {
    background: #eee7d9;
    border-color: #5d4314;
}

html[data-gn-color-demo] .gn-color-card code,
html[data-gn-color-demo] .app-footer,
html[data-gn-color-demo] .footer-version {
    color: #575149;
}

html[data-gn-color-demo] .compare-bar {
    background: #f8f5ee;
    border-color: #cfbe9d;
    box-shadow: 0 10px 28px rgba(79, 64, 35, 0.14);
}

html[data-gn-color-demo] .compare-bar-text {
    color: #2d2b28;
}

html[data-gn-color-demo] .compare-bar-text strong,
html[data-gn-color-demo] .compare-bar-clear,
html[data-gn-color-demo] .compare-bar-clear .material-symbols-outlined {
    color: #5d4314;
}

html[data-gn-color-demo] .compare-bar-btn {
    background: #bd9b58;
    color: #2d2b28;
}

/* App-wide contrast pass for page-specific components. Color-only: keep layout intact. */
html[data-gn-color-demo] .page-container,
html[data-gn-color-demo] .hero-section,
html[data-gn-color-demo] .three-pane,
html[data-gn-color-demo] .preview-panel {
    color: #2d2b28;
}

html[data-gn-color-demo] .page-container :where(.glass-panel, [class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-chip"], [class*="-tab"], [class*="-pill"], [class*="-badge"], [class*="-empty"], [class*="-hero"], [class*="-summary"], [class*="-metric"], [class*="-filter"], [class*="-item"], .cal-cell, .cal-header-cell) {
    background: var(--gn-card-tint, #f8f5ee) !important;
    border-color: var(--gn-card-border, #d5c4a4) !important;
    box-shadow: none;
}

html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where([class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-chip"], [class*="-tab"], [class*="-pill"], [class*="-badge"], [class*="-empty"], [class*="-hero"], [class*="-summary"], [class*="-metric"], [class*="-filter"], [class*="-item"], .filters-search) {
    background: var(--gn-card-tint, #f8f5ee) !important;
    border-color: var(--gn-card-border, #d5c4a4) !important;
    box-shadow: none;
}

html[data-gn-color-demo] .page-container :where(.glass-panel, [class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"], .cal-cell):nth-of-type(6n+1),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where([class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"]):nth-of-type(6n+1) {
    --gn-card-tint: var(--gn-card-stone);
    --gn-card-border: #bba987;
}

html[data-gn-color-demo] .page-container :where(.glass-panel, [class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"], .cal-cell):nth-of-type(6n+2),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where([class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"]):nth-of-type(6n+2) {
    --gn-card-tint: var(--gn-card-sand);
    --gn-card-border: #cbb77e;
}

html[data-gn-color-demo] .page-container :where(.glass-panel, [class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"], .cal-cell):nth-of-type(6n+3),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where([class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"]):nth-of-type(6n+3) {
    --gn-card-tint: var(--gn-card-rose);
    --gn-card-border: #be929d;
}

html[data-gn-color-demo] .page-container :where(.glass-panel, [class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"], .cal-cell):nth-of-type(6n+4),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where([class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"]):nth-of-type(6n+4) {
    --gn-card-tint: var(--gn-card-lavender);
    --gn-card-border: #c7c1db;
}

html[data-gn-color-demo] .page-container :where(.glass-panel, [class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"], .cal-cell):nth-of-type(6n+5),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where([class*="-card"], [class*="-panel"], [class*="-box"], [class*="-section"], [class*="-summary"], [class*="-metric"], [class*="-item"]):nth-of-type(6n+5) {
    --gn-card-tint: var(--gn-card-mint);
    --gn-card-border: #a6c6ad;
}

html[data-gn-color-demo] :where(
    .hero-title,
    .stat-value,
    .page-title,
    .preview-stat-value,
    .kol-card-value,
    .finance-title,
    .rnd-title,
    .cmp-stat-value,
    .ct-report-stat-value
) {
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .hero-subtitle,
    .stat-label,
    .preview-stat-label,
    .kol-card-label,
    .finance-subtitle,
    .finance-section-kicker,
    .rnd-subtitle-header,
    .rnd-sidebar-card-subtitle,
    .rnd-sidebar-card-category,
    .cmp-stat-label,
    .ct-report-stat-label,
    .empty-hint
) {
    color: #575149 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .page-container :where(
    h1, h2, h3, h4, h5, h6,
    p, span, small, label, button, a, div, td, th, li, strong, em, code
):not(.gn-color-swatch):not(.rnd-palette-swatch):not(.cal-legend-dot):not(.cal-event-dot) {
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where(
    h1, h2, h3, h4, h5, h6,
    p, span, small, label, button, a, div, td, th, li, strong, em, code
) {
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .page-container :where(
    p, small, label,
    .empty-hint,
    .stat-label,
    .kol-card-label,
    .finance-subtitle,
    .rnd-sidebar-card-subtitle,
    .rnd-sidebar-card-category,
    .cmp-stat-label,
    .ct-report-stat-label
) {
    color: #575149 !important;
}

html[data-gn-color-demo] :where(.cmp-pagination, .cmp-pagination-single, .cmp-page-actions, .cmp-page-current, .cmp-page-range) {
    background: #f8f5ee !important;
    border-color: #d5c4a4 !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .cmp-page-actions button {
    background: #f8f5ee !important;
    border-color: #d5c4a4 !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .finance-page .fin-prof-table-wrap,
    .finance-page .fin-prof-table,
    .finance-page .fin-prof-table thead,
    .finance-page .fin-prof-table tbody,
    .finance-page .fin-prof-row,
    .finance-page .fin-prof-name,
    .finance-page .fin-prof-num,
    .finance-page .fin-prof-last,
    .finance-page .fin-prof-th
) {
    background: var(--gn-card-tint, #f8f5ee) !important;
    border-color: var(--gn-card-border, #d5c4a4) !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(6n+1) {
    --gn-card-tint: #d2ccc2;
    --gn-card-border: #bba987;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(6n+2) {
    --gn-card-tint: #e6dfc8;
    --gn-card-border: #cbb77e;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(6n+3) {
    --gn-card-tint: #d9b5bf;
    --gn-card-border: #be929d;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(6n+4) {
    --gn-card-tint: #f0eef8;
    --gn-card-border: #c7c1db;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(6n+5) {
    --gn-card-tint: #cce4d2;
    --gn-card-border: #a6c6ad;
}

html[data-gn-color-demo] :where(
    .page-container,
    .hero-section,
    .three-pane,
    .preview-panel
) .material-symbols-outlined,
html[data-gn-color-demo] :where(.gn-help, .ct-sparkline, .cmp-overline, .brand-filter-chip.active, .status-filter-chip.active) {
    color: #5d4314 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .btn-primary-pill,
    .auth-submit-btn,
    .compare-bar-btn,
    .rnd-export-btn,
    .grid-page-btn.active
) {
    background: #bd9b58 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] .page-container :where(input, select, textarea),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where(input, select, textarea) {
    background: #f8f5ee !important;
    border-color: #d5c4a4 !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .page-container :where(option, optgroup),
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where(option, optgroup) {
    background: #f8f5ee !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] .page-container :where(input, select, textarea):focus,
html[data-gn-color-demo] :where(.three-pane, .hero-section, .preview-panel) :where(input, select, textarea):focus {
    border-color: #5d4314 !important;
    box-shadow: 0 0 0 3px rgba(189, 155, 88, 0.18) !important;
}

html[data-gn-color-demo] :where(
    .finance-period,
    .finance-page thead,
    .finance-page th,
    .finance-page .fin-prof-card,
    .finance-page .fin-total-row td,
    .ct-report-stat,
    .cmp-vs-brand,
    .cmp-vs-brandhead,
    .cmp-vs-brandicon,
    .cmp-vs-row,
    .cmp-vs-colhead,
    .cmp-vs-self,
    .cmp-vs-delta,
    .cmp-vs-badge,
    .rnd-image-placeholder,
    .rnd-image-content,
    .rnd-prop-tag,
    .rnd-notes-label,
    .rnd-palette-hex
) {
    background: var(--gn-card-tint, #f8f5ee) !important;
    border-color: var(--gn-card-border, #d5c4a4) !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .filter-section-label,
    .filter-panel-title,
    .filter-chip,
    .filter-chip:hover,
    .filter-chip.active,
    .ct-report-stat-value,
    .ct-report-stat-label,
    .cmp-vs-name,
    .cmp-vs-num,
    .rnd-image-label,
    .rnd-image-hint,
    .rnd-prop-tag,
    .rnd-notes-label
) {
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .talent-table-wrap,
    .talent-table,
    .talent-table thead,
    .talent-table tbody,
    .talent-table tbody tr,
    .talent-table td,
    .talent-table th,
    .td-bf,
    .badge,
    .cmp-card,
    .cmp-row,
    .cmp-row-identity,
    .cmp-row-metrics,
    .cmp-row-metric,
    .cmp-row-actions,
    .cmp-toggle,
    .cmp-filterbar,
    .cmp-search,
    .cmp-search input,
    .cmp-segments,
    .cmp-segments button,
    .cmp-soc,
    .cmp-soc-num,
    .cmp-avatar,
    .cmp-avatar-sm,
    .cmp-card-stats,
    .cmp-stat,
    .cmp-group,
    .cmp-group-head,
    .cmp-member,
    .cmp-detail,
    .cmp-ad,
    .cmp-ad-info,
    .cmp-ad-meta,
    .cmp-ad-days,
    .cmp-ad-status,
    .cmp-ad-crawled,
    .cmp-ad-angle,
    .cmp-ad-tag,
    .cmp-ad-foot,
    .cmp-ad-cta,
    .cmp-ad-page-btn,
    .cmp-post,
    .cmp-post-head,
    .cmp-post-meta-badges,
    .cmp-post-platform-badge,
    .cmp-post-kind,
    .cmp-post-engage,
    .cmp-post-metrics,
    .cmp-post-metrics > span,
    .cmp-post-link,
    .cmp-post-crawled
) {
    background: var(--gn-card-tint, #f8f5ee) !important;
    border-color: var(--gn-card-border, #d5c4a4) !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+1),
html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+1) {
    --gn-card-tint: #d2ccc2;
    --gn-card-border: #bba987;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+2),
html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+2) {
    --gn-card-tint: #e6dfc8;
    --gn-card-border: #cbb77e;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+3),
html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+3) {
    --gn-card-tint: #d9b5bf;
    --gn-card-border: #be929d;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+4),
html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+4) {
    --gn-card-tint: #f0eef8;
    --gn-card-border: #c7c1db;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+5),
html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+5) {
    --gn-card-tint: #cce4d2;
    --gn-card-border: #a6c6ad;
}

html[data-gn-color-demo] :where(
    .talent-table-wrap,
    .talent-table,
    .talent-table thead,
    .talent-table tbody,
    .talent-table tbody tr,
    .talent-table td,
    .talent-table th
) {
    background: #f8f5ee !important;
    border-color: #d5c4a4 !important;
    color: #2d2b28 !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(even),
html[data-gn-color-demo] .talent-table tbody tr:nth-child(even) td {
    background: #f1eee6 !important;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(odd),
html[data-gn-color-demo] .talent-table tbody tr:nth-child(odd) td {
    background: #f8f5ee !important;
}

html[data-gn-color-demo] :where(
    .talent-table,
    .talent-table td,
    .talent-table th,
    .td-name-text,
    .td-id,
    .td-region,
    .td-cost,
    .td-bf,
    .td-bf b,
    .badge,
    .cmp-card-name,
    .cmp-card-niche,
    .cmp-row-updated,
    .cmp-card-link,
    .cmp-row-metric strong,
    .cmp-row-metric span,
    .cmp-soc-num,
    .cmp-toggle,
    .cmp-filterbar,
    .cmp-search,
    .cmp-search input,
    .cmp-segments button,
    .cmp-ad,
    .cmp-ad-days,
    .cmp-ad-days .material-symbols-outlined,
    .cmp-ad-status,
    .cmp-ad-crawled,
    .cmp-ad-body,
    .cmp-ad-angle,
    .cmp-ad-angle-text,
    .cmp-ad-angle-text .material-symbols-outlined,
    .cmp-ad-tag,
    .cmp-ad-cta,
    .cmp-ad-page-btn,
    .cmp-post,
    .cmp-post-head,
    .cmp-post-platform-badge,
    .cmp-post-kind,
    .cmp-post-engage,
    .cmp-post-engage .material-symbols-outlined,
    .cmp-post-text,
    .cmp-post-metrics,
    .cmp-post-metrics > span,
    .cmp-post-metrics .material-symbols-outlined,
    .cmp-post-link,
    .cmp-post-link .material-symbols-outlined,
    .cmp-post-crawled,
    .cmp-detail
) {
    color: #2d2b28 !important;
}

/* Gạo Nâu Data cleanup pass: keep color on main cards, remove noise from inner UI. */
html[data-gn-color-demo] :where(
    .app-side-nav,
    .app-header,
    .app-bottom-nav
) {
    background: rgba(248, 245, 238, 0.92) !important;
    border-color: #d8c7a7 !important;
    box-shadow: 0 10px 28px rgba(79, 64, 35, 0.08) !important;
}

html[data-gn-color-demo] .page-container :where(
    .glass-panel,
    .finance-card,
    .calendar-panel,
    .contract-card,
    .hot-score-card,
    .hot-score-config-panel,
    .kol-tracker-card,
    .rnd-panel,
    .ct-card,
    .trend-video-card,
    .trend-creator-row,
    .profit-card,
    .metric-card,
    .cmp-card,
    .cmp-row,
    .cmp-ad,
    .cmp-post,
    .cmp-member,
    .gn-color-card
) {
    border-color: #d8c7a7 !important;
    box-shadow: 0 14px 34px rgba(79, 64, 35, 0.08) !important;
}

html[data-gn-color-demo] .page-container :where(
    .filters-bar,
    .filter-panel,
    .filter-section,
    .filter-group,
    .cmp-filterbar,
    .cmp-search,
    .cmp-segments,
    .cmp-pagination,
    .cmp-pagination-single,
    .cmp-page-actions,
    .talent-table-wrap,
    .talent-table,
    .finance-page .fin-prof-table-wrap,
    .finance-page .fin-prof-table,
    .fin-tabs,
    .fin-tab-nav,
    .cal-nav,
    .cal-grid,
    .cal-header-row
) {
    background: #f8f5ee !important;
    border-color: #d8c7a7 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .page-container :where(
    [class*="-card-"],
    [class*="-row-"],
    [class*="-post-"],
    [class*="-ad-"],
    [class*="-metric-"],
    [class*="-stat-"],
    [class*="-meta"],
    [class*="-body"],
    [class*="-foot"],
    [class*="-head"],
    [class*="-identity"],
    [class*="-actions"],
    .td-badges,
    .preview-portrait-badges,
    .modal-badges,
    .tlist-member-badges,
    .cmp-post-meta-badges,
    .sp-card-name,
    .sp-card-role,
    .sp-card-meta,
    .sp-card-contact,
    .sp-contact
) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .page-container :where(
    .filter-chip,
    .brand-filter-chip,
    .status-filter-chip,
    .badge,
    .sp-badge,
    .sp-active-badge,
    .camp-brand-badge,
    .camp-done-badge,
    .bk-status-badge,
    .bk-type-badge,
    .bk-contract-badge,
    .bkd-type-badge,
    .bkd-hot-badge,
    .customer-badge,
    .finance-card-badge,
    .finance-rule-badge,
    .fin-prof-badge,
    .hot-rank-badge,
    .hot-tier-badge,
    .trend-tier-badge,
    .trend-tag-chip,
    .ct-badge-new,
    .ct-score-badge,
    .kol-type-badge,
    .kol-platform-badge,
    .cmp-vs-badge,
    .cmp-ad-status,
    .cmp-ad-crawled,
    .cmp-ad-days,
    .cmp-ad-tag,
    .cmp-post-platform-badge,
    .cmp-post-kind,
    .cmp-post-engage,
    .cmp-post-metrics > span,
    .cmp-plat-badge,
    .seo-status-pill,
    .seo-badge-self
) {
    background: #eee7d9 !important;
    border: 1px solid #d5c4a4 !important;
    color: #5d4314 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .page-container :where(
    .filter-chip.active,
    .brand-filter-chip.active,
    .status-filter-chip.active,
    .fin-tab-btn.active,
    .fin-view-btn.active,
    .cmp-segments button.active,
    .grid-page-btn.active
),
html[data-gn-color-demo] :where(
    .side-nav-link.active,
    .header-nav-link.active,
    .bottom-nav-link.active
) {
    background: #bd9b58 !important;
    border-color: #a98744 !important;
    color: #2d2b28 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .bottom-nav-link,
    .side-nav-link,
    .header-nav-link,
    .view-toggle-btn,
    .icon-btn,
    .filter-toggle-btn,
    .cal-nav-btn,
    .cmp-page-actions button
) {
    background: #f8f5ee !important;
    border-color: #d8c7a7 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] :where(
    .btn-primary-pill,
    .auth-submit-btn,
    .compare-bar-btn,
    .rnd-export-btn,
    .ct-btn-primary
) {
    background: #bd9b58 !important;
    border-color: #a98744 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr,
html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr td {
    --gn-card-tint: #f8f5ee;
    --gn-card-border: #d8c7a7;
    background: #f8f5ee !important;
}

html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(even),
html[data-gn-color-demo] .finance-page .fin-prof-table tbody tr:nth-child(even) td,
html[data-gn-color-demo] .talent-table tbody tr:nth-child(even),
html[data-gn-color-demo] .talent-table tbody tr:nth-child(even) td {
    background: #f1ece2 !important;
}

html[data-gn-color-demo] .page-container :where(.cal-cell, .cal-header-cell) {
    --gn-card-tint: #f8f5ee;
    --gn-card-border: #d8c7a7;
    background: #f8f5ee !important;
    border-color: #d8c7a7 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .page-container .cal-cell.cal-today {
    background: #eee7d9 !important;
    border-color: #bd9b58 !important;
}

html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+1) {
    --gn-card-tint: #e4ded5;
    --gn-card-border: #c7b99e;
}

html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+2) {
    --gn-card-tint: #eee7d2;
    --gn-card-border: #cdbd88;
}

html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+3) {
    --gn-card-tint: #efdbe1;
    --gn-card-border: #caa4ad;
}

html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+4) {
    --gn-card-tint: #f2f0fa;
    --gn-card-border: #cdc7df;
}

html[data-gn-color-demo] :where(.cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member):nth-of-type(6n+5) {
    --gn-card-tint: #dfeee4;
    --gn-card-border: #aecab5;
}

html[data-gn-color-demo] .page-container :where(input, select, textarea, .filters-search) {
    background: #fbf8f1 !important;
    border-color: #d8c7a7 !important;
}

html[data-gn-color-demo] .page-container :where(
    .hotscore-search-wrap,
    .kol-filter-search,
    .seo-op,
    .seo-mini-stat,
    .seo-geo-num,
    .rnd-mood-tag,
    .rnd-prop-tag,
    .rnd-pose-item,
    .rnd-tag-add
) {
    background: #f8f5ee !important;
    border-color: #d8c7a7 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] .page-container :where(
    .hotscore-search-wrap .material-symbols-outlined,
    .kol-filter-search .material-symbols-outlined,
    .rnd-tag-remove,
    .seo-op-tag
) {
    color: #5d4314 !important;
}

html[data-gn-color-demo] .page-container :where(
    .seo-op-high .seo-op-tag,
    .seo-op-med .seo-op-tag,
    .seo-op-low .seo-op-tag
) {
    background: #eee7d9 !important;
    border: 1px solid #d5c4a4 !important;
    color: #5d4314 !important;
}

html[data-gn-color-demo] .page-container :where(
    .customer-badge-returning,
    .finance-rule-badge.is-good,
    .fin-prof-badge-contract,
    .seo-status-good
) {
    background: #dfeee4 !important;
    border-color: #aecab5 !important;
    color: #267a36 !important;
}

html[data-gn-color-demo] .page-container :where(
    .customer-badge-new,
    .bk-status-cancelled,
    .bk-status-overdue,
    .fin-prof-badge-inactive,
    .fin-prof-badge-nocontract,
    .seo-status-bad
) {
    background: #f4d8d2 !important;
    border-color: #e2a8a1 !important;
    color: #9b261c !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .main-layout,
    html[data-gn-color-demo] .page-container {
        padding-bottom: 108px;
    }
}

/* Final GN color polish: remove square chip slabs and strengthen contrast. */
html[data-gn-color-demo] .page-container :where(
    .td-badges,
    .tlist-member-badges,
    .preview-portrait-badges,
    .modal-badges,
    .model-card-meta,
    .model-card-brands,
    .td-vote-wrap,
    .td-platforms,
    .filter-chips,
    .filter-chips-row,
    .filter-chips-metrics
) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .three-pane .filters-bar {
    background: rgba(247, 243, 235, 0.96) !important;
    border: 1px solid #cdbc9b !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(79, 64, 35, 0.1) !important;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

html[data-gn-color-demo] .three-pane .filter-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 0.8rem;
    align-items: stretch;
}

html[data-gn-color-demo] .three-pane .filter-core {
    gap: 0.55rem 0.65rem;
}

html[data-gn-color-demo] .three-pane :where(.filter-section, .filter-group) {
    background: rgba(255, 253, 247, 0.66) !important;
    border: 1px solid rgba(213, 196, 164, 0.72) !important;
    border-radius: 14px !important;
    padding: 0.52rem 0.62rem !important;
    gap: 0.38rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
}

html[data-gn-color-demo] .three-pane .filter-metrics-panel {
    background: rgba(241, 236, 226, 0.76) !important;
    border: 1px solid rgba(213, 196, 164, 0.76) !important;
    border-left: 0 !important;
    border-radius: 16px;
    padding: 0.58rem 0.68rem;
}

html[data-gn-color-demo] .three-pane .filter-metrics-grid {
    gap: 0.5rem 0.65rem;
}

html[data-gn-color-demo] .three-pane :where(.filter-section-label, .filter-panel-title, .filter-group-label) {
    background: transparent !important;
    border: 0 !important;
    color: #5d5246 !important;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    opacity: 1 !important;
}

html[data-gn-color-demo] .three-pane :where(.filter-chip, .sort-select) {
    min-height: 31px;
    padding: 0 0.74rem;
    border-radius: 999px !important;
    background: #fbf8f1 !important;
    border: 1px solid #c9b78f !important;
    color: #4c453d !important;
    box-shadow: none !important;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

html[data-gn-color-demo] .three-pane :where(.filter-chip:hover, .sort-select:hover) {
    background: #f1eadb !important;
    border-color: #b49351 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] .three-pane :where(.filter-chip.active, .tag-toggle-btn.active) {
    background: #bd9b58 !important;
    border-color: #9f7d38 !important;
    color: #2d2b28 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
}

html[data-gn-color-demo] .three-pane .tag-toggle-btn {
    border-style: dashed !important;
    background: #f8f5ee !important;
    color: #5d4314 !important;
}

html[data-gn-color-demo] .page-container :where(
    .badge,
    .brand-badge-mini,
    .preview-portrait-badge,
    .kol-type-badge,
    .bk-type-badge,
    .bkd-type-badge,
    .model-card-tag
) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 0.62rem !important;
    border-radius: 999px !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

html[data-gn-color-demo] .page-container :where(.badge-kol, .kol-type-badge, .model-card-tag) {
    background: #ead2dc !important;
    border-color: #c78ea5 !important;
    color: #3f2730 !important;
}

html[data-gn-color-demo] .page-container .badge-koc {
    background: #d9ecd8 !important;
    border-color: #9bc79d !important;
    color: #253c28 !important;
}

html[data-gn-color-demo] .page-container .badge-model {
    background: #e8e5f8 !important;
    border-color: #b9afe0 !important;
    color: #302b4f !important;
}

html[data-gn-color-demo] .page-container .badge-khách {
    background: #efe4ce !important;
    border-color: #c8a966 !important;
    color: #4a3716 !important;
}

html[data-gn-color-demo] .page-container .badge-available {
    background: #dfeee4 !important;
    border-color: #9bc79d !important;
    color: #267a36 !important;
}

html[data-gn-color-demo] .page-container .brand-badge-mini {
    min-height: 24px !important;
    padding: 0 0.5rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 0.62rem !important;
}

html[data-gn-color-demo] .page-container .brand-badge-gnca {
    background: #efe4ce !important;
    border-color: #c8a966 !important;
    color: #4a3716 !important;
}

html[data-gn-color-demo] .page-container .brand-badge-gnpf {
    background: #e8e5f8 !important;
    border-color: #b9afe0 !important;
    color: #302b4f !important;
}

html[data-gn-color-demo] .page-container .brand-badge-gnpm {
    background: #efe2d9 !important;
    border-color: #c8a08e !important;
    color: #513226 !important;
}

html[data-gn-color-demo] .page-container .brand-badge-gnt {
    background: #d9ecd8 !important;
    border-color: #9bc79d !important;
    color: #253c28 !important;
}

html[data-gn-color-demo] .page-container :where(.model-card-meta-item, .td-cost, .td-region) {
    background: #fbf8f1 !important;
    border: 1px solid #d5c4a4 !important;
    border-radius: 12px !important;
    color: #2d2b28 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .page-container .model-card-meta-item .material-symbols-outlined {
    color: #7b6129 !important;
}

html[data-gn-color-demo] .page-container :where(.model-card-line, .model-card-stats, .model-card-footer) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 980px) {
    html[data-gn-color-demo] .three-pane .filter-layout,
    html[data-gn-color-demo] .three-pane .filter-core,
    html[data-gn-color-demo] .three-pane .filter-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Talent workspace override outside .page-container scope. */
html[data-gn-color-demo] :where(
    .filter-chips,
    .filter-chips-row,
    .filter-chips-metrics,
    .td-badges,
    .td-platforms,
    .td-vote-wrap,
    .model-card-line,
    .model-card-stats,
    .model-card-footer,
    .model-card-meta,
    .model-card-brands
) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] :where(.filter-chip, .sort-select) {
    background: #fbf8f1 !important;
    border: 1px solid #c9b78f !important;
    color: #4c453d !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] :where(.filter-chip:hover, .sort-select:hover) {
    background: #f1eadb !important;
    border-color: #b49351 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] :where(.filter-chip.active, .tag-toggle-btn.active) {
    background: #bd9b58 !important;
    border-color: #9f7d38 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] :where(
    .badge,
    .brand-badge-mini,
    .preview-portrait-badge,
    .kol-type-badge,
    .bk-type-badge,
    .bkd-type-badge,
    .model-card-tag
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
}

html[data-gn-color-demo] :where(.badge-kol, .kol-type-badge, .model-card-tag) {
    background: #ead2dc !important;
    border-color: #c78ea5 !important;
    color: #3f2730 !important;
}

html[data-gn-color-demo] .badge-koc {
    background: #d9ecd8 !important;
    border-color: #9bc79d !important;
    color: #253c28 !important;
}

html[data-gn-color-demo] .badge-model {
    background: #e8e5f8 !important;
    border-color: #b9afe0 !important;
    color: #302b4f !important;
}

html[data-gn-color-demo] .badge-khách {
    background: #efe4ce !important;
    border-color: #c8a966 !important;
    color: #4a3716 !important;
}

html[data-gn-color-demo] .badge-available {
    background: #dfeee4 !important;
    border-color: #9bc79d !important;
    color: #267a36 !important;
}

html[data-gn-color-demo] .brand-badge-mini {
    min-height: 24px !important;
    padding: 0 0.5rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 0.62rem !important;
}

html[data-gn-color-demo] .brand-badge-gnca {
    background: #efe4ce !important;
    border-color: #c8a966 !important;
    color: #4a3716 !important;
}

html[data-gn-color-demo] .brand-badge-gnpf {
    background: #e8e5f8 !important;
    border-color: #b9afe0 !important;
    color: #302b4f !important;
}

html[data-gn-color-demo] .brand-badge-gnpm {
    background: #efe2d9 !important;
    border-color: #c8a08e !important;
    color: #513226 !important;
}

html[data-gn-color-demo] .brand-badge-gnt {
    background: #d9ecd8 !important;
    border-color: #9bc79d !important;
    color: #253c28 !important;
}

html[data-gn-color-demo] :where(.model-card-meta-item, .td-cost, .td-region) {
    background: #fbf8f1 !important;
    border: 1px solid #d5c4a4 !important;
    border-radius: 12px !important;
    color: #2d2b28 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .model-card-meta-item .material-symbols-outlined {
    color: #7b6129 !important;
}

html[data-gn-color-demo] :where(
    .model-card-photo,
    .model-card-img,
    .model-card-shade,
    .model-card-title,
    .model-card-name,
    .model-card-bio,
    .model-card-info,
    .model-card-hot,
    .model-card-metric,
    .model-card-views,
    .model-card-meta-text,
    .model-card-vote,
    .td-hot
) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .model-card-shade {
    background: linear-gradient(
        to top,
        rgba(238, 231, 210, 0.92) 0%,
        rgba(238, 231, 210, 0.74) 31%,
        rgba(238, 231, 210, 0.22) 63%,
        rgba(238, 231, 210, 0) 100%
    ) !important;
}

html[data-gn-color-demo] :where(.model-card-brandfit, .td-bf-wrap) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .td-bf {
    min-height: 24px;
    border-radius: 9px !important;
    color: #2d2b28 !important;
    font-weight: 800 !important;
}

html[data-gn-color-demo] .tdbf-high {
    background: #d9ecd8 !important;
    border-color: #8fbd91 !important;
    color: #1f5c29 !important;
}

html[data-gn-color-demo] .tdbf-good {
    background: #efe4ce !important;
    border-color: #c8a966 !important;
    color: #5d4314 !important;
}

html[data-gn-color-demo] .tdbf-mid {
    background: #e8e5f8 !important;
    border-color: #b9afe0 !important;
    color: #302b4f !important;
}

html[data-gn-color-demo] .tdbf-low,
html[data-gn-color-demo] .td-bf-empty {
    background: #efe2d9 !important;
    border-color: #c8a08e !important;
    color: #513226 !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .three-pane :where(.filter-section .filter-chips, .filter-group .filter-chips, .filter-chips-row) {
        flex-wrap: wrap !important;
        flex-shrink: 1 !important;
        margin: 0 !important;
        max-width: 100% !important;
        overflow-x: visible !important;
        padding: 0 !important;
    }

    html[data-gn-color-demo] .three-pane :where(.filter-section, .filter-group) {
        overflow: hidden;
    }
}

/* Liquid glass remix: add controlled color back into cells and panels. */
html[data-gn-color-demo] {
    --gn-glass-line: rgba(205, 188, 155, 0.72);
    --gn-glass-white: rgba(255, 255, 255, 0.58);
    --gn-glass-shadow: 0 24px 70px rgba(79, 64, 35, 0.16);
    --gn-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.66), inset 0 -1px 0 rgba(151, 126, 75, 0.08);
    --gn-cell-cream: rgba(255, 253, 247, 0.78);
    --gn-cell-stone: rgba(228, 222, 213, 0.66);
    --gn-cell-sand: rgba(239, 228, 206, 0.62);
    --gn-cell-rose: rgba(234, 210, 220, 0.58);
    --gn-cell-lavender: rgba(232, 229, 248, 0.6);
    --gn-cell-mint: rgba(217, 236, 216, 0.58);
    --gn-cell-blue: rgba(219, 233, 236, 0.54);
}

html[data-gn-color-demo] body {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 253, 247, 0.74), rgba(255, 253, 247, 0) 32%),
        radial-gradient(circle at 78% 12%, rgba(217, 236, 216, 0.34), rgba(217, 236, 216, 0) 30%),
        radial-gradient(circle at 68% 62%, rgba(234, 210, 220, 0.28), rgba(234, 210, 220, 0) 34%),
        linear-gradient(180deg, #ece6dc 0%, #f4efe7 48%, #e4ddd2 100%) !important;
}

html[data-gn-color-demo] :where(.hero-section, .filters-bar, .preview-panel, .talent-table-wrap, .sidebar, .side-nav-link, .brand-card) {
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.72), rgba(241, 236, 226, 0.52)) !important;
    border-color: var(--gn-glass-line) !important;
    box-shadow: var(--gn-glass-shadow), var(--gn-glass-inset) !important;
    backdrop-filter: blur(18px) saturate(1.14);
    -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

html[data-gn-color-demo] :where(.stat-card, .filter-section, .filter-group, .model-card, .preview-empty) {
    box-shadow: 0 16px 36px rgba(79, 64, 35, 0.08), var(--gn-glass-inset) !important;
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

html[data-gn-color-demo] .stat-card:nth-child(1) {
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.86), rgba(228, 222, 213, 0.72)) !important;
}

html[data-gn-color-demo] .stat-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(239, 228, 206, 0.82), rgba(255, 253, 247, 0.62)) !important;
}

html[data-gn-color-demo] .stat-card:nth-child(3) {
    background: linear-gradient(145deg, rgba(234, 210, 220, 0.76), rgba(255, 253, 247, 0.62)) !important;
}

html[data-gn-color-demo] .stat-card:nth-child(4) {
    background: linear-gradient(145deg, rgba(232, 229, 248, 0.8), rgba(255, 253, 247, 0.62)) !important;
}

html[data-gn-color-demo] .stat-card:nth-child(5) {
    background: linear-gradient(145deg, rgba(217, 236, 216, 0.78), rgba(255, 253, 247, 0.62)) !important;
}

html[data-gn-color-demo] .filter-section-type {
    background: linear-gradient(145deg, rgba(217, 236, 216, 0.56), rgba(255, 253, 247, 0.72)) !important;
    border-color: rgba(155, 199, 157, 0.72) !important;
}

html[data-gn-color-demo] .filter-section-region,
html[data-gn-color-demo] .filter-group-hot,
html[data-gn-color-demo] .filter-group-view {
    background: linear-gradient(145deg, rgba(239, 228, 206, 0.62), rgba(255, 253, 247, 0.72)) !important;
    border-color: rgba(200, 169, 102, 0.62) !important;
}

html[data-gn-color-demo] .filter-section-platform,
html[data-gn-color-demo] .filter-group-cost {
    background: linear-gradient(145deg, rgba(219, 233, 236, 0.58), rgba(255, 253, 247, 0.72)) !important;
    border-color: rgba(139, 177, 184, 0.55) !important;
}

html[data-gn-color-demo] .filter-section-tags,
html[data-gn-color-demo] .filter-group-vote {
    background: linear-gradient(145deg, rgba(232, 229, 248, 0.62), rgba(255, 253, 247, 0.72)) !important;
    border-color: rgba(185, 175, 224, 0.62) !important;
}

html[data-gn-color-demo] .filter-chip {
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.86), rgba(241, 236, 226, 0.64)) !important;
    border-color: rgba(184, 159, 111, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 7px 18px rgba(79, 64, 35, 0.06) !important;
}

html[data-gn-color-demo] .talent-table-wrap {
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.72), rgba(235, 230, 220, 0.54)) !important;
    border: 1px solid rgba(205, 188, 155, 0.82) !important;
    box-shadow: 0 30px 90px rgba(79, 64, 35, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html[data-gn-color-demo] .talent-table {
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
}

html[data-gn-color-demo] .talent-table thead,
html[data-gn-color-demo] .talent-table thead tr,
html[data-gn-color-demo] .talent-table thead th {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(239, 228, 206, 0.46)) !important;
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+1) {
    --gn-row-glass: rgba(255, 253, 247, 0.68);
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+2) {
    --gn-row-glass: rgba(239, 228, 206, 0.5);
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+3) {
    --gn-row-glass: rgba(234, 210, 220, 0.42);
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+4) {
    --gn-row-glass: rgba(232, 229, 248, 0.48);
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+5) {
    --gn-row-glass: rgba(217, 236, 216, 0.46);
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+6) {
    --gn-row-glass: rgba(219, 233, 236, 0.44);
}

html[data-gn-color-demo] .talent-table tbody tr,
html[data-gn-color-demo] .talent-table tbody tr:nth-child(even),
html[data-gn-color-demo] .talent-table tbody tr:nth-child(odd) {
    background: transparent !important;
}

html[data-gn-color-demo] .talent-table tbody td {
    background: var(--gn-row-glass, rgba(255, 253, 247, 0.66)) !important;
    border-bottom: 1px solid rgba(205, 188, 155, 0.55) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(10px) saturate(1.06);
    -webkit-backdrop-filter: blur(10px) saturate(1.06);
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 253, 247, 0.86), var(--gn-row-glass, rgba(255, 253, 247, 0.66))) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(2) {
    background: linear-gradient(135deg, rgba(217, 236, 216, 0.52), var(--gn-row-glass, rgba(255, 253, 247, 0.66))) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(3) {
    background: linear-gradient(135deg, rgba(239, 228, 206, 0.62), var(--gn-row-glass, rgba(255, 253, 247, 0.66))) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(4) {
    background: linear-gradient(135deg, rgba(219, 233, 236, 0.56), var(--gn-row-glass, rgba(255, 253, 247, 0.66))) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(5) {
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.74), rgba(239, 228, 206, 0.36)) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(6) {
    background: linear-gradient(135deg, rgba(239, 228, 206, 0.68), rgba(255, 253, 247, 0.58)) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(7) {
    background: linear-gradient(135deg, rgba(232, 229, 248, 0.68), rgba(255, 253, 247, 0.54)) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(8) {
    background: linear-gradient(135deg, rgba(239, 228, 206, 0.58), rgba(255, 253, 247, 0.62)) !important;
}

html[data-gn-color-demo] .talent-table tbody td:nth-child(9) {
    background: linear-gradient(135deg, rgba(234, 210, 220, 0.46), rgba(255, 253, 247, 0.66)) !important;
}

html[data-gn-color-demo] .talent-table tbody tr:hover td,
html[data-gn-color-demo] .talent-table tbody tr.active-row td {
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(217, 236, 216, 0.58)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 30px rgba(79, 64, 35, 0.1) !important;
}

html[data-gn-color-demo] :where(.hot-badge, .td-bf, .badge, .brand-badge-mini) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(79, 64, 35, 0.08) !important;
}

html[data-gn-color-demo] .model-card {
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.64), rgba(228, 222, 213, 0.62)) !important;
    border-color: rgba(205, 188, 155, 0.78) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+2) {
    background: linear-gradient(145deg, rgba(239, 228, 206, 0.64), rgba(255, 253, 247, 0.52)) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+3) {
    background: linear-gradient(145deg, rgba(234, 210, 220, 0.58), rgba(255, 253, 247, 0.5)) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+4) {
    background: linear-gradient(145deg, rgba(232, 229, 248, 0.62), rgba(255, 253, 247, 0.5)) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+5) {
    background: linear-gradient(145deg, rgba(217, 236, 216, 0.58), rgba(255, 253, 247, 0.5)) !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .talent-table tbody td,
    html[data-gn-color-demo] .talent-table tbody td:nth-child(n) {
        background: linear-gradient(135deg, rgba(255, 253, 247, 0.76), var(--gn-row-glass, rgba(239, 228, 206, 0.46))) !important;
        border: 1px solid rgba(205, 188, 155, 0.42) !important;
        border-radius: 14px;
    }

    html[data-gn-color-demo] .talent-table tbody td:nth-child(2),
    html[data-gn-color-demo] .talent-table tbody td:nth-child(7) {
        background: linear-gradient(135deg, rgba(232, 229, 248, 0.62), rgba(255, 253, 247, 0.64)) !important;
    }

    html[data-gn-color-demo] .talent-table tbody td:nth-child(3),
    html[data-gn-color-demo] .talent-table tbody td:nth-child(6) {
        background: linear-gradient(135deg, rgba(239, 228, 206, 0.64), rgba(255, 253, 247, 0.64)) !important;
    }

    html[data-gn-color-demo] .talent-table tbody td:nth-child(4),
    html[data-gn-color-demo] .talent-table tbody td:nth-child(8) {
        background: linear-gradient(135deg, rgba(217, 236, 216, 0.54), rgba(255, 253, 247, 0.64)) !important;
    }
}

/* Final table chroma pass: beat older zebra rules while preserving the table layout. */
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td {
    background: linear-gradient(135deg, var(--gn-row-glass, rgba(255, 253, 247, 0.68)), rgba(255, 253, 247, 0.58)) !important;
    border-bottom: 1px solid rgba(205, 188, 155, 0.52) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.52) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 253, 247, 0.9), var(--gn-row-glass, rgba(255, 253, 247, 0.68))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(2) {
    background: linear-gradient(135deg, rgba(217, 236, 216, 0.68), rgba(255, 253, 247, 0.58)) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(8) {
    background: linear-gradient(135deg, rgba(239, 228, 206, 0.74), rgba(255, 253, 247, 0.58)) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(4) {
    background: linear-gradient(135deg, rgba(219, 233, 236, 0.68), rgba(255, 253, 247, 0.58)) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(5) {
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.82), rgba(239, 228, 206, 0.48)) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(7) {
    background: linear-gradient(135deg, rgba(232, 229, 248, 0.78), rgba(255, 253, 247, 0.56)) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(9) {
    background: linear-gradient(135deg, rgba(234, 210, 220, 0.62), rgba(255, 253, 247, 0.62)) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr:hover > td,
html[data-gn-color-demo] .three-pane .talent-table tbody tr.active-row > td {
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(217, 236, 216, 0.66)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 30px rgba(79, 64, 35, 0.1) !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td,
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n) {
        background: linear-gradient(135deg, rgba(255, 253, 247, 0.78), var(--gn-row-glass, rgba(239, 228, 206, 0.5))) !important;
        border: 1px solid rgba(205, 188, 155, 0.48) !important;
        border-radius: 14px;
    }

    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(2),
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(7) {
        background: linear-gradient(135deg, rgba(232, 229, 248, 0.72), rgba(255, 253, 247, 0.66)) !important;
    }

    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(3),
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(6) {
        background: linear-gradient(135deg, rgba(239, 228, 206, 0.74), rgba(255, 253, 247, 0.66)) !important;
    }

    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(4),
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(8) {
        background: linear-gradient(135deg, rgba(217, 236, 216, 0.62), rgba(255, 253, 247, 0.66)) !important;
    }
}

/* v40 calm liquid glass pass: keep color cues, remove heavy column blocks. */
html[data-gn-color-demo] {
    --gn-liquid-page-top: #e5ded2;
    --gn-liquid-page-mid: #eee8dc;
    --gn-liquid-page-bottom: #dcd3c6;
    --gn-liquid-surface: rgba(250, 247, 240, 0.68);
    --gn-liquid-surface-strong: rgba(253, 250, 244, 0.78);
    --gn-liquid-border: rgba(174, 148, 96, 0.38);
    --gn-liquid-border-strong: rgba(174, 148, 96, 0.52);
    --gn-liquid-shadow: 0 18px 54px rgba(65, 50, 26, 0.12);
    --gn-liquid-inset: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    --gn-accent-cream: rgba(217, 197, 157, 0.42);
    --gn-accent-sand: rgba(198, 164, 92, 0.44);
    --gn-accent-mint: rgba(104, 163, 113, 0.42);
    --gn-accent-blue: rgba(106, 151, 164, 0.38);
    --gn-accent-lavender: rgba(151, 137, 205, 0.4);
    --gn-accent-rose: rgba(190, 119, 145, 0.4);
    --gn-accent-wash: rgba(255, 253, 247, 0.58);
}

html[data-gn-color-demo] body {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 253, 247, 0.52), rgba(255, 253, 247, 0) 31%),
        radial-gradient(circle at 82% 14%, rgba(217, 236, 216, 0.24), rgba(217, 236, 216, 0) 33%),
        radial-gradient(circle at 66% 70%, rgba(232, 229, 248, 0.2), rgba(232, 229, 248, 0) 34%),
        linear-gradient(180deg, var(--gn-liquid-page-top) 0%, var(--gn-liquid-page-mid) 48%, var(--gn-liquid-page-bottom) 100%) !important;
}

html[data-gn-color-demo] :where(.app-header, .app-side-nav, .bottom-nav, .three-pane, .page-container) {
    background-color: transparent !important;
}

html[data-gn-color-demo] :where(.hero-section, .filters-bar, .preview-panel, .talent-table-wrap, .sidebar, .side-nav-link, .brand-card) {
    background: linear-gradient(145deg, rgba(253, 250, 244, 0.74), rgba(231, 223, 210, 0.46)) !important;
    border-color: var(--gn-liquid-border) !important;
    box-shadow: var(--gn-liquid-shadow), var(--gn-liquid-inset) !important;
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

html[data-gn-color-demo] .side-nav-link {
    border-color: rgba(174, 148, 96, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

html[data-gn-color-demo] .side-nav-link.active {
    background: linear-gradient(135deg, rgba(253, 250, 244, 0.88), rgba(217, 197, 157, 0.34)) !important;
    border-color: rgba(157, 124, 55, 0.62) !important;
    box-shadow: 0 10px 24px rgba(65, 50, 26, 0.08), inset 4px 0 0 rgba(157, 124, 55, 0.76) !important;
}

html[data-gn-color-demo] :where(.filter-section, .filter-group, .stat-card, .model-card, .booking-card, .campaign-card, .cmp-card, .cmp-row, .cmp-ad, .cmp-post, .cmp-member, .cal-cell, .fin-prof-row) {
    border-color: rgba(174, 148, 96, 0.34) !important;
    box-shadow: 0 14px 34px rgba(65, 50, 26, 0.08), var(--gn-liquid-inset) !important;
}

html[data-gn-color-demo] .filter-section-type,
html[data-gn-color-demo] .stat-card:nth-child(5) {
    background: linear-gradient(145deg, rgba(217, 236, 216, 0.42), rgba(253, 250, 244, 0.72)) !important;
    border-color: rgba(104, 163, 113, 0.38) !important;
}

html[data-gn-color-demo] .filter-section-region,
html[data-gn-color-demo] .filter-group-hot,
html[data-gn-color-demo] .filter-group-view,
html[data-gn-color-demo] .stat-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(239, 228, 206, 0.48), rgba(253, 250, 244, 0.72)) !important;
    border-color: rgba(198, 164, 92, 0.42) !important;
}

html[data-gn-color-demo] .filter-section-platform,
html[data-gn-color-demo] .filter-group-cost {
    background: linear-gradient(145deg, rgba(219, 233, 236, 0.42), rgba(253, 250, 244, 0.72)) !important;
    border-color: rgba(106, 151, 164, 0.36) !important;
}

html[data-gn-color-demo] .filter-section-tags,
html[data-gn-color-demo] .filter-group-vote,
html[data-gn-color-demo] .stat-card:nth-child(4) {
    background: linear-gradient(145deg, rgba(232, 229, 248, 0.46), rgba(253, 250, 244, 0.72)) !important;
    border-color: rgba(151, 137, 205, 0.36) !important;
}

html[data-gn-color-demo] .stat-card:nth-child(3) {
    background: linear-gradient(145deg, rgba(234, 210, 220, 0.46), rgba(253, 250, 244, 0.72)) !important;
    border-color: rgba(190, 119, 145, 0.36) !important;
}

html[data-gn-color-demo] .talent-table-wrap {
    background: linear-gradient(145deg, rgba(253, 250, 244, 0.72), rgba(226, 218, 205, 0.42)) !important;
    border-color: rgba(174, 148, 96, 0.42) !important;
    box-shadow: 0 22px 66px rgba(65, 50, 26, 0.13), var(--gn-liquid-inset) !important;
}

html[data-gn-color-demo] .talent-table {
    border-spacing: 0 !important;
}

html[data-gn-color-demo] .talent-table thead,
html[data-gn-color-demo] .talent-table thead tr,
html[data-gn-color-demo] .talent-table thead th {
    background: linear-gradient(180deg, rgba(253, 250, 244, 0.82), rgba(232, 224, 211, 0.44)) !important;
    border-color: rgba(174, 148, 96, 0.34) !important;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+1) { --gn-row-tint: rgba(253, 250, 244, 0.7); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+2) { --gn-row-tint: rgba(239, 228, 206, 0.22); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+3) { --gn-row-tint: rgba(234, 210, 220, 0.18); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+4) { --gn-row-tint: rgba(232, 229, 248, 0.2); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+5) { --gn-row-tint: rgba(217, 236, 216, 0.2); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+6) { --gn-row-tint: rgba(219, 233, 236, 0.2); }

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td,
html[data-gn-color-demo] .talent-table tbody tr > td {
    --gn-cell-mark: rgba(217, 197, 157, 0.32);
    background:
        linear-gradient(90deg, var(--gn-cell-mark) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.68), var(--gn-row-tint, rgba(240, 232, 220, 0.36))) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(174, 148, 96, 0.28) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
    backdrop-filter: blur(8px) saturate(1.06);
    -webkit-backdrop-filter: blur(8px) saturate(1.06);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(1),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(1) {
    --gn-cell-mark: rgba(217, 197, 157, 0.28);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(2),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(2) {
    --gn-cell-mark: var(--gn-accent-mint);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(8),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(8) {
    --gn-cell-mark: var(--gn-accent-sand);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(4),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(4) {
    --gn-cell-mark: var(--gn-accent-blue);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(7),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(7) {
    --gn-cell-mark: var(--gn-accent-lavender);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(9),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(9) {
    --gn-cell-mark: var(--gn-accent-rose);
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr:hover > td,
html[data-gn-color-demo] .three-pane .talent-table tbody tr.active-row > td,
html[data-gn-color-demo] .talent-table tbody tr:hover > td,
html[data-gn-color-demo] .talent-table tbody tr.active-row > td {
    background:
        linear-gradient(90deg, rgba(157, 124, 55, 0.5) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(217, 236, 216, 0.24)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(65, 50, 26, 0.08) !important;
}

html[data-gn-color-demo] .talent-table tbody td.td-region,
html[data-gn-color-demo] .talent-table tbody td.td-cost {
    border-radius: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] :where(.td-badges, .td-platforms, .td-vote-wrap, .td-bf-wrap, .model-card-line, .model-card-stats, .model-card-footer, .model-card-meta, .model-card-brands) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] :where(.badge, .kol-type-badge, .model-card-tag, .brand-badge-mini, .td-bf, .hot-badge, .filter-chip) {
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 6px 14px rgba(65, 50, 26, 0.06) !important;
}

html[data-gn-color-demo] :where(.badge-kol, .kol-type-badge, .model-card-tag) {
    background: #ead2dc !important;
    border-color: #bf859c !important;
    color: #38232b !important;
}

html[data-gn-color-demo] .badge-koc {
    background: #d9ecd8 !important;
    border-color: #8fbe93 !important;
    color: #213924 !important;
}

html[data-gn-color-demo] .badge-model {
    background: #e8e5f8 !important;
    border-color: #aca2db !important;
    color: #2a264a !important;
}

html[data-gn-color-demo] .badge-khách {
    background: #efe4ce !important;
    border-color: #c8a966 !important;
    color: #443212 !important;
}

html[data-gn-color-demo] .model-card {
    background:
        linear-gradient(180deg, rgba(253, 250, 244, 0.08), rgba(35, 30, 23, 0.1)),
        linear-gradient(145deg, rgba(253, 250, 244, 0.72), rgba(226, 218, 205, 0.48)) !important;
    border-color: rgba(174, 148, 96, 0.4) !important;
    box-shadow: 0 16px 42px rgba(65, 50, 26, 0.11), var(--gn-liquid-inset) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+2) {
    background:
        linear-gradient(180deg, rgba(253, 250, 244, 0.06), rgba(35, 30, 23, 0.08)),
        linear-gradient(145deg, rgba(239, 228, 206, 0.54), rgba(253, 250, 244, 0.56)) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+3) {
    background:
        linear-gradient(180deg, rgba(253, 250, 244, 0.06), rgba(35, 30, 23, 0.08)),
        linear-gradient(145deg, rgba(234, 210, 220, 0.48), rgba(253, 250, 244, 0.56)) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+4) {
    background:
        linear-gradient(180deg, rgba(253, 250, 244, 0.06), rgba(35, 30, 23, 0.08)),
        linear-gradient(145deg, rgba(232, 229, 248, 0.5), rgba(253, 250, 244, 0.56)) !important;
}

html[data-gn-color-demo] .model-card:nth-of-type(6n+5) {
    background:
        linear-gradient(180deg, rgba(253, 250, 244, 0.06), rgba(35, 30, 23, 0.08)),
        linear-gradient(145deg, rgba(217, 236, 216, 0.48), rgba(253, 250, 244, 0.56)) !important;
}

html[data-gn-color-demo] .model-card-meta-item {
    background: rgba(253, 250, 244, 0.72) !important;
    border-color: rgba(174, 148, 96, 0.42) !important;
    color: #2d2b28 !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td,
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
    html[data-gn-color-demo] .talent-table tbody tr > td,
    html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
        background:
            linear-gradient(90deg, var(--gn-cell-mark, rgba(217, 197, 157, 0.34)) 0 5px, rgba(255, 255, 255, 0) 5px),
            linear-gradient(180deg, rgba(253, 250, 244, 0.78), var(--gn-row-tint, rgba(240, 232, 220, 0.36))) !important;
        border: 1px solid rgba(174, 148, 96, 0.3) !important;
        border-radius: 12px !important;
        box-shadow: var(--gn-liquid-inset) !important;
    }

    html[data-gn-color-demo] .talent-table tbody td.td-region,
    html[data-gn-color-demo] .talent-table tbody td.td-cost {
        border-radius: 12px !important;
    }
}

/* v41 table strict pass: override earlier nth-child fills with thin color rails. */
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(1),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(1) {
    background:
        linear-gradient(90deg, rgba(217, 197, 157, 0.28) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.72), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(2),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(2) {
    background:
        linear-gradient(90deg, var(--gn-accent-mint) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.7), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(8),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(8) {
    background:
        linear-gradient(90deg, var(--gn-accent-sand) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.7), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(4),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(4) {
    background:
        linear-gradient(90deg, var(--gn-accent-blue) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.7), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(5),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(5) {
    background:
        linear-gradient(90deg, rgba(217, 197, 157, 0.22) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.7), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(7),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(7) {
    background:
        linear-gradient(90deg, var(--gn-accent-lavender) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.7), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(9),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(9) {
    background:
        linear-gradient(90deg, var(--gn-accent-rose) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(253, 250, 244, 0.7), var(--gn-row-tint, rgba(240, 232, 220, 0.3))) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr:hover > td:nth-child(n),
html[data-gn-color-demo] .three-pane .talent-table tbody tr.active-row > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr:hover > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr.active-row > td:nth-child(n) {
    background:
        linear-gradient(90deg, rgba(157, 124, 55, 0.54) 0 6px, rgba(255, 255, 255, 0) 6px),
        linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(217, 236, 216, 0.18)) !important;
}

html[data-gn-color-demo] :where(.gn-help, .kol-preview-btn, .seo-btn-ghost) {
    background: #f7f0df !important;
    border-color: rgba(157, 124, 55, 0.62) !important;
    color: #2d2b28 !important;
}

html[data-gn-color-demo] :where(.gn-help:hover, .gn-help[aria-expanded="true"], .kol-preview-btn:hover, .seo-btn-ghost:hover) {
    background: #ead9b8 !important;
    border-color: rgba(135, 101, 37, 0.74) !important;
    color: #2d2b28 !important;
}

/* v44 table redesign: row cards, no vertical color rails. */
html[data-gn-color-demo] .talent-table-wrap {
    background: linear-gradient(145deg, rgba(253, 250, 244, 0.6), rgba(226, 218, 205, 0.3)) !important;
    border-color: rgba(174, 148, 96, 0.36) !important;
    box-shadow: 0 18px 52px rgba(65, 50, 26, 0.12), var(--gn-liquid-inset) !important;
}

html[data-gn-color-demo] .talent-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
}

html[data-gn-color-demo] .talent-table thead,
html[data-gn-color-demo] .talent-table thead tr,
html[data-gn-color-demo] .talent-table thead th {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .talent-table thead th {
    color: #5b5248 !important;
}

html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+1) { --gn-row-edge: rgba(189, 155, 88, 0.62); --gn-row-fill: rgba(253, 250, 244, 0.78); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+2) { --gn-row-edge: rgba(104, 163, 113, 0.58); --gn-row-fill: rgba(248, 250, 242, 0.78); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+3) { --gn-row-edge: rgba(190, 119, 145, 0.56); --gn-row-fill: rgba(252, 246, 245, 0.78); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+4) { --gn-row-edge: rgba(151, 137, 205, 0.56); --gn-row-fill: rgba(249, 248, 253, 0.78); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+5) { --gn-row-edge: rgba(106, 151, 164, 0.54); --gn-row-fill: rgba(246, 250, 250, 0.78); }
html[data-gn-color-demo] .talent-table tbody tr:nth-child(6n+6) { --gn-row-edge: rgba(198, 164, 92, 0.56); --gn-row-fill: rgba(252, 249, 240, 0.78); }

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.82), var(--gn-row-fill, rgba(253, 250, 244, 0.76))) !important;
    border: 0 !important;
    border-top: 1px solid rgba(174, 148, 96, 0.26) !important;
    border-bottom: 1px solid rgba(174, 148, 96, 0.28) !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:first-child,
html[data-gn-color-demo] .talent-table tbody tr > td:first-child {
    border-left: 5px solid var(--gn-row-edge, rgba(189, 155, 88, 0.62)) !important;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        -6px 0 18px rgba(65, 50, 26, 0.05) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:last-child,
html[data-gn-color-demo] .talent-table tbody tr > td:last-child {
    border-right: 1px solid rgba(174, 148, 96, 0.24) !important;
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr:hover > td:nth-child(n),
html[data-gn-color-demo] .three-pane .talent-table tbody tr.active-row > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr:hover > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr.active-row > td:nth-child(n) {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(245, 238, 224, 0.86)) !important;
    border-color: rgba(157, 124, 55, 0.38) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 26px rgba(65, 50, 26, 0.08) !important;
}

html[data-gn-color-demo] .talent-table tbody td.td-region,
html[data-gn-color-demo] .talent-table tbody td.td-cost {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.82), var(--gn-row-fill, rgba(253, 250, 244, 0.76))) !important;
    border-radius: 0 !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .talent-table {
        border-spacing: 0 8px !important;
    }

    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
    html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
        background: linear-gradient(180deg, rgba(255, 253, 247, 0.84), var(--gn-row-fill, rgba(253, 250, 244, 0.78))) !important;
        border: 1px solid rgba(174, 148, 96, 0.28) !important;
        border-left: 5px solid var(--gn-row-edge, rgba(189, 155, 88, 0.6)) !important;
        border-radius: 13px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}

/* v45 clarity pass: remove page-wide fog, keep glass crisp. */
html[data-gn-color-demo] :where(
    .glass-panel,
    .campaign-section,
    .booking-card,
    .campaign-form-container,
    .filter-section,
    .filter-group,
    .stat-card,
    .model-card,
    .cmp-card,
    .cmp-row,
    .cmp-ad,
    .cmp-post,
    .cmp-member,
    .cal-cell,
    .fin-prof-row,
    .talent-table-wrap,
    .preview-panel
) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-gn-color-demo] :where(
    .campaign-section,
    .booking-card,
    .filter-section,
    .filter-group,
    .stat-card,
    .model-card,
    .cmp-card,
    .cmp-row,
    .cmp-ad,
    .cmp-post,
    .cmp-member,
    .cal-cell
) {
    background-color: var(--gn-card-tint, rgba(253, 250, 244, 0.96)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 30px rgba(65, 50, 26, 0.08) !important;
}

html[data-gn-color-demo] .campaign-section {
    background:
        linear-gradient(145deg, rgba(248, 250, 242, 0.98), rgba(239, 247, 240, 0.9)) !important;
}

html[data-gn-color-demo] .booking-card:nth-of-type(6n+1) {
    background: linear-gradient(145deg, rgba(253, 250, 244, 0.98), rgba(244, 238, 226, 0.92)) !important;
}

html[data-gn-color-demo] .booking-card:nth-of-type(6n+2) {
    background: linear-gradient(145deg, rgba(252, 249, 240, 0.98), rgba(241, 233, 211, 0.92)) !important;
}

html[data-gn-color-demo] .booking-card:nth-of-type(6n+3) {
    background: linear-gradient(145deg, rgba(252, 246, 245, 0.98), rgba(242, 221, 229, 0.9)) !important;
}

html[data-gn-color-demo] .booking-card:nth-of-type(6n+4) {
    background: linear-gradient(145deg, rgba(249, 248, 253, 0.98), rgba(235, 232, 248, 0.9)) !important;
}

html[data-gn-color-demo] .booking-card:nth-of-type(6n+5) {
    background: linear-gradient(145deg, rgba(246, 250, 250, 0.98), rgba(224, 240, 232, 0.9)) !important;
}

html[data-gn-color-demo] .booking-card :where(.booking-card-name, .bk-info-compact, .booking-card-action, .bk-card-complete, .bk-card-care) {
    opacity: 1 !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:first-child,
html[data-gn-color-demo] .talent-table tbody tr > td:first-child {
    border-left: 2px dashed var(--gn-row-edge, rgba(157, 124, 55, 0.72)) !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
    html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
        border-left: 2px dashed var(--gn-row-edge, rgba(157, 124, 55, 0.72)) !important;
    }
}

/* v46 clarity sweep: large surfaces stay sharp across pages. */
html[data-gn-color-demo] :where(
    .app-header,
    .app-side-nav,
    .app-bottom-nav,
    .hero-section,
    .talent-table thead,
    .talent-table thead tr,
    .talent-table thead th,
    .talent-table tbody tr,
    .talent-table tbody td,
    .trend-creator-row,
    .kol-summary-card,
    .preview-empty
) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-gn-color-demo] :where(.app-header, .app-side-nav, .app-bottom-nav) {
    background: rgba(248, 245, 238, 0.98) !important;
    box-shadow: 0 10px 28px rgba(79, 64, 35, 0.06) !important;
}

html[data-gn-color-demo] .hero-section {
    background: rgba(248, 245, 238, 0.97) !important;
}

html[data-gn-color-demo] .talent-table thead th {
    background: rgba(248, 245, 238, 0.96) !important;
}

html[data-gn-color-demo] :where(.trend-creator-row, .kol-summary-card, .preview-empty) {
    background-color: rgba(253, 250, 244, 0.96) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 26px rgba(65, 50, 26, 0.07) !important;
}

/* v48 no-fade pass: remove washed overlays, keep brand colors crisp. */
html[data-gn-color-demo] {
    --bg-page: #f2eee6;
    --bg-surface: #fbf8f0;
    --bg-surface-alpha: #fbf8f0;
    --bg-dark: #ebe3d7;
    --bg-card: #fffdf7;
    --surface-card: #fffdf7;
    --text-light: #29251f;
    --text-muted: #4b4339;
    --text-dim: #5c5146;
    --glass-bg: #fbf8f0;
    --glass-border: rgba(186, 158, 105, 0.64);
    --glass-blur: none;
    --glass-highlight: none;
    --glass-shadow: 0 14px 34px rgba(79, 64, 35, 0.08);
    --gn-solid-surface: #fbf8f0;
    --gn-solid-warm: #f3ead8;
    --gn-solid-mint: #e6f2e7;
    --gn-solid-rose: #f2dde4;
    --gn-solid-lavender: #ece9fb;
    --gn-solid-blue: #e8f1f2;
    --gn-solid-border: #c8ad74;
    --gn-solid-border-soft: rgba(186, 158, 105, 0.48);
    --gn-solid-shadow: 0 12px 28px rgba(79, 64, 35, 0.08);
}

html[data-gn-color-demo],
html[data-gn-color-demo] body {
    background-color: #f2eee6 !important;
}

html[data-gn-color-demo] body {
    background: linear-gradient(180deg, #eee7dc 0%, #f6f1e8 52%, #e9dfd2 100%) !important;
    color: var(--text-light) !important;
}

html[data-gn-color-demo] body::before {
    opacity: 0 !important;
    background: none !important;
    mask-image: none !important;
}

html[data-gn-color-demo] :where(
    .glass-panel,
    .auth-card,
    .modal-container,
    .talent-table-wrap,
    .filters-bar,
    .preview-panel,
    .sidebar,
    .finance-card,
    .fin-tabs,
    .booking-card,
    .campaign-section,
    .campaign-card,
    .campaign-form-container,
    .filter-section,
    .filter-group,
    .stat-card,
    .model-card,
    .brand-card,
    .hero-section,
    .app-header,
    .app-side-nav,
    .app-bottom-nav,
    .bottom-nav,
    .side-nav-link,
    .bookings-empty,
    .contracts-empty,
    .finance-empty,
    .cal-cell,
    .cal-event,
    .kol-summary-card,
    .kol-ranking-card,
    .kol-ranking-table,
    .hot-trend-section,
    .hot-trend-card,
    .ct-potential,
    .ct-panel,
    .trend-section,
    .trend-card,
    .trend-video-card,
    .trend-creator-row,
    .trend-empty,
    .cmp-card,
    .cmp-row,
    .cmp-ad,
    .cmp-post,
    .cmp-member,
    .cmp-detail,
    .cmp-detail-panel,
    .cmp-report-modal,
    .cmp-social,
    .cmp-social-panel,
    .cmp-conclusion,
    .cmp-rsec,
    .cmp-rstat,
    .seo-header,
    .seo-brand,
    .seo-score-panel,
    .seo-mini-stat,
    .seo-info-card,
    .seo-goal-item,
    .seo-table-wrap,
    .seo-overview-item,
    .seo-soon,
    .seo-op,
    .seo-empty,
    .preview-empty
) {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--gn-solid-surface) !important;
    background-image: linear-gradient(145deg, #fffdf7, #f2eadf) !important;
    border-color: var(--gn-solid-border-soft) !important;
    box-shadow: var(--gn-solid-shadow) !important;
    color: var(--text-light) !important;
}

html[data-gn-color-demo] :where(
    .glass-panel,
    .auth-card,
    .modal-container,
    .booking-card,
    .finance-card,
    .campaign-section,
    .campaign-card,
    .cmp-card,
    .cmp-ad,
    .cmp-post,
    .seo-brand,
    .seo-score-panel,
    .trend-section,
    .trend-card,
    .kol-ranking-card
)::before,
html[data-gn-color-demo] :where(
    .glass-panel,
    .auth-card,
    .modal-container,
    .booking-card,
    .finance-card,
    .campaign-section,
    .campaign-card,
    .cmp-card,
    .cmp-ad,
    .cmp-post,
    .seo-brand,
    .seo-score-panel,
    .trend-section,
    .trend-card,
    .kol-ranking-card
)::after {
    opacity: 0 !important;
    background: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-gn-color-demo] :where(
    .page-container,
    .app-main,
    .three-pane,
    .hero-section,
    .glass-panel,
    .modal-container,
    .campaign-section,
    .booking-card,
    .talent-table,
    .trend-section,
    .cmp-detail,
    .seo-page,
    .calendar-page,
    .finance-page,
    .contracts-page
) :where(h1, h2, h3, h4, h5, h6, p, span, small, label, button, a, th, td, li, strong, em) {
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(
    .text-muted,
    .empty-hint,
    .empty-state-text,
    .section-subtitle,
    .campaign-meta,
    .bk-info-compact,
    .bk-progress-mini,
    .bkd-fb-note,
    .finance-subtitle,
    .fin-empty,
    .ct-note,
    .ct-empty,
    .trend-cs-desc,
    .trend-sub,
    .trend-cr-handle,
    .trend-cr-fol,
    .trend-tag-views,
    .trend-sound-chip,
    .kol-updated,
    .kol-ranking-meta,
    .hot-trend-note,
    .cmp-section-updated,
    .cmp-ad-crawled,
    .cmp-post-crawled,
    .cmp-ad-body,
    .cmp-post-text,
    .cmp-soc-empty,
    .cmp-soc-card-empty,
    .cmp-ai-content p,
    .seo-sub,
    .seo-brand-meta,
    .seo-info-copy,
    .seo-mini-stat small,
    .seo-mini-stat p,
    .seo-domain,
    .seo-empty-hint,
    .seo-op p,
    .seo-soon p,
    .seo-table thead th
) {
    color: var(--text-muted) !important;
    opacity: 1 !important;
    filter: none !important;
}

html[data-gn-color-demo] :where(
    .page-container,
    .hero-section,
    .glass-panel,
    .talent-table,
    .booking-card,
    .campaign-section,
    .trend-section,
    .cmp-detail,
    .seo-page
) :where(img, picture, video, canvas, svg) {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

html[data-gn-color-demo] :where(
    .avatar-img,
    .talent-avatar,
    .kol-avatar,
    .model-card-img,
    .booking-card-avatar-lg img,
    .bk-avatar-img,
    .cmp-avatar-img,
    .cmp-ad-img,
    .cmp-post-img,
    .cmp-portfolio-img,
    .cmp-rpost-img,
    .cmp-rad-img,
    .trend-vid-img,
    .trend-vid-thumb img,
    .seo-thumb
) {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

html[data-gn-color-demo] :where(
    [class^="cmp-"],
    [class*=" cmp-"],
    [class^="seo-"],
    [class*=" seo-"],
    [class^="trend-"],
    [class*=" trend-"],
    [class^="kol-"],
    [class*=" kol-"],
    [class^="ct-"],
    [class*=" ct-"],
    [class^="cal-"],
    [class*=" cal-"],
    [class^="booking-"],
    [class*=" booking-"],
    [class^="bk-"],
    [class*=" bk-"],
    [class^="bkd-"],
    [class*=" bkd-"]
) {
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] :where(.compare-bar, .model-card-select, .model-card-platforms) {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-gn-color-demo] :where(.model-card-select, .model-card-platforms) {
    background-color: #fbf8f0 !important;
    background-image: linear-gradient(145deg, #fffdf7, #f2eadf) !important;
    border-color: rgba(186, 158, 105, 0.48) !important;
}

html[data-gn-color-demo] :where(button:disabled, .is-disabled, [aria-disabled="true"]) {
    opacity: 1 !important;
    filter: none !important;
}

html[data-gn-color-demo] :where(.filter-section-type, .stat-card:nth-child(5), .booking-card:nth-of-type(6n+5), .model-card:nth-of-type(6n+5), .campaign-section, .ct-potential, .seo-goal-item) {
    background-image: linear-gradient(145deg, #edf7ee, #fbf8f0) !important;
    border-color: rgba(104, 163, 113, 0.48) !important;
}

html[data-gn-color-demo] :where(.filter-section-region, .filter-group-hot, .filter-group-view, .stat-card:nth-child(2), .booking-card:nth-of-type(6n+2), .model-card:nth-of-type(6n+2), .hot-trend-section, .cmp-conclusion, .seo-score-panel) {
    background-image: linear-gradient(145deg, #f5ecd9, #fff9ee) !important;
    border-color: rgba(198, 164, 92, 0.54) !important;
}

html[data-gn-color-demo] :where(.filter-section-platform, .filter-group-cost, .booking-card:nth-of-type(6n+6), .trend-section, .trend-card) {
    background-image: linear-gradient(145deg, #e9f3f4, #fbf8f0) !important;
    border-color: rgba(106, 151, 164, 0.48) !important;
}

html[data-gn-color-demo] :where(.filter-section-tags, .filter-group-vote, .stat-card:nth-child(4), .booking-card:nth-of-type(6n+4), .model-card:nth-of-type(6n+4), .kol-ranking-card) {
    background-image: linear-gradient(145deg, #eeeafb, #fffaf2) !important;
    border-color: rgba(151, 137, 205, 0.48) !important;
}

html[data-gn-color-demo] :where(.stat-card:nth-child(3), .booking-card:nth-of-type(6n+3), .model-card:nth-of-type(6n+3), .cmp-ad, .cmp-post) {
    background-image: linear-gradient(145deg, #f6e1e8, #fffaf2) !important;
    border-color: rgba(190, 119, 145, 0.46) !important;
}

html[data-gn-color-demo] .talent-table-wrap {
    background: #fbf8f0 !important;
    border-color: rgba(186, 158, 105, 0.58) !important;
}

html[data-gn-color-demo] .talent-table thead,
html[data-gn-color-demo] .talent-table thead tr,
html[data-gn-color-demo] .talent-table thead th {
    background: #f4ecdd !important;
    border-color: rgba(186, 158, 105, 0.44) !important;
    color: #29251f !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
    background: #fffdf7 !important;
    border-top: 1px dashed rgba(186, 158, 105, 0.34) !important;
    border-bottom: 1px dashed rgba(186, 158, 105, 0.44) !important;
    border-right: 1px dashed rgba(186, 158, 105, 0.18) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(2),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(2) {
    background: #edf7ee !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(3),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(6),
html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(8),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(8) {
    background: #f5ecd9 !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(4),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(4) {
    background: #e9f3f4 !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(7),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(7) {
    background: #eeeafb !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(9),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(9) {
    background: #f6e1e8 !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:first-child,
html[data-gn-color-demo] .talent-table tbody tr > td:first-child {
    border-left: 2px dashed rgba(157, 124, 55, 0.86) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr:hover > td:nth-child(n),
html[data-gn-color-demo] .three-pane .talent-table tbody tr.active-row > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr:hover > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr.active-row > td:nth-child(n) {
    background: #f3ead8 !important;
    border-color: rgba(157, 124, 55, 0.54) !important;
    box-shadow: 0 8px 20px rgba(79, 64, 35, 0.08) !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
    html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
        border: 1px dashed rgba(186, 158, 105, 0.42) !important;
        border-left: 2px dashed rgba(157, 124, 55, 0.86) !important;
    }
}

/* v49 crisp-card pass: visible seams, stronger contrast, lighter model image veil. */
html[data-gn-color-demo] {
    --text-muted: #3f372f;
    --text-dim: #51483f;
    --glass-border: rgba(154, 119, 45, 0.78);
    --gn-solid-border-soft: rgba(154, 119, 45, 0.72);
    --gn-card-border-strong: #a78342;
    --gn-card-outline: rgba(255, 255, 255, 0.72);
    --gn-card-shadow-crisp: 0 12px 26px rgba(65, 50, 26, 0.1);
}

html[data-gn-color-demo] :where(
    .glass-panel,
    .filters-bar,
    .preview-panel,
    .sidebar,
    .talent-table-wrap,
    .campaign-section,
    .campaign-card,
    .booking-card,
    .ct-card,
    .ct-potential,
    .ct-trend,
    .trend-section,
    .trend-video-card,
    .trend-creator-row,
    .cmp-digest,
    .cmp-gaps,
    .cmp-vs,
    .cmp-roster,
    .cmp-detail,
    .cmp-card,
    .cmp-row,
    .cmp-ad,
    .cmp-post,
    .cmp-social-panel,
    .seo-header,
    .seo-brand,
    .seo-score-panel,
    .seo-info-card,
    .seo-table-wrap,
    .seo-goal-item,
    .kol-ranking-card,
    .hot-trend-section,
    .finance-card,
    .fin-tabs,
    .calendar-panel,
    .cal-cell,
    .contract-card,
    .model-card
) {
    background-color: #fbf8f0 !important;
    border: 1.5px solid var(--gn-card-border-strong) !important;
    outline: 1px solid var(--gn-card-outline) !important;
    outline-offset: -3px !important;
    box-shadow:
        var(--gn-card-shadow-crisp),
        inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html[data-gn-color-demo] :where(
    .ct-card,
    .cmp-digest,
    .cmp-roster,
    .seo-brand,
    .booking-card,
    .campaign-section,
    .model-card,
    .trend-video-card
):hover {
    border-color: #876525 !important;
    box-shadow:
        0 16px 32px rgba(65, 50, 26, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html[data-gn-color-demo] :where(.ct-card, .cmp-digest, .cmp-roster, .seo-brand, .booking-card, .model-card):nth-of-type(6n+1) {
    background-image: linear-gradient(145deg, #fffaf1, #eadfce) !important;
}

html[data-gn-color-demo] :where(.ct-card, .cmp-digest, .cmp-roster, .seo-brand, .booking-card, .model-card):nth-of-type(6n+2) {
    background-image: linear-gradient(145deg, #f7edda, #fffaf1) !important;
}

html[data-gn-color-demo] :where(.ct-card, .cmp-digest, .cmp-roster, .seo-brand, .booking-card, .model-card):nth-of-type(6n+3) {
    background-image: linear-gradient(145deg, #f3dce4, #fff8ee) !important;
}

html[data-gn-color-demo] :where(.ct-card, .cmp-digest, .cmp-roster, .seo-brand, .booking-card, .model-card):nth-of-type(6n+4) {
    background-image: linear-gradient(145deg, #ebe8fb, #fff8ee) !important;
}

html[data-gn-color-demo] :where(.ct-card, .cmp-digest, .cmp-roster, .seo-brand, .booking-card, .model-card):nth-of-type(6n+5) {
    background-image: linear-gradient(145deg, #e2f0e3, #fff8ee) !important;
}

html[data-gn-color-demo] :where(.ct-card, .cmp-digest, .cmp-roster, .seo-brand, .booking-card, .model-card):nth-of-type(6n+6) {
    background-image: linear-gradient(145deg, #e1eef0, #fff8ee) !important;
}

html[data-gn-color-demo] :where(
    .ct-grid,
    .ct-report-stats,
    .cmp-digest-grid,
    .cmp-gap-grid,
    .cmp-vs-grid,
    .cmp-layout,
    .seo-top-grid,
    .seo-metric-grid,
    .seo-grid,
    .trend-video-grid,
    .trend-creator-grid,
    .model-gallery-body
) {
    gap: 20px !important;
}

html[data-gn-color-demo] :where(
    .filter-section,
    .filter-group,
    .stat-card,
    .seo-mini-stat,
    .cmp-rstat,
    .metric-card,
    .hot-trend-card,
    .cal-event,
    .booking-chip,
    .brand-badge-mini,
    .badge,
    .kol-type-badge,
    .model-card-tag,
    .td-bf,
    .hot-badge,
    .filter-chip
) {
    border-color: rgba(135, 101, 37, 0.72) !important;
    color: #29251f !important;
}

html[data-gn-color-demo] :where(
    .section-subtitle,
    .campaign-meta,
    .bk-info-compact,
    .ct-note,
    .ct-empty,
    .trend-sub,
    .trend-cr-handle,
    .trend-cr-fol,
    .cmp-section-updated,
    .cmp-ad-crawled,
    .cmp-post-crawled,
    .cmp-ad-body,
    .cmp-post-text,
    .seo-sub,
    .seo-brand-meta,
    .seo-info-copy,
    .seo-mini-stat small,
    .seo-mini-stat p,
    .kol-ranking-meta,
    .kol-updated,
    .hot-trend-note
) {
    color: #3f372f !important;
}

html[data-gn-color-demo] .brand-switch-menu {
    background: #fbf8f0 !important;
    border: 1.5px solid #a78342 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(65, 50, 26, 0.18) !important;
}

html[data-gn-color-demo] .brand-switch-opt {
    color: #29251f !important;
    background: transparent !important;
    font-weight: 800 !important;
}

html[data-gn-color-demo] .brand-switch-opt:hover {
    background: #ead9b8 !important;
    color: #201b14 !important;
}

html[data-gn-color-demo] .model-card {
    border-width: 2px !important;
    border-color: #a78342 !important;
    outline-offset: -4px !important;
}

html[data-gn-color-demo] .model-card-photo {
    background: #efe4d1 !important;
}

html[data-gn-color-demo] .model-card-img {
    opacity: 1 !important;
    filter: none !important;
}

html[data-gn-color-demo] .model-card-shade {
    background: linear-gradient(
        to top,
        rgba(238, 231, 210, 0.28) 0%,
        rgba(238, 231, 210, 0.12) 34%,
        rgba(238, 231, 210, 0.03) 64%,
        rgba(238, 231, 210, 0) 100%
    ) !important;
}

html[data-gn-color-demo] .model-card-title {
    background: rgba(251, 248, 240, 0.88) !important;
    border: 1px solid rgba(135, 101, 37, 0.58) !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
    box-shadow: 0 8px 18px rgba(65, 50, 26, 0.1) !important;
}

html[data-gn-color-demo] .model-card-name,
html[data-gn-color-demo] .model-card-bio {
    color: #29251f !important;
    text-shadow: none !important;
}

html[data-gn-color-demo] .model-card-bio {
    color: #3f372f !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:nth-child(n),
html[data-gn-color-demo] .talent-table tbody tr > td:nth-child(n) {
    border-top: 1px dashed rgba(135, 101, 37, 0.48) !important;
    border-bottom: 1px dashed rgba(135, 101, 37, 0.58) !important;
    border-right: 1px dashed rgba(135, 101, 37, 0.34) !important;
}

html[data-gn-color-demo] .three-pane .talent-table tbody tr > td:first-child,
html[data-gn-color-demo] .talent-table tbody tr > td:first-child {
    border-left: 2px dashed rgba(135, 101, 37, 0.88) !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] :where(
        .ct-card,
        .ct-potential,
        .cmp-digest,
        .cmp-gaps,
        .cmp-vs,
        .cmp-roster,
        .cmp-detail,
        .seo-header,
        .seo-brand,
        .booking-card,
        .campaign-section,
        .model-card,
        .trend-video-card
    ) {
        border-width: 1.5px !important;
        outline-offset: -2px !important;
    }

    html[data-gn-color-demo] :where(.ct-grid, .model-gallery-body) {
        gap: 16px !important;
    }
}

/* v49b stronger seams: beat older page-specific rules with exact class selectors. */
html[data-gn-color-demo] .ct-card.glass-panel,
html[data-gn-color-demo] .ct-potential.glass-panel,
html[data-gn-color-demo] .ct-trend.glass-panel,
html[data-gn-color-demo] .booking-card.glass-panel,
html[data-gn-color-demo] .campaign-section,
html[data-gn-color-demo] .cmp-digest.glass-panel,
html[data-gn-color-demo] .cmp-gaps.glass-panel,
html[data-gn-color-demo] .cmp-vs.glass-panel,
html[data-gn-color-demo] .cmp-roster.glass-panel,
html[data-gn-color-demo] .cmp-detail.glass-panel,
html[data-gn-color-demo] .seo-header.glass-panel,
html[data-gn-color-demo] .seo-brand.glass-panel,
html[data-gn-color-demo] .seo-score-panel,
html[data-gn-color-demo] .seo-table-wrap,
html[data-gn-color-demo] .kol-metrics-legend.glass-panel,
html[data-gn-color-demo] .hot-trend-section,
html[data-gn-color-demo] .trend-section.glass-panel,
html[data-gn-color-demo] .trend-video-card,
html[data-gn-color-demo] .model-card {
    background-color: #fbf8f0 !important;
    border: 2px solid #967020 !important;
    outline: 1px solid rgba(255, 255, 255, 0.78) !important;
    outline-offset: -4px !important;
    box-shadow:
        0 14px 30px rgba(65, 50, 26, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html[data-gn-color-demo] .ct-card.glass-panel,
html[data-gn-color-demo] .cmp-digest.glass-panel,
html[data-gn-color-demo] .cmp-roster.glass-panel,
html[data-gn-color-demo] .cmp-detail.glass-panel,
html[data-gn-color-demo] .seo-brand.glass-panel,
html[data-gn-color-demo] .booking-card.glass-panel,
html[data-gn-color-demo] .model-card {
    background-image: linear-gradient(145deg, #fffaf1, #eadfce) !important;
}

html[data-gn-color-demo] .ct-card.glass-panel:nth-of-type(6n+2),
html[data-gn-color-demo] .booking-card.glass-panel:nth-of-type(6n+2),
html[data-gn-color-demo] .model-card:nth-of-type(6n+2) {
    background-image: linear-gradient(145deg, #f8edd7, #fffaf1) !important;
}

html[data-gn-color-demo] .ct-card.glass-panel:nth-of-type(6n+3),
html[data-gn-color-demo] .booking-card.glass-panel:nth-of-type(6n+3),
html[data-gn-color-demo] .model-card:nth-of-type(6n+3) {
    background-image: linear-gradient(145deg, #f3d9e2, #fff8ee) !important;
}

html[data-gn-color-demo] .ct-card.glass-panel:nth-of-type(6n+4),
html[data-gn-color-demo] .booking-card.glass-panel:nth-of-type(6n+4),
html[data-gn-color-demo] .model-card:nth-of-type(6n+4) {
    background-image: linear-gradient(145deg, #ebe7fb, #fff8ee) !important;
}

html[data-gn-color-demo] .ct-card.glass-panel:nth-of-type(6n+5),
html[data-gn-color-demo] .booking-card.glass-panel:nth-of-type(6n+5),
html[data-gn-color-demo] .model-card:nth-of-type(6n+5) {
    background-image: linear-gradient(145deg, #dff0e2, #fff8ee) !important;
}

html[data-gn-color-demo] .ct-card.glass-panel:nth-of-type(6n+6),
html[data-gn-color-demo] .booking-card.glass-panel:nth-of-type(6n+6),
html[data-gn-color-demo] .model-card:nth-of-type(6n+6) {
    background-image: linear-gradient(145deg, #dfecef, #fff8ee) !important;
}

html[data-gn-color-demo] .seo-header.glass-panel,
html[data-gn-color-demo] .ct-card.glass-panel.ct-card-wide,
html[data-gn-color-demo] .ct-card.glass-panel.ct-card-full {
    background-image: linear-gradient(145deg, #fffaf1, #ede3d6) !important;
}

/* Booking cards: progress stage tint must beat the generic color-demo card palette. */
html[data-gn-color-demo] .booking-card.glass-panel[class*="bk-stage-"] {
    background-color: #fbf8f0 !important;
    background-image: var(--bk-stage-bg, linear-gradient(145deg, #fffaf1, #eadfce)) !important;
    border-color: var(--bk-stage-border, #967020) !important;
}

html[data-gn-color-demo] .booking-card.glass-panel.bk-special-care {
    border-color: #ef4444 !important;
    outline-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.14),
        0 14px 30px rgba(65, 50, 26, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

html[data-gn-color-demo] .booking-card.glass-panel.bk-special-care .bk-card-care,
html[data-gn-color-demo] .booking-card.glass-panel.bk-special-care .bk-card-care .material-symbols-outlined {
    color: #ef4444 !important;
}

html[data-gn-color-demo] .material-symbols-outlined {
    color: #3d2a0e !important;
}

html[data-gn-color-demo] :where(.seo-table thead, .seo-table thead tr, .seo-table thead th) {
    background: #eadfce !important;
    color: #29251f !important;
    border-color: #967020 !important;
}

html[data-gn-color-demo] :where(.seo-table td, .seo-table th) {
    color: #29251f !important;
    border-color: rgba(150, 112, 32, 0.42) !important;
}

/* v51 Model gallery polish: no dashed outer rails, lighter glass title, details below image. */
html[data-gn-color-demo] .talent-table-model-gallery tbody tr,
html[data-gn-color-demo] .talent-table-model-gallery tbody tr:hover,
html[data-gn-color-demo] .talent-table-model-gallery tbody tr.active-row,
html[data-gn-color-demo] .talent-table-model-gallery tbody tr > td,
html[data-gn-color-demo] .three-pane .talent-table-model-gallery tbody tr > td,
html[data-gn-color-demo] .three-pane .talent-table-model-gallery tbody tr > td:first-child {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

html[data-gn-color-demo] .model-card-row > td {
    padding: 0 !important;
}

html[data-gn-color-demo] .model-card {
    border-color: rgba(135, 101, 37, 0.72) !important;
    outline: 0 !important;
}

html[data-gn-color-demo] .model-card-shade {
    background:
        radial-gradient(ellipse at 42% 84%, rgba(255, 246, 222, 0.4) 0%, rgba(255, 246, 222, 0.18) 24%, rgba(255, 246, 222, 0) 46%),
        linear-gradient(to top, rgba(249, 244, 229, 0.5) 0%, rgba(249, 244, 229, 0.36) 12%, rgba(249, 244, 229, 0.2) 24%, rgba(249, 244, 229, 0.08) 36%, rgba(249, 244, 229, 0.02) 46%, rgba(249, 244, 229, 0) 54%) !important;
    backdrop-filter: blur(0.35px) saturate(1.01) !important;
    -webkit-backdrop-filter: blur(0.35px) saturate(1.01) !important;
}

html[data-gn-color-demo] .model-card-title {
    left: 14px !important;
    right: 14px !important;
    bottom: 26px !important;
    width: auto !important;
    max-width: calc(100% - 28px) !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-gn-color-demo] .model-card-title::before {
    content: none !important;
}

html[data-gn-color-demo] .model-card-name {
    color: #211d18 !important;
    font-size: 1.08rem !important;
    line-height: 1.12 !important;
    position: relative !important;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.48),
        0 8px 24px rgba(255, 247, 225, 0.26) !important;
}

html[data-gn-color-demo] .model-card-title .model-card-bio {
    display: none !important;
}

html[data-gn-color-demo] .model-card-info {
    padding: 10px 10px 11px !important;
    gap: 8px !important;
}

html[data-gn-color-demo] .model-card-info > .model-card-bio {
    display: -webkit-box !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
    background: rgba(255, 250, 241, 0.58) !important;
    border: 1px solid rgba(150, 112, 32, 0.2) !important;
    color: #322b23 !important;
    font-size: 0.73rem !important;
    line-height: 1.34 !important;
    font-weight: 650 !important;
    text-shadow: none !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

@media (max-width: 760px) {
    html[data-gn-color-demo] .model-card-title {
        left: 12px !important;
        right: 12px !important;
        bottom: 22px !important;
        max-width: calc(100% - 24px) !important;
    }
}

/* ============================================================
   PHÂN TÍCH CHI TIẾT 1 VIDEO TIKTOK (modal kiểu SocialLens)
   Bố cục theo ảnh CEO; màu dùng design token (tự thích nghi theme brand).
   js/video-modal.js (DOM) + js/video-report.js (HTML thuần).
   ============================================================ */
.cmp-post-analyze {
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 3px 10px; border-radius: 8px; border: 1px solid var(--primary-alpha-30);
    background: var(--primary-alpha-08); color: var(--primary); font-size: 12px; font-weight: 600;
    transition: var(--transition-fast);
}
.cmp-post-analyze:hover { background: var(--primary-alpha-15); }
.cmp-post-analyze .material-symbols-outlined { font-size: 15px; }
.vid-overlay {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
.vid-modal {
    width: 100%; max-width: 980px; max-height: 92vh;
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius); box-shadow: var(--glass-shadow, 0 20px 60px rgba(0, 0, 0, 0.4));
    overflow: hidden;
}
.vid-top {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 22px; border-bottom: 1px solid var(--white-08); flex-shrink: 0;
}
.vid-top-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vid-top-logo {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-dark); color: var(--text-light);
}
.vid-top-title {
    font-size: 20px; font-weight: 800; color: var(--text-light); line-height: 1.3;
    margin: 0; word-break: break-word; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vid-top-open { color: var(--primary); display: inline-flex; align-items: center; text-decoration: none; }
.vid-top-open .material-symbols-outlined { font-size: 18px; }
.vid-close {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white-08); border: 1px solid var(--white-08); color: var(--text-muted);
    transition: var(--transition-fast);
}
.vid-close:hover { background: var(--white-12); color: var(--text-light); }
.vid-scroll { overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 20px; }

/* --- 6 ô số liệu --- */
.vid-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.vid-stat {
    display: flex; align-items: center; gap: 10px;
    padding: 14px; border: 1px solid var(--white-08); border-radius: 14px; background: var(--bg-surface);
}
.vid-stat-icon {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white-08); color: var(--text-muted);
}
.vid-stat-icon .material-symbols-outlined { font-size: 18px; }
.vid-stat-body { display: flex; flex-direction: column; min-width: 0; }
.vid-stat-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-stat-val { font-size: 20px; font-weight: 800; color: var(--text-light); line-height: 1.2; }

/* --- 3 panel --- */
.vid-panels { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 14px; }
.vid-panel { padding: 18px; border: 1px solid var(--white-08); border-radius: 16px; background: var(--bg-surface); }
.vid-panel-cap { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.vid-posted { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; }
.vid-posted-icon { font-size: 36px; color: var(--text-dim); }
.vid-posted-val { font-size: 26px; font-weight: 800; color: var(--text-light); }
.vid-posted-val small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.vid-er { text-align: center; }
.vid-er-num { font-size: 34px; font-weight: 800; color: var(--text-light); }
.vid-er-pct { font-size: 16px; color: var(--text-muted); margin-left: 4px; }
.vid-gauge { height: 8px; border-radius: 99px; background: var(--white-12); overflow: hidden; margin: 12px 0 6px; }
.vid-gauge-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-lighter)); transition: width 0.4s ease; }
.vid-gauge-zones { display: flex; justify-content: space-between; gap: 4px; font-size: 9.5px; color: var(--text-dim); }
.vid-er-pill {
    margin: 12px auto 0; width: fit-content; padding: 4px 14px; border-radius: 99px;
    font-size: 13px; font-weight: 700; background: var(--white-08); color: var(--text-muted);
}
.vid-er-pill[data-tier="mid"] { background: var(--primary-alpha-15); color: var(--primary-lighter); }
.vid-er-pill[data-tier="high"] { background: rgba(61, 187, 86, 0.16); color: #3dbb56; }
.vid-er-pill[data-tier="top"] { background: rgba(231, 76, 111, 0.16); color: var(--vote-color); }
.vid-score { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.vid-score + .vid-score { border-top: 1px solid var(--white-08); }
.vid-score-icon {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white-08); color: var(--primary);
}
.vid-score-icon .material-symbols-outlined { font-size: 18px; }
.vid-score-body { display: flex; flex-direction: column; }
.vid-score-lbl { font-size: 12px; color: var(--text-dim); }
.vid-score-val { font-size: 18px; font-weight: 800; color: var(--text-light); line-height: 1.2; }

/* --- Khu AI 8 mục --- */
.vid-ai-host { border-top: 1px solid var(--white-08); padding-top: 18px; }
.vid-ai-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.vid-ai-empty { text-align: center; padding: 22px 16px; color: var(--text-muted); }
.vid-ai-empty .material-symbols-outlined { font-size: 32px; color: var(--primary); }
.vid-ai-empty p { margin: 8px 0 0; font-size: 14px; }
.vid-ai-empty-sub { font-size: 12.5px; color: var(--text-dim); max-width: 460px; margin: 6px auto 0 !important; }
.vid-analyze-btn {
    margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    padding: 10px 20px; border-radius: 12px; border: none; font-size: 14px; font-weight: 700;
    background: var(--primary); color: #1d1a15; transition: var(--transition-fast);
}
.vid-analyze-btn:hover:not(:disabled) { background: var(--primary-hover); }
.vid-analyze-btn:disabled { opacity: 0.6; cursor: default; }
.vid-analyze-btn .material-symbols-outlined { font-size: 18px; }
.vid-ai-acc { display: flex; flex-direction: column; }
.vid-ai-item { border-bottom: 1px solid var(--white-08); }
.vid-ai-head {
    width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 14px 4px; background: none; border: none; text-align: left; color: var(--text-light);
}
.vid-ai-num { font-size: 13px; font-weight: 700; color: var(--text-dim); min-width: 22px; }
.vid-ai-label { flex: 1; font-size: 15px; font-weight: 700; }
.vid-ai-chevron { color: var(--text-dim); transition: transform 0.25s ease; }
.vid-ai-item.vid-ai-open .vid-ai-chevron { transform: rotate(180deg); }
.vid-ai-content { display: none; padding: 0 4px 14px; }
.vid-ai-item.vid-ai-open .vid-ai-content { display: block; }
.vid-ai-intro { margin: 0 0 12px 34px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.vid-ai-group { font-weight: 700; font-size: 13px; color: var(--text-light); margin: 12px 0 6px 34px; padding-bottom: 4px; border-bottom: 1px solid var(--white-08); }
.vid-ai-block { margin: 0 0 10px 34px; padding: 12px 14px; background: var(--bg-dark); border: 1px solid var(--white-08); border-radius: 12px; }
.vid-ai-block-title { font-weight: 700; font-size: 13.5px; color: var(--text-light); margin-bottom: 7px; }
.vid-ai-field { margin: 0 0 6px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.vid-ai-field b { color: var(--primary-lighter); font-weight: 700; }

/* --- Toast --- */
.vid-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
    z-index: 1300; max-width: 90vw; padding: 12px 20px; border-radius: 12px;
    background: var(--bg-dark); color: var(--text-light); border: 1px solid var(--primary-alpha-30);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-size: 14px; opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none;
}
.vid-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vid-toast-err { border-color: var(--vote-color); }

/* --- Responsive --- */
@media (max-width: 860px) {
    .vid-stats { grid-template-columns: repeat(3, 1fr); }
    .vid-panels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .vid-overlay { padding: 0; }
    .vid-modal { max-height: 100vh; height: 100%; border-radius: 0; }
    .vid-top-title { font-size: 16px; }
    .vid-stats { grid-template-columns: repeat(2, 1fr); }
    .vid-scroll { padding: 16px; }
    .vid-ai-intro, .vid-ai-group, .vid-ai-block { margin-left: 0; }
}

/* ============================================ PIPELINE NGỎ LỜI (GĐ2 "Trí nhớ chung 5 brand") ============================================ */
.pl-total { font-size: 0.74rem; color: var(--text-muted); }
.pl-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  align-items: start;
}
.pl-col {
  border: 1px solid var(--white-08);
  border-radius: 14px; padding: 0.6rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  min-height: 120px;
}
.pl-col.or-negotiating { border-top: 3px solid #4A90D9; }
.pl-col.or-won { border-top: 3px solid #4caf7d; }
.pl-col.or-lost { border-top: 3px solid #d95a5a; }
.pl-col-head { font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 0.35rem; padding: 0.1rem 0.2rem 0.3rem; }
.pl-col-count {
  margin-left: auto; font-size: 0.68rem; font-weight: 700;
  background: rgba(186, 158, 105, 0.14); border-radius: 999px; padding: 0.08rem 0.5rem;
}
.pl-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-card, #fffdf7);
  border: 1px solid var(--white-08); border-radius: 10px;
  padding: 0.5rem 0.6rem; font-family: inherit; color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pl-card:hover { border-color: rgba(186, 158, 105, 0.5); transform: translateY(-1px); }
.pl-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pl-card-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.pl-name { font-size: 0.78rem; font-weight: 700; }
.pl-price { font-size: 0.72rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.pl-card-meta { display: flex; gap: 0.35rem; flex-wrap: wrap; font-size: 0.66rem; color: var(--text-muted); margin-top: 0.2rem; align-items: center; }
.pl-brand {
  background: rgba(186, 158, 105, 0.13); border-radius: 999px;
  padding: 0.05rem 0.45rem; font-weight: 600; white-space: nowrap;
}
.pl-follow { white-space: nowrap; }
.pl-overdue { color: #d9822b; font-weight: 700; }
.pl-stale { color: var(--text-muted); }
.pl-camp { font-size: 0.66rem; color: var(--text-muted); margin-top: 0.2rem; }
.pl-lost-reason { font-size: 0.68rem; color: #b54545; margin-top: 0.2rem; }
.pl-empty { font-size: 0.72rem; color: var(--text-muted); padding: 0.4rem 0.2rem; }
.pl-hidden-note { font-size: 0.64rem; color: var(--text-muted); padding: 0.2rem; opacity: 0.8; }
@media (max-width: 860px) {
  .pl-board { grid-template-columns: 1fr; }
}

/* ── Tab 🧠 Bài học (Bộ não tự học — pipeline-page.js, spec 2026-06-11) ── */
.pl-total-row { margin-bottom: 0.6rem; }
.li-tabs { display: flex; gap: 0.4rem; }
.li-tab {
  border: 1px solid var(--white-12); background: transparent; color: var(--text-muted);
  border-radius: 999px; padding: 0.42rem 0.9rem; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; min-height: 44px;
}
.li-tab.active { background: var(--primary); color: #1c1610; border-color: var(--primary); }
.li-head { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 0.8rem; }
.li-intro { font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }
.li-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.li-pill {
  border: 1px solid var(--white-12); background: transparent; color: var(--text-muted);
  border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.72rem; cursor: pointer; min-height: 44px;
}
.li-pill.active { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.li-pill-n { opacity: 0.8; }
.li-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.7rem; }
.li-card { padding: 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.42rem; }
.li-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.li-type { font-size: 0.68rem; color: var(--text-muted); }
.li-status { font-size: 0.64rem; border-radius: 999px; padding: 0.08rem 0.5rem; font-weight: 700; white-space: nowrap; }
.li-st-proposed { background: rgba(217, 130, 43, 0.16); color: #d9822b; }
.li-st-approved { background: rgba(76, 154, 84, 0.16); color: #4c9a54; }
.li-st-rejected { background: rgba(181, 69, 69, 0.14); color: #b54545; }
.li-title { font-size: 0.84rem; font-weight: 700; line-height: 1.4; }
.li-detail { font-size: 0.74rem; color: var(--text-muted); line-height: 1.5; }
.li-meta { font-size: 0.64rem; color: var(--text-muted); opacity: 0.85; display: flex; gap: 0.3rem; flex-wrap: wrap; }
.li-actions { display: flex; gap: 0.5rem; margin-top: 0.2rem; }
.li-btn {
  border: 1px solid var(--white-12); background: transparent; border-radius: 8px;
  padding: 0.45rem 0.9rem; font-size: 0.74rem; font-weight: 600; cursor: pointer; min-height: 44px;
}
.li-btn-ok { border-color: #4c9a54; color: #4c9a54; }
.li-btn-no { border-color: #b54545; color: #b54545; }
.li-btn:disabled { opacity: 0.55; cursor: default; }
.ct-learn-badge {
  display: inline-block; margin-left: 0.3rem; font-size: 0.66rem; font-weight: 700;
  color: var(--primary); border: 1px solid var(--primary); border-radius: 999px;
  padding: 0.02rem 0.4rem; white-space: nowrap; cursor: help;
}
@media (max-width: 860px) {
  .li-list { grid-template-columns: 1fr; }
  .li-tabs { width: 100%; }
  .li-tab { flex: 1; }
}
