/* =========================================================
   Chekni — styles.css
   Light minimal theme
   ========================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #F5F6FA;
  --surface:     #FFFFFF;
  --surface-2:   #F0F2F8;
  --border:      #E4E7EF;
  --border-light:#EEF0F6;

  --primary:     #4A6CF7;
  --primary-dim: #EEF1FE;
  --primary-hover:#3A5CE6;

  --text:        #1A1D2E;
  --text-2:      #5A6173;
  --text-3:      #9EA8BF;
  --muted:       #B8C0D2;

  --success:     #22C55E;
  --success-dim: #ECFDF5;
  --warn:        #F59E0B;
  --warn-dim:    #FFFBEB;
  --danger:      #EF4444;
  --danger-dim:  #FEF2F2;
  --info:        #3B82F6;
  --info-dim:    #EFF6FF;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  --shadow-sm:   0 1px 3px rgba(30,40,80,.06), 0 1px 2px rgba(30,40,80,.04);
  --shadow:      0 2px 8px rgba(30,40,80,.08), 0 1px 3px rgba(30,40,80,.05);
  --shadow-md:   0 4px 16px rgba(30,40,80,.10), 0 2px 6px rgba(30,40,80,.06);
  --shadow-lg:   0 8px 32px rgba(30,40,80,.12), 0 4px 12px rgba(30,40,80,.07);

  --sidebar-w:   240px;
  --header-h:    56px;

  --transition:  .18s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  outline: none;
}
h1,h2,h3,h4,h5 { font-weight: 600; line-height: 1.3; }

/* ── Loading Screen ─────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.loading-content {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--text-2);
  font-size: 13px;
}
.loading-spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth Screen ────────────────────────────────────────── */
.auth-screen {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.auth-container {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  display: flex; flex-direction: column; gap: 24px;
}
.auth-header { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.tg-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.auth-header h1 { font-size: 22px; color: var(--text); }
.auth-header p { font-size: 13px; color: var(--text-2); }

.tg-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition);
}
.tg-login-btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.tg-login-btn i { font-size: 16px; }
.auth-footer p { font-size: 12px; color: var(--text-3); }

/* ── Main App Shell ─────────────────────────────────────── */
.main-app {
  display: none;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}
.header-left {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-back, .sidebar-toggle {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
}
.nav-back:hover, .sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-back i, .sidebar-toggle i { font-size: 14px; }

.app-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.app-title .tg-avatar { width: 28px; height: 28px; }

.header-center { flex: 1; max-width: 360px; margin: 0 auto; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.search-box i { font-size: 12px; color: var(--text-3); }
.search-box input {
  flex: 1; background: none; border: none;
  font-size: 13px; color: var(--text);
  min-width: 0;
}
.search-box input::placeholder { color: var(--text-3); }

.header-right {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.user-info { display: flex; align-items: center; gap: 7px; }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }

.header-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.header-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Search Dropdown ────────────────────────────────────── */
.search-dropdown {
  position: fixed;
  top: var(--header-h); left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100vw - 32px));
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.search-dropdown-inner { max-height: 380px; overflow-y: auto; }
#search-dropdown-list .task-card {
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: none;
  margin: 0;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 90;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.sidebar.open { transform: translateX(0); }

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 89;
  background: rgba(15,20,40,.22);
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.sidebar-overlay.visible { opacity: 1; pointer-events: all; }

.sidebar-content {
  display: flex; flex-direction: column;
  height: 100%; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar-header {
  padding: 16px 16px 0;
  flex-shrink: 0;
}
.sidebar-header-top {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.sidebar-header h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.sidebar-header .project-description { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.sidebar-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 13px;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.sidebar-close:hover { background: var(--surface-2); color: var(--text); }

.sidebar-menu {
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.menu-item i {
  font-size: 14px; width: 16px; text-align: center;
  flex-shrink: 0;
}
.menu-item span { flex: 1; }
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item.active {
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 600;
}
.menu-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 8px 16px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 12px;
}
.btn-support {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  font-size: 12px;
}
.user-stats {
  display: flex; gap: 4px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.stat-number { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 10px; color: var(--text-3); margin-top: 1px; display: block; }

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  margin-top: var(--header-h);
  padding: 20px 16px;
  min-height: calc(100vh - var(--header-h));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ── View Header ──────────────────────────────────────────── */
.view-content { display: block; }
.view-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
}
.view-header h2 { font-size: 20px; font-weight: 700; color: var(--text); }
.view-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.top-actions { display: flex; gap: 8px; }
.view-hint { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.view-hint i { font-size: 11px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(74,108,247,.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 3px 8px rgba(74,108,247,.35);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn i { font-size: 12px; }
.btn-badge {
  background: var(--primary-dim);
  color: var(--primary);
  border-radius: 10px;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  min-width: 18px; text-align: center;
}
.linklike {
  background: none; border: none;
  color: var(--primary); font-size: inherit;
  text-decoration: underline; cursor: pointer;
  padding: 0;
}
.linklike:hover { color: var(--primary-hover); }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-grid {
  display: flex; flex-direction: column; gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.panel-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.carousel {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.pill {
  display: flex; flex-direction: column; align-items: center;
  min-width: 68px; padding: 10px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.pill:hover:not(:disabled) {
  background: var(--primary-dim);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.pill:disabled { opacity: .45; cursor: default; }
.pill-num {
  font-size: 22px; font-weight: 700;
  color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.pill-title { font-size: 10px; color: var(--text-3); font-weight: 500; text-align: center; }

.projects-quick {
  display: flex; gap: 10px;
}
.project-pill {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.project-pill-num { font-size: 28px; font-weight: 700; color: var(--primary); }
.project-pill-title { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* Groups accordion on dashboard */
.groups-accordion { list-style: none; }
.groups-accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.groups-accordion-header::marker,
.groups-accordion-header::-webkit-details-marker { display: none; }
.groups-accordion-chevron { font-size: 11px; color: var(--text-3); transition: transform .2s; }
details[open] .groups-accordion-chevron { transform: rotate(180deg); }

.groups-toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  margin-top: 12px;
}
.chip-input {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  flex: 1;
  transition: border-color var(--transition);
}
.chip-input:focus-within { border-color: var(--primary); }
.chip-input i { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.chip-input input {
  flex: 1; background: none; border: none;
  font-size: 12px; color: var(--text); min-width: 0;
}
.chip-input input::placeholder { color: var(--text-3); }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  gap: 10px;
}
.empty-state i { font-size: 32px; opacity: .35; }
.empty-state h3 { font-size: 15px; color: var(--text-2); }
.empty-state p { font-size: 13px; }

/* ── Tasks List ───────────────────────────────────────────── */
.tasks-list { display: flex; flex-direction: column; gap: 8px; }
.recent-tasks h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }

/* ── Task Card ────────────────────────────────────────────── */
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.task-card:hover {
  box-shadow: var(--shadow);
  border-color: #d0d7f0;
  transform: translateY(-1px);
}
.task-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.task-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.4;
}
.task-description {
  font-size: 12px; color: var(--text-2);
  margin-top: 3px; line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  margin-top: 6px;
}
.task-deadline {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-3);
}
.task-deadline i { font-size: 10px; }
.deadline-overdue { color: var(--danger) !important; font-weight: 500; }

.task-assignee {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-2);
}
.assignee-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.assignee-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Task Badges ──────────────────────────────────────────── */
.task-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}

/* Status */
.badge-status.todo  { background: var(--surface-2); color: var(--text-2); }
.badge-status.doing { background: var(--info-dim);  color: var(--info); }
.badge-status.review{ background: var(--warn-dim);  color: var(--warn); }
.badge-status.done  { background: var(--success-dim);color: var(--success); }

/* Priority */
.badge-priority.low    { background: var(--success-dim); color: var(--success); }
.badge-priority.medium { background: var(--warn-dim);    color: var(--warn); }
.badge-priority.high   { background: var(--danger-dim);  color: var(--danger); }

/* Meta badge (group / creator) */
.badge-meta {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--text-2);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.meta-avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--border);
}
.meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta-avatar-initials { font-size: 9px; font-weight: 700; color: var(--text-2); }
.meta-label { color: var(--text-3); }
.meta-value { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Projects Grid ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; gap: 8px;
}
.project-card:hover {
  box-shadow: var(--shadow);
  border-color: #d0d7f0;
  transform: translateY(-1px);
}
.project-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.project-title { font-size: 14px; font-weight: 600; color: var(--text); }
.project-description { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.project-actions { display: flex; gap: 4px; flex-shrink: 0; }
.project-action-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 12px;
  transition: background var(--transition), color var(--transition);
}
.project-action-btn:hover { background: var(--surface-2); color: var(--text); }
.project-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 11px; color: var(--text-3);
}
.project-stat, .project-date {
  display: inline-flex; align-items: center; gap: 4px;
}
.project-stat i, .project-date i { font-size: 10px; }
.project-progress { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }

/* Progress bar */
.progress-bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-lg { height: 8px; border-radius: 4px; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #6B8BFF 100%);
  border-radius: inherit;
  transition: width .4s ease;
}

/* Inline project tasks */
.project-tasks { margin-top: 8px; }

/* ── Filter Group ─────────────────────────────────────────── */
.filter-group {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.filter-select {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239EA8BF'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--primary); }

/* ── Group Card ───────────────────────────────────────────── */
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
  margin-bottom: 8px;
}
.group-card:hover { box-shadow: var(--shadow); }
.group-card-hidden { opacity: .55; }

.group-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  gap: 10px;
}
.group-toggle { transition: background var(--transition); }
.group-toggle:hover { background: var(--surface-2); }

.group-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.group-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.group-avatar img { width: 100%; height: 100%; object-fit: cover; }
.group-initials { font-size: 12px; font-weight: 700; }
.group-headings { min-width: 0; }
.group-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.group-description { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.group-meta {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.group-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-3);
}
.group-badge i { font-size: 10px; }
.group-meta-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 12px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.group-meta-btn:hover { background: var(--surface-2); color: var(--text); }

.group-details { padding: 0 14px 14px; border-top: 1px solid var(--border-light); }
.group-toolbar {
  padding: 12px 0 8px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.tg-pill-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--primary-dim);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  transition: background var(--transition);
}
.tg-pill-btn:hover { background: #dde6fe; }
.tg-pill-btn i { font-size: 11px; }

.group-quickfilters {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip:hover, .chip.active {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

.group-members {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 8px 0;
}
.member-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 3px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 11px; color: var(--text-2);
}
.member-avatar-small {
  width: 20px; height: 20px;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.group-tasks h4 {
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 10px 0 8px;
}

.group-done-toggle-row { margin-top: 10px; }
.group-done-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 0;
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  width: 100%;
  transition: color var(--transition);
}
.group-done-toggle:hover { color: var(--text); }
.group-done-toggle i { font-size: 12px; }
.group-done-toggle .chevron { margin-left: auto; font-size: 10px; transition: transform .2s; }
.group-done-badge {
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  color: var(--text-2);
}

/* ── Kanban ───────────────────────────────────────────────── */
.kanban-container { overflow-x: auto; padding-bottom: 12px; }
.kanban-board {
  display: flex; gap: 12px;
  min-width: min-content;
  align-items: flex-start;
}
.kanban-column {
  width: 240px; flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.column-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.column-header h3 { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.column-count {
  background: var(--border);
  color: var(--text-3);
  font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.column-content {
  padding: 10px;
  min-height: 80px;
  display: flex; flex-direction: column; gap: 8px;
}

/* Status accent lines for kanban columns */
.kanban-column[data-status="todo"]   { border-top: 3px solid var(--text-3); }
.kanban-column[data-status="doing"]  { border-top: 3px solid var(--info); }
.kanban-column[data-status="review"] { border-top: 3px solid var(--warn); }
.kanban-column[data-status="done"]   { border-top: 3px solid var(--success); }

.kanban-task { cursor: grab; }
.kanban-task:active { cursor: grabbing; }
.kanban-task.dragging { opacity: .5; transform: rotate(1deg); }
.kanban-task.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }
.no-page-scroll { overflow: hidden; }

/* ── Stats ────────────────────────────────────────────────── */
.stats-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.stats-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.stats-hero-total {
  display: flex; align-items: baseline; gap: 8px;
}
.stats-hero-total span:first-child { font-size: 40px; font-weight: 800; color: var(--text); }
.stats-hero-total-suffix { font-size: 16px; font-weight: 500; color: var(--text-3); }
.stats-hero-progress {
  font-size: 24px; font-weight: 700;
  color: var(--primary);
}
.stats-subline { font-size: 12px; color: var(--text-3); margin-top: 8px; }

.stats-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
}
.stat-chip {
  flex: 1; min-width: 80px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}
.stat-chip[data-tone="success"] { background: var(--success-dim); border-color: rgba(34,197,94,.2); }
.stat-chip[data-tone="danger"]  { background: var(--danger-dim);  border-color: rgba(239,68,68,.2); }
.stat-chip[data-tone="neutral"] { background: var(--surface-2); }

.chip-val { font-size: 22px; font-weight: 700; color: var(--text); }
.chip-label { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.stat-chip[data-tone="success"] .chip-val { color: var(--success); }
.stat-chip[data-tone="danger"]  .chip-val { color: var(--danger); }

.stats-mini-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin-bottom: 16px;
}
.stat-mini {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-mini[data-tone="info"]    { border-top: 3px solid var(--info); }
.stat-mini[data-tone="warn"]    { border-top: 3px solid var(--warn); }
.stat-mini[data-tone="success"] { border-top: 3px solid var(--success); }
.stat-mini[data-tone="neutral"] { border-top: 3px solid var(--text-3); }

.mini-val   { font-size: 20px; font-weight: 700; color: var(--text); }
.mini-label { font-size: 10px; color: var(--text-3); margin-top: 3px; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.big-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.chart-head h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.chart-hint { font-size: 11px; color: var(--text-3); }
.big-stat-chart canvas {
  width: 100% !important;
  max-width: 160px;
  height: auto !important;
  margin: 0 auto;
  display: block;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(15,20,45,.35);
  backdrop-filter: blur(3px);
}
.modal.active { display: flex; }
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: modal-in .18s ease;
}
.modal-large { max-width: 640px; }
.modal-medium { max-width: 520px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 13px;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-body { padding: 16px 20px; }
.modal-form { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding-top: 4px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 12px; font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .05em;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-group textarea { resize: vertical; }
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239EA8BF'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: var(--surface);
  padding-right: 28px;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.select-native-hidden { display: none !important; }

/* Custom select preview button */
.select-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%; text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.select-preview:hover { border-color: var(--primary); }
.select-preview-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.select-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.select-preview-text { flex: 1; min-width: 0; }
.select-preview-title { font-size: 13px; font-weight: 500; color: var(--text); }
.select-preview-sub { font-size: 11px; color: var(--text-3); }
.select-preview-chevron { color: var(--text-3); font-size: 11px; flex-shrink: 0; }

/* ── Attachments ──────────────────────────────────────────── */
.attachments-section { display: flex; flex-direction: column; gap: 6px; }
.btn-attachments { position: relative; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; min-width: 16px;
}
.attachments-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.upload-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  transition: border-color var(--transition), background var(--transition);
}
.upload-drop.drag-over,
.upload-drop:hover { border-color: var(--primary); background: var(--primary-dim); }
.upload-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

/* ── Task Detail ──────────────────────────────────────────── */
.task-detail-content { padding: 16px 20px 20px; }

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 9000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  animation: toast-in .2s ease;
  max-width: 320px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warn); }

/* ── Avatar Picker ────────────────────────────────────────── */
.picker {
  position: fixed; inset: 0; z-index: 600;
}
.picker[hidden] { display: none; }
.picker-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,20,45,.3);
  backdrop-filter: blur(2px);
}
.picker-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 70vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: sheet-up .2s ease;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.picker-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
}
.picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.picker-title { font-size: 14px; font-weight: 700; color: var(--text); }
.picker-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-3); font-size: 13px;
  transition: background var(--transition);
}
.picker-close:hover { background: var(--surface-2); }
.picker-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}
.picker-search i { font-size: 12px; color: var(--text-3); }
.picker-search input {
  flex: 1; background: none; border: none;
  font-size: 13px; color: var(--text);
}
.picker-search input::placeholder { color: var(--text-3); }
.picker-list {
  overflow-y: auto; flex: 1;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.picker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.picker-item:hover { background: var(--surface-2); }
.picker-item.active { background: var(--primary-dim); }
.picker-item-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.picker-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.picker-item-name { font-size: 13px; font-weight: 500; color: var(--text); }
.picker-item-sub  { font-size: 11px; color: var(--text-3); }

/* ── Misc helpers ─────────────────────────────────────────── */
.tg-hint { font-size: 12px; color: var(--text-3); }
.text-muted { color: var(--text-3); font-size: 12px; }

/* ── Scrollbar ────────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-center { display: none; }
  .user-name { display: none; }
  .app-title span { display: none; }

  .main-content { padding: 14px 10px; }
  .view-header { flex-direction: column; align-items: flex-start; }
  .view-actions { width: 100%; justify-content: flex-end; }

  .stats-mini-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .modal-content { border-radius: var(--radius); }
}

@media (min-width: 768px) {
  .sidebar {
    transform: translateX(0);
    position: fixed;
  }
  .main-content {
    margin-left: var(--sidebar-w);
  }
  .sidebar-overlay { display: none !important; }
  .sidebar-toggle  { display: none; }
  .sidebar-close   { display: none; }
}

/* ── Profile Modal ────────────────────────────────────────── */
.profile-loading {
  display: flex; justify-content: center; align-items: center;
  padding: 40px;
}

.profile-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.profile-avatar-lg {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.profile-hero-info { display: flex; flex-direction: column; gap: 3px; }
.profile-name { font-size: 17px; font-weight: 700; color: var(--text); }
.profile-username { font-size: 13px; color: var(--text-3); }
.profile-since {
  font-size: 12px; color: var(--text-3);
  display: flex; align-items: center; gap: 5px;
  margin-top: 2px;
}
.profile-since i { font-size: 11px; }

.profile-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 20px;
}
.profile-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.profile-stat-card.done    { border-top: 3px solid var(--success); }
.profile-stat-card.doing   { border-top: 3px solid var(--info); }
.profile-stat-card.overdue { border-top: 3px solid var(--danger); }

.psc-val   { font-size: 22px; font-weight: 700; color: var(--text); }
.psc-label { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.profile-stat-card.done    .psc-val { color: var(--success); }
.profile-stat-card.doing   .psc-val { color: var(--info); }
.profile-stat-card.overdue .psc-val { color: var(--danger); }

.profile-progress-section { margin-bottom: 20px; }
.profile-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-2); margin-bottom: 8px;
}
.profile-pct { font-weight: 700; color: var(--primary); }

.profile-extra {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.profile-extra-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-2);
}
.profile-extra-item i { font-size: 13px; color: var(--text-3); width: 16px; text-align: center; }
.profile-extra-item b { color: var(--text); }

/* ── Balance Modal ────────────────────────────────────────── */
.balance-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  gap: 4px;
}
.balance-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
  background: var(--primary-dim);
  color: var(--primary);
}
.balance-points { font-size: 48px; font-weight: 800; color: var(--primary); line-height: 1; }
.balance-points-label { font-size: 13px; color: var(--text-3); }
.balance-level {
  margin-top: 6px;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 13px; font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.balance-progress-section { margin-bottom: 20px; }
.balance-next-hint { font-size: 11px; color: var(--text-3); margin-top: 6px; text-align: right; }

.balance-breakdown {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.balance-breakdown-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); margin-bottom: 2px;
}
.balance-rule {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-2);
}
.balance-rule-desc { display: flex; align-items: center; gap: 8px; }
.balance-rule-desc i { font-size: 12px; color: var(--primary); width: 14px; text-align: center; }
.balance-rule-pts {
  font-weight: 700; color: var(--primary);
  background: var(--primary-dim);
  padding: 2px 8px; border-radius: 10px;
  font-size: 12px;
}

.balance-levels { display: flex; flex-direction: column; gap: 4px; }
.balance-levels-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); margin-bottom: 6px;
}
.balance-level-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.balance-level-row.active {
  background: var(--primary-dim);
}
.blr-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.blr-icon.level-leaf  { background: #e8f5e9; color: #43a047; }
.blr-icon.level-bolt  { background: #e3f2fd; color: #1e88e5; }
.blr-icon.level-fire  { background: #fff3e0; color: #fb8c00; }
.blr-icon.level-gem   { background: #f3e5f5; color: #8e24aa; }
.blr-icon.level-crown { background: #fffde7; color: #f9a825; }

.blr-name  { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.blr-range { font-size: 11px; color: var(--text-3); }
.balance-level-row.active .blr-name  { color: var(--primary); }
.balance-level-row.active .blr-range { color: var(--primary); opacity: .7; }

/* hero icon color follows active level */
.balance-icon.level-leaf  { background: #e8f5e9; color: #43a047; }
.balance-icon.level-bolt  { background: #e3f2fd; color: #1e88e5; }
.balance-icon.level-fire  { background: #fff3e0; color: #fb8c00; }
.balance-icon.level-gem   { background: #f3e5f5; color: #8e24aa; }
.balance-icon.level-crown { background: #fffde7; color: #f9a825; }
