:root {
  --bg: #0c1220;
  --bg-2: #121a2b;
  --surface: #161f32;
  --surface-2: #1c2740;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e8edf5;
  --muted: #94a3b8;
  --faint: #64748b;
  --primary: #4f6ef7;
  --primary-2: #7b93ff;
  --accent: #a855f7;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;
  --info-text: #bae6fd;
  --tint: #c7d2fe;
  --tint-2: #a5b4fc;
  --tint-soft: #e0e7ff;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 60px;
  --sidebar-w: 248px;
  --bottom-nav-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --brand-from: #4f6ef7;
  --brand-to: #3b82f6;
  --brand-mid: #3730a3;
  --brand-deep: #312e81;
  --link-hover: #c7d2fe;
  --sidebar-accent: #4f6ef7;
  --card-radius: var(--radius-lg);
  --chat-bg: #0e1420;
  --chat-surface: #121826;
  --chat-bubble: #1c2436;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body.panel-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* ?? Left sidebar ?? */
.panel-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px calc(16px + var(--safe-b));
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: inset 3px 0 0 var(--sidebar-accent);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  min-width: 0;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-close { display: none; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.sidebar-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-user strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.sidebar-user span {
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.panel-sidebar .mode-toggle {
  width: 100%;
  margin: 2px 0 6px;
}
.panel-sidebar .mode-toggle-btn { flex: 1; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 10px;
}
.sidebar-nav a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-nav a.active {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--tint);
}
.mode-giver .sidebar-nav a.active {
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
}
.sidebar-nav a em.nav-count,
.nav-links a em.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--tint-soft);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.nav-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fca5a5;
  font-weight: 700;
  font-size: 13.5px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.nav-logout:hover { color: #fecaca; background: rgba(239, 68, 68, 0.08); }
.nav-logout i { width: 18px; text-align: center; }

/* ?? Content shell ?? */
.panel-shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.panel-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-t);
}
.panel-top-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  min-height: var(--header-h);
}
.top-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: #fff; }
.icon-btn .badge-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.balance-pill {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.22);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.balance-pill:hover { color: #bbf7d0; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  max-width: 160px;
}
.user-chip:hover { color: #fff; border-color: rgba(148, 163, 184, 0.28); }
.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ?? Mode toggle ?? */
.mode-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.mode-toggle-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.mode-toggle-btn.on {
  color: #fff;
  background: var(--primary);
}
.mode-giver .mode-toggle-btn.on { background: #059669; }

.mobile-nav-toggle { display: none; }

/* ?? Scrim ?? */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  display: none;
}
.nav-scrim.show {
  opacity: 1;
  pointer-events: auto;
}

/* ?? Bottom nav (mobile) ?? */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 6px 4px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a i,
.bottom-nav button i { font-size: 17px; }
.bottom-nav a.active,
.bottom-nav a:hover,
.bottom-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.bottom-nav a.active { color: var(--primary-2); }

/* ?? Main ?? */
.panel-main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px calc(40px + var(--bottom-nav-h) + var(--safe-b));
  flex: 1;
}
.alert-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--info) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--info) 22%, transparent);
  color: var(--info-text);
  font-size: 14px;
  font-weight: 500;
}
.alert-bar > i { margin-top: 2px; flex-shrink: 0; }
.alert-bar > span { flex: 1; min-width: 0; }
.alert-bar .alert-action {
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.alert-bar.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}
.alert-bar.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}
.alert-bar.err {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.card-pad { padding: 18px; }
.card-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-gap { margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.stat {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat .label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 22px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn-success { background: #16a34a; }
.btn-danger { background: #dc2626; }
.btn-info { background: var(--primary); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
}
.form-control:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a.active { color: #fff; border-bottom-color: var(--primary); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
table.data { width: 100%; border-collapse: collapse; min-width: 480px; }
table.data th,
table.data td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13.5px;
}
table.data th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-ok { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.badge-wait { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.badge-no { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.badge-info { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--tint); }

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
}
.muted-p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }

/* Profile completion */
.complete-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}
.ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--p) * 1%), rgba(148, 163, 184, 0.15) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
}
.ring-inner { position: relative; text-align: center; z-index: 1; }
.ring-inner strong { display: block; font-size: 26px; font-weight: 800; }
.ring-inner span { font-size: 11px; color: var(--muted); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step.done {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.28);
}
.step h4 { margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.step .meta { color: var(--muted); font-size: 11.5px; }
.reward-track {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.reward-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); }
.reward-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.avatar-box { text-align: center; }
.avatar-box img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: var(--bg-2);
}

/* Tasks */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.task-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
}
.task-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.task-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--tint);
  font-size: 14px;
}
.task-card h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.task-card-foot .pay { font-weight: 800; color: var(--success); font-size: 15px; }
.task-card-foot .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.task-hero {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
}
.task-platform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.task-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.task-lead { margin: 0 0 14px; color: var(--muted); max-width: 640px; line-height: 1.55; }
.task-reward-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.task-reward-box .label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.reward-big { font-size: 24px; font-weight: 800; color: var(--success); }

.howto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.howto-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.howto-list .n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--tint);
}
.hint-box {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}
.hint-box i { color: var(--warning); margin-top: 2px; }
.hint-box strong { display: block; margin-bottom: 4px; }
.hint-box p { margin: 0; color: var(--muted); font-size: 13.5px; }
.hint-inline {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  background: color-mix(in srgb, var(--info) 8%, transparent);
  color: var(--info-text);
  border: 1px solid color-mix(in srgb, var(--info) 18%, transparent);
}

.dropzone {
  display: block;
  position: relative;
  cursor: pointer;
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: var(--bg-2);
  min-height: 150px;
  overflow: hidden;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--primary-2);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-inner {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}
.dz-inner i { font-size: 28px; color: var(--primary-2); margin-bottom: 4px; }
.dz-inner strong { color: var(--text); font-size: 15px; }
.dz-inner span { font-size: 12.5px; }
.proof-preview { width: 100%; max-height: 240px; object-fit: contain; display: block; background: #000; }
.proof-slots { display: grid; gap: 10px; }
.proof-slot { position: relative; }
.proof-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
}
.proof-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #000;
}
.proof-card-media { position: relative; }
.proof-count-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.proof-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 700; }

.proof-toolbar { margin-bottom: 14px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}
.filter-pills .pill.active {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.filter-pills .pill em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.proof-cards { display: grid; gap: 10px; }
.proof-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.proof-card-media img,
.proof-card-media .no-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.proof-card-media .no-img {
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--faint);
}
.proof-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.proof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}
.reject-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}
.mini-proof-list { display: grid; gap: 8px; }
.mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 900px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}
.quick-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.quick-action:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  color: #fff;
}
.quick-action i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--tint);
  font-size: 15px;
}
.quick-action strong { font-size: 14px; }
.quick-action span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.brand-mark-giver {
  background: linear-gradient(145deg, #10b981, #0ea5e9) !important;
}
.balance-pill-ad {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #86efac;
}
.balance-pill-ad:hover { color: #bbf7d0; }

.mode-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.mode-banner strong { display: block; font-size: 14px; margin-bottom: 2px; }
.mode-banner span { color: var(--muted); font-size: 13px; }
.mode-banner a { font-weight: 800; font-size: 13px; white-space: nowrap; }
.mode-banner-worker {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
}
.mode-banner-giver {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}
.mode-banner-giver a { color: #86efac; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  padding-bottom: calc(18px + var(--safe-b));
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 20px 18px;
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.bonus-modal-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.bonus-modal h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.bonus-modal p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bonus-modal-reward {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.bonus-modal-reward span { font-size: 28px; font-weight: 800; color: var(--success); }
.bonus-modal-reward em { font-style: normal; color: var(--muted); font-weight: 700; }
.bonus-days-mini {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bonus-days-mini span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.bonus-days-mini span.on {
  color: #fff;
  background: rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.5);
}
.bonus-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-line {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.welcome-line strong { color: var(--text); }

/* ?? Mobile / tablet: off-canvas sidebar ?? */
@media (max-width: 1024px) {
  :root { --bottom-nav-h: 64px; }

  .panel-shell { margin-left: 0; }

  .panel-sidebar {
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
    border-right: 1px solid var(--border);
    padding-top: calc(12px + var(--safe-t));
  }
  .panel-sidebar.open { transform: translateX(0); }

  .nav-close { display: grid; }
  .nav-scrim { display: block; }
  .mobile-nav-toggle { display: grid; }
  .bottom-nav { display: grid; }
  .user-chip span { display: none; }

  .panel-top-inner { padding: 10px 14px; }
  .panel-main {
    padding: 16px 14px calc(40px + var(--bottom-nav-h) + var(--safe-b));
  }
  .page-head h1 { font-size: 20px; }
  .task-title { font-size: 20px; }
  .stat .value { font-size: 20px; }

  .complete-grid,
  .grid-2,
  .grid-3,
  .form-row,
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 18px; }
  .complete-grid { justify-items: center; text-align: center; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .proof-card { grid-template-columns: 64px 1fr; }
  .proof-card-media img,
  .proof-card-media .no-img { width: 64px; height: 64px; }
  .alert-bar { flex-wrap: wrap; }
  .alert-bar .alert-action { width: 100%; text-align: center; }
  .card-pad { padding: 16px; }
  .task-filters .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .step-grid { grid-template-columns: 1fr; }
  .task-card-foot { flex-direction: column; align-items: stretch; }
  .task-card-foot .actions { width: 100%; }
  .task-card-foot .actions .btn { flex: 1; }
  .bottom-nav a span,
  .bottom-nav button span { font-size: 9.5px; }
  .balance-pill { padding: 8px 10px; font-size: 12px; }
}

/* ?? Bonus tabs / cards (G?reWin tarz?) ?? */
.bonus-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.bonus-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.bonus-tab:hover { color: #fff; border-color: rgba(148, 163, 184, 0.28); }
.bonus-tab.on {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 35%, transparent);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}
.bonus-panel { margin-bottom: 16px; }
.bonus-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.bonus-panel-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--tint);
  flex-shrink: 0;
}
.bonus-main-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.bonus-main-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bonus-flame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--tint-2);
  font-size: 18px;
  flex-shrink: 0;
}
.bonus-main-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bonus-main-meta strong {
  font-size: 15px;
  line-height: 1.3;
}
.bonus-pay {
  color: var(--success);
  font-weight: 800;
  font-size: 20px;
}
.bonus-main-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.bonus-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bonus-step {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}
.bonus-step.done {
  color: #fff;
  background: rgba(34, 197, 94, 0.55);
  border-color: rgba(34, 197, 94, 0.65);
}
.bonus-step.current {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
}
.bonus-claim-btn {
  min-height: 48px;
  font-size: 15px;
  border-radius: 12px;
}
.bonus-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.bonus-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bonus-list-item.is-current {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}
.bonus-list-item.is-done {
  border-color: rgba(34, 197, 94, 0.3);
}
.bli-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bli-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.bli-left strong { display: block; font-size: 14px; }
.bli-left span { color: var(--muted); font-size: 12px; }
.bli-right {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.bli-right strong { color: var(--success); font-size: 15px; }
.bli-right em { font-style: normal; }

@media (max-width: 1024px) {
  .bonus-tab span { font-size: 12px; }
  .bonus-tab i { font-size: 14px; }
}

/* ?? XP / seviye kart? + g?rev hedefleri ?? */
.xp-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
}
.xp-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.xp-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--primary-2), var(--primary) 55%, var(--brand-deep));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
  flex: none;
}
.xp-meta { flex: 1; min-width: 0; }
.xp-level-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.xp-level-line strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--tint-2);
}
.xp-level-line span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.xp-stats {
  display: flex;
  gap: 18px;
}
.xp-stats div { display: grid; gap: 2px; }
.xp-stats b { font-size: 16px; font-weight: 800; line-height: 1; }
.xp-stats em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.xp-bar-wrap { display: grid; gap: 6px; }
.xp-bar {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  overflow: hidden;
}
.xp-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-to));
}
.xp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.goal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.goal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}
.goal-tab em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  color: var(--tint);
}
.goal-tab.on {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}
.goal-panel { margin-bottom: 18px; }
.goal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.goal-panel-head strong {
  font-size: 13px;
  letter-spacing: 0.06em;
}
.goal-panel-head span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.goal-list { display: grid; gap: 10px; }
.goal-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.goal-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.goal-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  flex: none;
}
.goal-info { flex: 1; min-width: 0; }
.goal-info strong { display: block; font-size: 15px; }
.goal-info span { color: var(--muted); font-size: 12.5px; }
.goal-pay {
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
}
.goal-progress { margin-bottom: 12px; }
.goal-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  margin-bottom: 6px;
}
.goal-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
}
.goal-progress-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.goal-btn { min-height: 44px; font-weight: 800; }
.goal-btn.locked {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  border: 1px solid var(--border);
}
.goal-btn.done {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.home-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.home-goal-card {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-goal-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-goal-card .goal-progress { margin-bottom: 0; }
.home-goal-card .goal-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 900px) {
  .home-goals-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .xp-badge { width: 56px; height: 56px; font-size: 22px; }
  .xp-level-line span { font-size: 16px; }
  .goal-tab { font-size: 12px; }
}

/* ?? Liderlik tablosu ?? */
.lb-hero {
  margin-bottom: 14px;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 35%, transparent), color-mix(in srgb, var(--info) 18%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.lb-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lb-hero p {
  margin: 0;
  color: var(--tint);
  font-size: 14px;
  line-height: 1.45;
  max-width: 520px;
}
.lb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.lb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}
.lb-chip:hover { color: #fff; border-color: rgba(148, 163, 184, 0.3); }
.lb-chip.on {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 35%, transparent);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}
.lb-cat-bar {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  max-width: 320px;
}
.lb-card { margin-bottom: 12px; }
.lb-card-head { margin-bottom: 12px; }
.lb-rank-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
  font-size: 13.5px;
  font-weight: 600;
}
.lb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}
.lb-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.lb-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.lb-table tr.is-me {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.lb-rank {
  font-weight: 800;
  color: var(--muted);
  width: 64px;
}
.lb-medal {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
}
.lb-medal.m1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lb-medal.m2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.lb-medal.m3 { background: linear-gradient(135deg, #b45309, #92400e); }
.lb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lb-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
  flex-shrink: 0;
}
.lb-user strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.lb-user span {
  color: var(--muted);
  font-size: 12px;
}
.lb-score {
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
  text-align: right;
}

/* ?? Ekipler ?? */
.team-hero {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 32%, transparent), color-mix(in srgb, var(--info) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.team-hero h1 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.team-hero p { margin: 0 0 12px; color: var(--tint); font-size: 14px; line-height: 1.45; }
.team-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 13.5px;
  font-weight: 600;
}
.team-info-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--info) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--info) 28%, transparent);
  color: var(--info-text);
  font-size: 13px;
  line-height: 1.45;
}
.team-info-banner i { margin-top: 2px; color: var(--info); }
.team-tabs, .team-view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.team-tabs-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.team-card-actions {
  display: grid;
  gap: 8px;
}
.team-leave-btn {
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #fca5a5 !important;
}
@media (max-width: 560px) {
  .team-tabs-3 { grid-template-columns: 1fr; }
  .team-tabs-3 .team-tab { justify-content: flex-start; }
}
.team-tab, .team-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}
.team-tab.on, .team-view-tab.on {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}
.team-tab em, .team-view-tab em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.team-list { display: grid; gap: 12px; }
.team-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.team-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.team-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-from), var(--brand-to));
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-size: 18px;
}
.team-logo img { width: 100%; height: 100%; object-fit: cover; }
.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.team-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.team-online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.team-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.chat-sticker {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  vertical-align: middle;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* Ekip detay profil (G?reWin tarz?) */
.team-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 12px;
}
.team-back:hover { color: #fff; }
.team-profile {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 28%, transparent), color-mix(in srgb, var(--bg) 55%, transparent) 55%, color-mix(in srgb, var(--accent) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.team-profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.team-profile-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-2), var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-size: 22px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.team-profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.team-profile-info h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.team-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.tp-badge.ok {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.tp-badge.muted {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.team-profile-desc {
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}
.team-leave {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  background: transparent;
  color: #fca5a5;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.team-leave:hover { background: rgba(239, 68, 68, 0.1); }

/* WhatsApp tarz? sohbet */
.wa-chat {
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--chat-surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.wa-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border-bottom: 1px solid var(--border);
}
.wa-chat-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wa-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-from), var(--brand-to));
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.wa-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-chat-head strong {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.wa-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.wa-gear {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
  text-decoration: none;
  flex: none;
}
.wa-manage { padding: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.wa-msgs {
  max-height: min(52vh, 480px);
  min-height: 220px;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--primary) 6%, transparent), transparent 55%),
    var(--chat-bg);
  -webkit-overflow-scrolling: touch;
}
.wa-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 16px;
}
.wa-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 92%;
}
.wa-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.wa-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #1e293b;
}
.wa-bubble {
  position: relative;
  padding: 8px 10px 6px;
  border-radius: 14px;
  background: var(--chat-bubble);
  border: 1px solid var(--border);
  max-width: 100%;
  min-width: 120px;
}
.wa-row.mine .wa-bubble {
  background: linear-gradient(160deg, var(--brand-from), var(--brand-deep));
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
  border-bottom-right-radius: 4px;
}
.wa-row:not(.mine) .wa-bubble {
  border-bottom-left-radius: 4px;
}
.wa-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.wa-name strong { color: var(--tint); }
.wa-row.mine .wa-name strong { color: var(--tint-soft); }
.wa-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  white-space: nowrap;
}
.wa-badge-rank {
  background: color-mix(in srgb, var(--info) 16%, transparent);
  color: var(--info);
}
.wa-badge-role {
  color: #fff !important;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.wa-row.mine .wa-badge-rank {
  background: rgba(255, 255, 255, 0.12);
  color: var(--info-text);
}
.wa-row.mine .wa-badge-role {
  filter: brightness(1.08);
}
.wa-quote {
  margin-bottom: 6px;
  padding: 6px 8px;
  border-left: 3px solid var(--primary-2);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
}
.wa-quote b { display: block; color: var(--tint-2); margin-bottom: 2px; }
.wa-quote span { color: #94a3b8; }
.wa-text {
  font-size: 14.5px;
  line-height: 1.4;
  color: #f1f5f9;
  word-break: break-word;
}
.wa-img img {
  display: block;
  max-width: min(240px, 68vw);
  border-radius: 10px;
  margin-top: 6px;
}
.wa-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.wa-meta time {
  font-size: 10.5px;
  color: rgba(226, 232, 240, 0.55);
  font-weight: 600;
}
.wa-actions {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 4px;
}
.wa-bubble:hover .wa-actions,
.wa-bubble:focus-within .wa-actions {
  display: flex;
}
.wa-act {
  border: 0;
  background: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wa-act:hover { color: var(--tint-2); }
.wa-act.danger:hover { color: #fca5a5; }
.wa-inline-form { display: inline; margin: 0; }

.wa-composer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  background: #161f32;
}
.wa-reply-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-left: 3px solid var(--primary-2);
  font-size: 12px;
}
.wa-reply-bar small { display: block; color: var(--tint-2); font-weight: 700; }
.wa-reply-bar strong {
  color: #cbd5e1;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70vw;
}
.wa-reply-bar button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}
.wa-emoji-panel {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--chat-bg);
  max-height: 140px;
  overflow-y: auto;
}
.wa-emoji-panel[hidden] {
  display: none !important;
}
.wa-emoji-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}
.wa-emoji-chevron {
  width: 36px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: transform 0.2s ease, color 0.15s ease, background 0.15s ease;
}
.wa-emoji-chevron:hover { color: #fff; background: rgba(148, 163, 184, 0.2); }
.wa-emoji-chevron.is-open { transform: rotate(180deg); color: var(--tint-2); }
.wa-emoji {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
}
.wa-emoji:hover { background: rgba(148, 163, 184, 0.12); }
.wa-composer-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  font-size: 16px;
}
.wa-icon-btn:hover { color: #fff; background: rgba(148, 163, 184, 0.18); }
.wa-input {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--chat-bg);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.wa-input:focus {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}
.wa-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #7c6cff, #5b4dff);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 40%, transparent);
}
.wa-file-name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  padding-left: 8px;
}

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.72);
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.wa-modal[hidden] { display: none !important; }
.wa-modal-card {
  width: min(440px, 100%);
  background: #161f32;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px 18px 14px 14px;
  padding: 18px;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}
.wa-modal-card h3 { margin: 0 0 6px; font-size: 18px; }
.wa-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}
.wa-reason-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.wa-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--chat-bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
}
.wa-reason:has(input:checked) {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 560px) {
  .wa-emoji-panel { grid-template-columns: repeat(6, 1fr); }
  .wa-actions { display: flex; opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ?? Panel themes (admin: Panel Temas?) ?? */
html[data-panel-theme="emerald"] {
  --bg: #071512;
  --bg-2: #0c1c18;
  --surface: #12241f;
  --surface-2: #18332c;
  --border: rgba(110, 231, 183, 0.12);
  --text: #e8faf3;
  --muted: #8fb9ab;
  --faint: #5f857a;
  --primary: #10b981;
  --primary-2: #34d399;
  --accent: #2dd4bf;
  --info: #2dd4bf;
  --info-text: #99f6e4;
  --tint: #a7f3d0;
  --tint-2: #6ee7b7;
  --tint-soft: #d1fae5;
  --brand-from: #10b981;
  --brand-to: #059669;
  --brand-mid: #047857;
  --brand-deep: #064e3b;
  --link-hover: #a7f3d0;
  --sidebar-accent: #10b981;
  --chat-bg: #061411;
  --chat-surface: #0c1c18;
  --chat-bubble: #12241f;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
html[data-panel-theme="sunset"] {
  --bg: #140e0c;
  --bg-2: #1c1410;
  --surface: #241814;
  --surface-2: #2e1f19;
  --border: rgba(251, 191, 36, 0.14);
  --text: #fff7ed;
  --muted: #c4a484;
  --faint: #8a6f55;
  --primary: #f59e0b;
  --primary-2: #fbbf24;
  --accent: #ea580c;
  --info: #fb923c;
  --info-text: #fed7aa;
  --tint: #fde68a;
  --tint-2: #fcd34d;
  --tint-soft: #fef3c7;
  --brand-from: #f59e0b;
  --brand-to: #ea580c;
  --brand-mid: #c2410c;
  --brand-deep: #7c2d12;
  --link-hover: #fde68a;
  --sidebar-accent: #ea580c;
  --chat-bg: #100c0a;
  --chat-surface: #1c1410;
  --chat-bubble: #241814;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 28px rgba(40, 10, 0, 0.35);
}
html[data-panel-theme="ocean"] {
  --bg: #06141c;
  --bg-2: #0a1c28;
  --surface: #0f2433;
  --surface-2: #153044;
  --border: rgba(56, 189, 248, 0.14);
  --text: #e6f6ff;
  --muted: #7eabbf;
  --faint: #4f7a8c;
  --primary: #0ea5e9;
  --primary-2: #38bdf8;
  --accent: #22d3ee;
  --info: #67e8f9;
  --info-text: #cffafe;
  --tint: #bae6fd;
  --tint-2: #7dd3fc;
  --tint-soft: #e0f2fe;
  --brand-from: #0ea5e9;
  --brand-to: #0284c7;
  --brand-mid: #0369a1;
  --brand-deep: #0c4a6e;
  --link-hover: #bae6fd;
  --sidebar-accent: #0ea5e9;
  --chat-bg: #041018;
  --chat-surface: #0a1c28;
  --chat-bubble: #0f2433;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 10px 28px rgba(0, 20, 40, 0.35);
}
html[data-panel-theme="rose"] {
  --bg: #140a10;
  --bg-2: #1c1018;
  --surface: #26141e;
  --surface-2: #321a28;
  --border: rgba(244, 114, 182, 0.14);
  --text: #fff1f7;
  --muted: #c4a0b0;
  --faint: #8a6878;
  --primary: #ec4899;
  --primary-2: #f472b6;
  --accent: #f43f5e;
  --info: #fb7185;
  --info-text: #fecdd3;
  --tint: #fbcfe8;
  --tint-2: #f9a8d4;
  --tint-soft: #fce7f3;
  --brand-from: #ec4899;
  --brand-to: #db2777;
  --brand-mid: #be185d;
  --brand-deep: #831843;
  --link-hover: #fbcfe8;
  --sidebar-accent: #ec4899;
  --chat-bg: #10080c;
  --chat-surface: #1c1018;
  --chat-bubble: #26141e;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 28px rgba(40, 0, 20, 0.35);
}
html[data-panel-theme="graphite"] {
  --bg: #0d0d0f;
  --bg-2: #141416;
  --surface: #1a1a1e;
  --surface-2: #222228;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --primary: #e4e4e7;
  --primary-2: #fafafa;
  --accent: #a1a1aa;
  --info: #d4d4d8;
  --info-text: #e4e4e7;
  --tint: #d4d4d8;
  --tint-2: #a1a1aa;
  --tint-soft: #f4f4f5;
  --brand-from: #e4e4e7;
  --brand-to: #a1a1aa;
  --brand-mid: #71717a;
  --brand-deep: #3f3f46;
  --link-hover: #fafafa;
  --sidebar-accent: #e4e4e7;
  --chat-bg: #09090b;
  --chat-surface: #141416;
  --chat-bubble: #1a1a1e;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
html[data-panel-theme="crimson"] {
  --bg: #120808;
  --bg-2: #1a0e0e;
  --surface: #241212;
  --surface-2: #2e1818;
  --border: rgba(248, 113, 113, 0.14);
  --text: #fef2f2;
  --muted: #c4a0a0;
  --faint: #8a6868;
  --primary: #ef4444;
  --primary-2: #f87171;
  --accent: #f97316;
  --info: #fb923c;
  --info-text: #fed7aa;
  --tint: #fecaca;
  --tint-2: #fca5a5;
  --tint-soft: #fee2e2;
  --brand-from: #ef4444;
  --brand-to: #dc2626;
  --brand-mid: #b91c1c;
  --brand-deep: #7f1d1d;
  --link-hover: #fecaca;
  --sidebar-accent: #ef4444;
  --chat-bg: #0c0606;
  --chat-surface: #1a0e0e;
  --chat-bubble: #241212;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 28px rgba(40, 0, 0, 0.4);
}
html[data-panel-theme="light"] {
  --bg: #f1f5f9;
  --bg-2: #e8eef5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --accent: #6366f1;
  --info: #0ea5e9;
  --info-text: #0369a1;
  --tint: #1e40af;
  --tint-2: #2563eb;
  --tint-soft: #1e3a8a;
  --brand-from: #2563eb;
  --brand-to: #1d4ed8;
  --brand-mid: #1e40af;
  --brand-deep: #1e3a8a;
  --link-hover: #1e40af;
  --sidebar-accent: #2563eb;
  --chat-bg: #e8eef5;
  --chat-surface: #ffffff;
  --chat-bubble: #f1f5f9;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
html[data-panel-theme="light"] .brand,
html[data-panel-theme="light"] .brand:hover { color: var(--text); }
html[data-panel-theme="light"] .panel-top { background: color-mix(in srgb, var(--surface) 92%, transparent); }
html[data-panel-theme="light"] .sidebar-nav a { color: #334155; }
html[data-panel-theme="light"] .sidebar-nav a:hover,
html[data-panel-theme="light"] .sidebar-nav a.active { color: var(--text); background: color-mix(in srgb, var(--primary) 8%, transparent); }
html[data-panel-theme="light"] .card,
html[data-panel-theme="light"] .stat { box-shadow: var(--shadow); }
html[data-panel-theme="light"] .form-control {
  background: #fff;
  color: var(--text);
  border-color: rgba(15,23,42,.12);
}
html[data-panel-theme="light"] .team-back:hover,
html[data-panel-theme="light"] .team-tab.on,
html[data-panel-theme="light"] .team-view-tab.on,
html[data-panel-theme="light"] .goal-tab.on { color: #fff; }
html[data-panel-theme="graphite"] .sidebar-nav a.active,
html[data-panel-theme="graphite"] .goal-tab.on,
html[data-panel-theme="graphite"] .team-tab.on,
html[data-panel-theme="graphite"] .team-view-tab.on {
  color: #0d0d0f;
  background: color-mix(in srgb, var(--primary) 88%, transparent);
  border-color: var(--primary);
}
html[data-panel-theme="graphite"] .xp-badge,
html[data-panel-theme="graphite"] .team-logo,
html[data-panel-theme="graphite"] .team-profile-logo,
html[data-panel-theme="graphite"] .wa-chat-avatar {
  color: #0d0d0f;
}
html[data-panel-theme="emerald"] .mode-giver .mode-toggle-btn.on,
html[data-panel-theme="emerald"] .mode-giver .sidebar-nav a.active {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}
html[data-panel-theme="sunset"] .card { border-radius: var(--radius-lg); }
html[data-panel-theme="sunset"] .btn { border-radius: 10px; }
html[data-panel-theme="graphite"] .btn { border-radius: 8px; }
