/* Drexorra HRMS · Page parts: detail panels, performance blocks, HRMS pages, dashboard */
/* ---------- case detail ---------- */
td.detail {
  background: var(--card2);
  padding: 20px;
  white-space: normal;
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
@media (max-width: 1200px) {
  .dgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .dgrid {
    grid-template-columns: 1fr 1fr;
  }
}
.dcell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 10px;
  min-width: 0;
}
.dcell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.dcell span {
  display: block;
  min-height: 18px;
  word-break: break-word;
  font-weight: 600;
  font-size: 13px;
}
.sec {
  font-family: var(--display);
  font-size: 17px;
  margin: 20px 0 10px;
}
.hitem {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.hitem .m {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.hitem b {
  display: block;
  margin: 2px 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.panel h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 12px;
}
.drow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .drow {
    grid-template-columns: 1fr;
  }
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}
.note {
  background: var(--chip);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.note.warn {
  background: var(--warnbg);
  color: var(--warn);
  font-weight: 600;
}
.drop {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}
.drop:hover,
.drop.over {
  border-color: var(--gold);
  background: var(--card2);
}

/* ---------- performance ---------- */
.perfhero {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr;
  gap: 28px;
  align-items: center;
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 22px;
  color: #fff;
  background: radial-gradient(700px 260px at 0% 0%, #5b3a87, transparent), linear-gradient(150deg, #2e1a47, var(--ink));
  box-shadow: var(--shadow-hi);
}
@media (max-width: 1000px) {
  .perfhero {
    grid-template-columns: 1fr;
  }
}
.ph-k {
  color: #c8b8e8;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ph-rank {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  color: var(--gold2);
  line-height: 1.05;
}
.ph-rank small {
  font-size: 18px;
  color: #d8cdee;
  font-weight: 600;
}
.ph-main p {
  margin: 6px 0 0;
  color: #d8cdee;
  font-weight: 600;
}
.ph-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ph-stats div {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
}
.ph-stats b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
}
.ph-stats span {
  color: #c8b8e8;
  font-size: 12.5px;
  font-weight: 600;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}
@media (max-width: 800px) {
  .podium {
    grid-template-columns: 1fr;
  }
}
.pod {
  position: relative;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 16px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
}
.pod:hover {
  transform: translateY(-4px);
}
.pod .crown {
  height: 22px;
  color: var(--gold);
  margin-bottom: 4px;
}
.pod .crown svg {
  width: 28px;
  height: 22px;
}
.pod .av {
  width: 66px;
  height: 66px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(145deg, #8c6be8, var(--ink3));
  box-shadow:
    0 0 0 4px var(--card),
    0 0 0 7px var(--m, #2ec28a),
    0 12px 22px -8px rgba(30, 17, 48, 0.5);
}
.pod .pn {
  display: block;
  font-family: var(--display);
  font-size: 19px;
}
.pod .pa {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold3);
  margin-top: 6px;
}
.pod small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.pod .ped {
  margin: 16px -16px 0;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(180deg, var(--m, #2ec28a), color-mix(in srgb, var(--m, #2ec28a) 60%, #000));
}
.pod.gold {
  --m: #2ec28a;
  order: 2;
}
.pod.gold .ped {
  height: 84px;
}
.pod.gold .av {
  width: 78px;
  height: 78px;
}
.pod.silver {
  --m: #a497bc;
  order: 1;
}
.pod.silver .ped {
  height: 62px;
}
.pod.bronze {
  --m: #b97a41;
  order: 3;
}
.pod.bronze .ped {
  height: 44px;
}
@media (max-width: 800px) {
  .pod.gold,
  .pod.silver,
  .pod.bronze {
    order: 0;
  }
}
.rk {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 800;
  background: var(--chip);
  color: var(--text);
}
.rk.gold {
  background: linear-gradient(145deg, var(--gold2), var(--gold));
  color: var(--ink);
  box-shadow: 0 6px 12px -6px rgba(46, 194, 138, 0.9);
}
.rk.silver {
  background: linear-gradient(145deg, #f6f2fb, #a497bc);
  color: var(--ink);
}
.rk.bronze {
  background: linear-gradient(145deg, #c9f2df, #b97a41);
  color: #fff;
}
.who2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.who2 small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.av2 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(145deg, #8c6be8, var(--ink3));
}
tr.me {
  background: color-mix(in srgb, var(--gold) 12%, transparent) !important;
}
.minibar {
  display: inline-block;
  width: 60px;
  height: 7px;
  border-radius: 9px;
  background: var(--chip);
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.minibar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4fd1a5, var(--ok));
}
.mb {
  font-weight: 700;
}
.score {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.score .bar {
  flex: 1;
  height: 10px;
  border-radius: 9px;
  background: var(--chip);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(30, 17, 48, 0.15);
}
.score .bar i {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  box-shadow: 0 0 12px rgba(46, 194, 138, 0.6);
}
.score span {
  font-family: var(--display);
  font-weight: 800;
  min-width: 30px;
  text-align: right;
}
.ring {
  display: block;
}
.tw.flat {
  box-shadow: none;
}
.muted {
  color: var(--muted);
}
td.r,
th.r {
  text-align: right;
}
.actions {
  white-space: nowrap;
}
.admintools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px dashed var(--line);
}
.hist h3 {
  margin-top: 18px;
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.phone .pn {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition:
    transform 0.12s,
    filter 0.12s;
  box-shadow: 0 4px 10px -5px rgba(30, 17, 48, 0.5);
}
.ch:hover {
  transform: translateY(-1px) scale(1.06);
  filter: brightness(1.05);
}
.ch svg {
  width: 16px;
  height: 16px;
}
.ch.wa {
  background: linear-gradient(145deg, #3be07a, #13a452);
  color: #fff;
}
.ch.sms {
  background: linear-gradient(145deg, #7fa2ff, #2b59d4);
  color: #fff;
}
.shotbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 7%, var(--card));
  cursor: pointer;
  text-align: center;
  color: var(--text);
}
.shotbox:hover {
  background: color-mix(in srgb, var(--gold) 14%, var(--card));
}
.shotbox svg {
  width: 30px;
  height: 30px;
  color: var(--gold3);
}
.shotbox small {
  color: var(--muted);
  font-weight: 600;
}
.shotok {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--okbg);
  color: var(--ok);
  font-size: 13.5px;
}
.shotok img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.pill.warnp {
  background: var(--warnbg);
  color: var(--warn);
  border-color: transparent;
}
.pill.warnp b {
  color: var(--warn);
}

/* ---------- HRMS ---------- */
.side {
  overflow-y: auto;
}
.navsec {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #7f8db8;
  padding: 14px 12px 4px;
  text-transform: uppercase;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow);
}
.tab {
  border: 0;
  background: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.tab:hover {
  color: var(--text);
}
.tab.on {
  background: linear-gradient(180deg, var(--ink3), var(--ink));
  color: #fff;
}
.checkcard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 22px;
  padding: 20px 26px;
  margin-bottom: 20px;
  color: #fff;
  background: radial-gradient(600px 220px at 100% 0%, rgba(156, 240, 201, 0.22), transparent),
    linear-gradient(150deg, #1c2f6e, var(--ink));
  box-shadow: var(--shadow-hi);
}
.checkcard p {
  margin: 4px 0 0;
  color: #d8cdee;
  font-weight: 600;
}
.cc-time {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--gold2);
  line-height: 1.1;
}
.btn-big {
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 14px;
}
.hgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.balrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.balrow.big {
  margin-bottom: 18px;
}
.bal {
  flex: 1 1 120px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.bal b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  color: var(--ink3);
}
.bal span {
  display: block;
  font-weight: 700;
  font-size: 13px;
}
.bal small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
}
.bal.tot {
  background: linear-gradient(150deg, #4a2a6b, var(--ink));
  color: #fff;
  border-color: transparent;
}
.bal.tot b {
  color: var(--gold2);
}
.bal.tot small {
  color: #cdbfea;
}
.bdline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.hol {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.hol b {
  min-width: 120px;
}
.post-mini {
  cursor: pointer;
}
.click {
  cursor: pointer;
}
.profhero {
  display: grid;
  grid-template-columns: auto 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 18px;
  color: #fff;
  background: radial-gradient(700px 260px at 0% 0%, #5b3a87, transparent), linear-gradient(150deg, #2e1a47, var(--ink));
  box-shadow: var(--shadow-hi);
}
@media (max-width: 1000px) {
  .profhero {
    grid-template-columns: 1fr;
  }
}
.profhero p {
  margin: 4px 0 0;
  color: #d8cdee;
  font-weight: 600;
}
.profhero b {
  color: #fff;
}
.av.big {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #e3fbf0, var(--gold) 60%, var(--gold3));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}
.pnm {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
}
.pnm .inp {
  font-size: 20px;
  max-width: 380px;
}
.dcell {
  position: relative;
}
.dcell .inp {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 14px;
}
.fix {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 0;
  background: var(--chip);
  color: var(--muted);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.dcell:hover .fix,
.fix:focus {
  opacity: 1;
}
@media (hover: none) {
  .fix {
    opacity: 1;
  }
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  flex: 3 1 400px;
}
table.att {
  font-size: 12.5px;
}
table.att th,
table.att td {
  padding: 7px 4px;
}
table.att th.wo {
  color: var(--bad);
}
.stick {
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
  min-width: 160px;
  padding-left: 14px !important;
}
.ac {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 4px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  background: var(--bluebg);
  color: var(--blue);
}
.ac-P {
  background: var(--okbg);
  color: var(--ok);
}
.ac-HD {
  background: #e3f6f4;
  color: #0e7c86;
}
.ac-A,
.ac-LOP {
  background: var(--badbg);
  color: var(--bad);
}
.ac-H {
  background: var(--warnbg);
  color: var(--warn);
}
.ac-WO {
  background: var(--chip);
  color: var(--muted);
}
.ac.late {
  box-shadow: inset 0 -3px 0 var(--bad);
}
.chk {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}
.chk input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.inp.mini {
  width: 76px;
  padding: 6px 8px;
  font-size: 13px;
  text-align: right;
}
.inp.mini2 {
  min-width: 120px;
  padding: 6px 8px;
  font-size: 13px;
}
.replist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.replist .btn {
  justify-content: flex-start;
}
.credbox {
  border: 2px solid var(--gold);
}
.credbox code {
  font-size: 14px;
  background: var(--chip);
  padding: 3px 8px;
  border-radius: 6px;
}
.bdhero {
  display: flex;
  gap: 22px;
  align-items: center;
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 18px;
  color: #fff;
  background: radial-gradient(500px 200px at 100% 0%, rgba(156, 240, 201, 0.35), transparent),
    linear-gradient(150deg, #3a2a6e, var(--ink));
  box-shadow: var(--shadow-hi);
}
.bd-emoji {
  font-size: 56px;
}
.bd-names {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold2);
}
.bdhero p {
  margin: 4px 0 0;
  color: #d6ddf2;
  font-weight: 600;
}
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.wpost {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.wpost:hover {
  transform: translateY(-4px);
}
.wpost img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--chip);
}
.wnoimg {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  font-size: 64px;
  background: linear-gradient(150deg, #4a2a6b, var(--ink));
}
.wbody {
  padding: 14px 16px;
}
.wbody h4 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 6px;
}
.wbody p {
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.slipwrap {
  cursor: default;
}
.slip {
  background: #fff;
  color: #1b1028;
  border-radius: 16px;
  padding: 26px;
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
}
.slip-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.slip .dcell {
  background: #faf7fd;
  border-color: #e6dff1;
}
.slip table {
  width: 100%;
}
.slip th {
  background: #faf7fd;
}
.slip-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(150deg, #4a2a6b, #1e1130);
  color: #fff;
  font-weight: 700;
}
.slip-net b {
  font-family: var(--display);
  font-size: 26px;
  color: #9cf0c9;
}
@media print {
  body > *:not(.slipwrap) {
    display: none !important;
  }
  .slipwrap {
    position: static;
    background: none;
    padding: 0;
  }
  .slip {
    max-height: none;
    box-shadow: none;
  }
  .noprint {
    display: none !important;
  }
}

/* ---------- 3D dashboard ---------- */
.tilt {
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s;
}
.tilt:hover::after {
  opacity: 1;
}
.kpi.tilt:hover {
  transform: none;
}
.dhero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .dhero {
    grid-template-columns: 1fr;
  }
}
.dh-left {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 26px 28px;
  color: #fff;
  background: radial-gradient(700px 300px at 0% 0%, #3550a8, transparent), linear-gradient(150deg, #1a2b66, var(--ink));
  box-shadow:
    0 30px 60px -24px rgba(30, 17, 48, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.dh-left h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  margin: 8px 0 4px;
  letter-spacing: -0.4px;
}
.dh-left p {
  margin: 0;
  color: #d8cdee;
  font-weight: 600;
}
.dh-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dh-chips span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  backdrop-filter: blur(6px);
}
.dh-chips b {
  font-family: var(--display);
  color: var(--gold2);
  font-size: 16px;
}
.dh-chips .hot {
  background: rgba(156, 240, 201, 0.18);
  border-color: rgba(156, 240, 201, 0.45);
}
.orbs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  pointer-events: none;
}
.orbs i:nth-child(1) {
  width: 150px;
  height: 150px;
  right: -30px;
  top: -40px;
  background: radial-gradient(circle at 30% 30%, #e3fbf0, #2ec28a 55%, transparent 72%);
  animation: float 9s ease-in-out infinite;
}
.orbs i:nth-child(2) {
  width: 80px;
  height: 80px;
  right: 120px;
  bottom: -20px;
  background: radial-gradient(circle at 30% 30%, #9fb4ff, #2b59d4 60%, transparent 75%);
  animation: float 11s ease-in-out infinite reverse;
}
.orbs i:nth-child(3) {
  width: 36px;
  height: 36px;
  right: 70px;
  top: 70px;
  background: radial-gradient(circle at 30% 30%, #fff, #c9d1ee 60%, transparent 75%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbs i {
    animation: none;
  }
}
.checkcard {
  margin-bottom: 0;
  border-radius: 26px;
  background: radial-gradient(500px 220px at 100% 0%, rgba(156, 240, 201, 0.3), transparent),
    linear-gradient(150deg, #4a2a6b, #241536);
}
.hgrid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.glass {
  background: linear-gradient(160deg, var(--card), var(--card2));
}
.glance {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.donut {
  filter: drop-shadow(0 12px 18px rgba(30, 17, 48, 0.18));
}
.dn-v {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  fill: var(--text);
}
.dn-s {
  font-size: 12px;
  font-weight: 700;
  fill: var(--muted);
}
.dlegend {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  min-width: 160px;
}
.dlegend span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.dlegend i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}
.dlegend b {
  margin-left: auto;
  font-family: var(--display);
  font-size: 17px;
}
.bars3d {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding: 10px 4px 0;
  perspective: 600px;
}
.b3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.b3 .col {
  position: relative;
  margin-top: auto;
  width: 70%;
  max-width: 46px;
  height: max(var(--h), 4%);
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(90deg, #2ec28a 0%, #9cf0c9 45%, #b08a34 100%);
  box-shadow:
    0 14px 20px -10px rgba(46, 194, 138, 0.9),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  transform: rotateX(8deg);
  transform-origin: bottom;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.b3 .col::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e3fbf0, #d9b762);
}
.b3 .col span {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
}
.b3 small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.b3 small.off {
  color: var(--bad);
}
.rings {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ringc {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ringc b {
  margin-top: 6px;
}
.ringc small {
  color: var(--muted);
  font-weight: 600;
}
.ringc.total {
  background: linear-gradient(150deg, #4a2a6b, var(--ink));
  color: #fff;
  border-color: transparent;
  justify-content: center;
}
.ringc.total small {
  color: #cdbfea;
}
.tot-n {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 800;
  color: var(--gold2);
  line-height: 1;
}
.qa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.qbtn:hover {
  transform: translateY(-3px);
}
.qbtn span {
  font-size: 28px;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 30, 0.78);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
  cursor: zoom-out;
}
.modal img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  background: #fff;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 30;
  max-width: 90vw;
}
@media (max-width: 900px) {
  #app {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .side .brand {
    padding: 0 8px 0 0;
  }
  .side .spacer,
  .who {
    display: none;
  }
  .nav {
    width: auto;
  }
  .main {
    padding: 18px 14px 40px;
  }
}
.bdwish {
  font-weight: 700;
  color: #d7fbea;
  margin-top: 4px;
}
.attbox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.attst {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.attst.red {
  color: #ff8a80;
}
.attst.green {
  color: #5be0a6;
}
.att-red {
  background: linear-gradient(180deg, #e5484d, #b42318) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 24px -10px rgba(229, 72, 77, 0.8);
}
.att-green {
  background: linear-gradient(180deg, #22c55e, #15803d) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 24px -10px rgba(34, 197, 94, 0.8);
}
.att-red:hover,
.att-green:hover {
  filter: brightness(1.08);
}
.pulse {
  animation: attpulse 1.8s ease-in-out infinite;
}
@keyframes attpulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 72, 77, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}
