
/* ---------- LIGHT MANAGER THEME ---------- */
.container {
  max-width: 1400px;
}

.fm-wrap {
  padding: 1.25rem 1rem 2rem;
}

.fm-hero {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.fm-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.fm-sub {
  margin-top: .25rem;
  font-size: .9rem;
  color: #6b7280;
}

.fm-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.fm-kpi {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .65rem .75rem;
}

.fm-kpi a {
  text-decoration: none;
  display: block;
}

.fm-kpi .label {
  font-size: .75rem;
  color: #6b7280;
}

.fm-kpi .value {
  font-weight: 800;
  color: #111827;
  margin-top: .15rem;
}

.fm-kpi .accent {
  color: #16a34a;
}

.fm-kpi-info .value {
  font-size: 22px;
  color: #007bff;
}

.fm-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
  gap: 1rem;
  align-items: start;
}

.fm-main,
.fm-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fm-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin: 0 0 1rem 0;
}

.fm-action {
  padding: .75rem;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  font-size: .9rem;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.fm-action:hover {
  background: #1f2937;
  color: #fff;
  text-decoration: none;
}

.fm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fm-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.fm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
}

.fm-card-head a {
  font-size: .85rem;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}

.fm-card-head a:hover {
  color: #111827;
}

.fm-card-body {
  padding: .85rem 1rem;
}

.fm-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  display: inline-block;
  margin-right: .5rem;
}

.fm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-row {
  border-bottom: 1px solid #e5e7eb;
}

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

.fm-row-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  text-decoration: none;
  color: #111827;
}

.fm-row-link:hover {
  background: #f9fafb;
  text-decoration: none;
}

.fm-row-left {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}

.fm-badge-img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: contain;
}

.fm-row-text {
  font-size: .9rem;
  white-space: nowrap;
}

.fm-muted {
  color: #6b7280;
}

.fm-strong {
  font-weight: 700;
}

.fm-good {
  color: #16a34a;
  font-weight: 700;
}

.fm-ok {
  color: #ca8a04;
  font-weight: 700;
}

.fm-empty {
  padding: .75rem 1rem;
  color: #6b7280;
  font-size: .9rem;
}

.fm-live-label {
  color: #dc2626;
  font-weight: 800;
  font-size: .8rem;
}

.fm-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
}

.fm-alert a {
  font-weight: 700;
  text-decoration: none;
}

.fm-alert a:hover {
  text-decoration: underline;
}

.fm-bonus-card {
  transition: 0.2s;
  cursor: pointer;
}

.fm-bonus-card:hover {
  transform: translateY(-2px);
  border-color: #f97316;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.fm-bonus-main {
  font-size: 1rem;
  color: #111827;
}

.fm-bonus-sub {
  font-size: .85rem;
  color: #6b7280;
  margin-top: .2rem;
}

.fm-rank {
  width: 26px;
  height: 22px;
  border-radius: 6px;
  background: #e5e7eb;
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .5rem;
}

.fm-points {
  font-weight: 700;
  color: #6b7280;
}

.fm-points.top {
  color: #16a34a;
}

.fm-top5-name {
  display: flex;
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .fm-dashboard {
    grid-template-columns: 1fr;
  }

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

  .fm-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .fm-kpis {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
  }

  .fm-kpi {
    min-width: 170px;
    flex: 0 0 auto;
  }
}

.fm-bonus-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
}

.fm-bonus-main {
  font-size: 1.35rem;
  line-height: 1.2;
}

.fm-bonus-main strong {
  font-size: 2rem;
  color: #ea580c;
}

.fm-bonus-sub {
  margin-top: 6px;
  color: #78716c;
}

.fm-potten-card {
  margin-top: 16px;
}

.fm-potten-list {
  display: grid;
  gap: 10px;
}

.fm-pot-row{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border-radius:20px;
  padding:18px;
  margin-bottom:14px;
  border:1px solid #e2e8f0;
  box-shadow:0 4px 14px rgba(15,23,42,0.04);
}

.fm-pot-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:18px;
}

.fm-pot-name{
  font-size:20px;
  font-weight:800;
  color:#0f172a;
  line-height:1.2;
}

.fm-pot-sub{
  margin-top:6px;
  font-size:14px;
  color:#64748b;
}

.fm-status{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.fm-status.paid{
  background:#dcfce7;
  color:#166534;
}

.fm-status.unpaid{
  background:#fee2e2;
  color:#991b1b;
}

.fm-pot-values{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.fm-value-box{
  background:#fff;
  border-radius:14px;
  padding:12px;
  text-align:center;
  border:1px solid #f1f5f9;
}

.fm-value-box span{
  display:block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#94a3b8;
  margin-bottom:6px;
}

.fm-value-box strong{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}
.fm-member-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.fm-member-chip{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}

.fm-hidden-members{
  display:none;
  flex-wrap:wrap;
  gap:8px;
}

.fm-hidden-members.open{
  display:contents;
}

.fm-show-more{
  flex-basis:100%;
  width:max-content;
}

.fm-chat-badge {
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 999px;
    font-weight: 700;
}