/* bounty dashboard: colour picker, overview banner, visual polish */

/* ------------------------------------------------------------ colour picker */
.cp { display: grid; grid-template-columns: 1fr 300px; gap: 22px; width: 100%; align-items: start; }
.cp-preview { position: relative; display: flex; border-radius: 12px; overflow: hidden; background: #2b2d31; border: 1px solid rgba(255,255,255,.06); font-family: 'gg sans', var(--font); transition: box-shadow .3s; }
.cp-stripe { width: 4px; flex: none; transition: background .25s var(--ease); }
.cp-msg { padding: 14px 16px; flex: 1; min-width: 0; }
.cp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cp-head img { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; background: #1e1f22; }
.cp-head b { color: #f2f3f5; }
.cp-app { font-size: 9px; font-weight: 800; background: #5865f2; color: #fff; padding: 1px 4px; border-radius: 3px; }
.cp-body { margin-top: 10px; display: grid; gap: 3px; }
.cp-body b { color: #f2f3f5; font-size: 14px; }
.cp-body span { color: #b5bac1; font-size: 13px; }
.cp-meta { margin-top: 10px; font-size: 11.5px; color: #949ba4; }
.cp-name { font-weight: 600; font-family: var(--mono); font-size: 11.5px; }
.cp-sub { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #737f99; margin: 16px 0 8px; }
.cp-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 8px; }
.cp-chip {
  aspect-ratio: 1; border-radius: 9px; background: var(--c); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: #99a3b9; font-size: 12px; position: relative;
  transition: transform .25s var(--spring), box-shadow .2s;
}
.cp-chip.clear { background: repeating-conic-gradient(#1e232e 0 25%, #141820 0 50%) 0 0/10px 10px; }
.cp-chip:hover { transform: translateY(-2px) scale(1.06); }
.cp-chip.on { box-shadow: 0 0 0 2px #08090c, 0 0 0 4px #e3eafa; }
.cp-right { display: grid; gap: 12px; }
.cp-sv { position: relative; height: 150px; border-radius: 12px; cursor: crosshair; touch-action: none; outline: 0; border: 1px solid rgba(255,255,255,.08); }
.cp-sv:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.cp-thumb, .cp-knob {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.2); pointer-events: none;
  transition: transform .15s var(--spring);
}
.dragging .cp-thumb, .dragging .cp-knob { transform: translate(-50%, -50%) scale(1.2); }
.cp-hue { position: relative; height: 14px; border-radius: 99px; cursor: pointer; touch-action: none;
  background: linear-gradient(90deg, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #105eef 67%, #5e8ce8 83%, #f00); border: 1px solid rgba(255,255,255,.08); }
.cp-knob { top: 50%; }
.cp-row { display: flex; gap: 8px; align-items: center; }
.cp-swatch { width: 38px; height: 38px; border-radius: 10px; flex: none; border: 1px solid rgba(255,255,255,.1); }
.cp-hex { font-family: var(--mono); text-transform: uppercase; }
.cp-eye { width: 40px; padding: 0; flex: none; }

/* ------------------------------------------------------------ overview banner */
.sb { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; margin-bottom: 18px; flex-wrap: wrap; }
.sb-glow { position: absolute; inset: -40%; background-size: cover; background-position: center; filter: blur(70px) saturate(1.4); opacity: .18; pointer-events: none; }
.sb-left { position: relative; display: flex; align-items: center; gap: 18px; min-width: 0; }
.sb-icon { width: 68px; height: 68px; border-radius: 20px; font-size: 26px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.sb h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sb-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #c3d4f6; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.sb-chips i { color: #9ea8be; font-size: 11px; }
.sb-right { position: relative; display: flex; align-items: center; gap: 18px; }
.sb-ring {
  --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, #0c0f16 79%, transparent 80% 100%), conic-gradient(#e2eafb calc(var(--p) * 360deg), #1e232e 0);
  transition: --p 1s var(--ease);
}
.sb-ring b { font-size: 17px; line-height: 1; }
.sb-ring small { font-size: 10px; color: var(--muted); margin-top: 3px; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.sb-checks { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 4px 14px; min-height: 76px; }
.sb-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9eadce; padding: 4px 6px; border-radius: 7px; transition: background .15s, color .15s; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.sb-check i:first-child { font-size: 12px; color: #38445b; }
.sb-check.on { color: #e3eafa; }
.sb-check.on i:first-child { color: var(--good); }
.sb-check .fa-chevron-right { margin-left: auto; font-size: 9px; opacity: 0; transition: opacity .15s; }
.sb-check:hover { background: rgba(255,255,255,.05); color: #fff; }
.sb-check:hover .fa-chevron-right { opacity: .6; }

/* ------------------------------------------------------------ polish */
.group h6 { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #505a6e; }
.page-head h1 .pi { box-shadow: 0 8px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.kpi-num { background: linear-gradient(180deg, #fff 40%, #c7d0e3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-pad.kpi:hover, .stat:hover { box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.srow { transition: background .2s; }
.srow:hover { background: rgba(255,255,255,.012); }
.btn.danger { border: 1px solid rgba(248,113,113,.28); color: #fecaca; }

@media (max-width: 980px) {
  .cp { grid-template-columns: 1fr; }
  .sb-right { width: 100%; }
}
@media (max-width: 640px) { .sb-checks { grid-template-columns: 1fr; } }
