/* =========================================================
   DODÔ Ponto — página Ponto: relógio, registro e jornada
   ========================================================= */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(242,106,27,.2);
  border-radius: 12px;
  background: linear-gradient(90deg, var(--orange-soft), #fff 75%);
  color: var(--gray-600);
  font-size: 10.5px;
}
.demo-banner strong { color: var(--orange-dark); font-weight: 750; }
.demo-banner .btn { flex: none; }

/* Welcome / first run */
.welcome {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #080808;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 72% 50%, #000 0%, transparent 68%);
}
.welcome-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}
.welcome-copy .brand-logo { width: 210px; margin-bottom: 32px; }
.welcome h1 {
  max-width: 520px;
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
.welcome h1 .accent { color: var(--orange); }
.welcome-copy > p {
  max-width: 420px;
  margin-top: 19px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  line-height: 1.65;
}
.welcome-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.welcome-actions .btn-ghost { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; }
.welcome-actions .btn-ghost:hover { border-color: rgba(242,106,27,.5); background: rgba(242,106,27,.1); color: #FFB98B; }
.welcome-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 540px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.welcome-feature strong { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 650; }
.welcome-feature span { display: block; color: rgba(255,255,255,.36); font-size: 9.5px; line-height: 1.45; }
.welcome-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 48%, rgba(242,106,27,.24) 0%, rgba(242,106,27,.05) 34%, transparent 66%),
    linear-gradient(140deg, #121212, #070707);
}
.welcome-visual::before,
.welcome-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.welcome-visual::before { width: 440px; height: 440px; }
.welcome-visual::after { width: 300px; height: 300px; border-style: dashed; border-color: rgba(242,106,27,.18); animation: spin 44s linear infinite; }
.welcome-mark {
  position: relative;
  z-index: 2;
  width: min(300px, 66%);
  filter: drop-shadow(0 24px 60px rgba(242,106,27,.32));
}
.welcome-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(12,12,12,.76);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.68);
  font-size: 9px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.welcome-chip .icon { width: 13px; height: 13px; color: var(--orange); }
.welcome-chip.chip-a { top: 21%; left: 12%; }
.welcome-chip.chip-b { right: 11%; bottom: 23%; }

/* Dashboard layout */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 16px;
}

/* Clock card */
.clock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 356px;
  padding: 25px 27px 23px;
  overflow: hidden;
  border-color: #181818;
  background: #0A0A0A;
  color: #fff;
}
.clock-card::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -130px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,106,27,.26) 0%, transparent 66%);
  pointer-events: none;
}
.clock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(120deg, transparent 18%, #000 100%);
  opacity: .5;
}
.clock-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .18em;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulseDot 2s infinite;
}
.clock-tz {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .02em;
  color: rgba(255,255,255,.25);
}
.clock-display {
  position: relative;
  z-index: 2;
  margin: 22px 0 3px;
  font-family: var(--font-mono);
  font-size: clamp(52px, 6.6vw, 88px);
  font-weight: 450;
  line-height: .96;
  letter-spacing: -.09em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.clock-display .clock-seconds { margin-left: 3px; color: var(--orange); font-size: .48em; letter-spacing: -.04em; }
.clock-date {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  text-transform: capitalize;
}
.clock-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.clock-status .status-pill {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.72);
}
.clock-status .status-pill.is-jornada { border-color: rgba(242,106,27,.32); background: rgba(242,106,27,.15); color: #FFB98B; }
.clock-status .status-pill.is-intervalo { border-color: rgba(255,194,92,.25); background: rgba(255,194,92,.1); color: #FFD58E; }
.clock-status .status-pill.is-completo { border-color: rgba(66,211,146,.25); background: rgba(66,211,146,.1); color: #8CE7BB; }
.clock-status .status-pill.is-pendente { border-color: rgba(255,107,94,.25); background: rgba(255,107,94,.1); color: #FF9B8E; }
.clock-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid rgba(255,255,255,.075);
}
.clock-metric span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.32);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.clock-metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 450;
  letter-spacing: -.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.clock-metric strong.is-positive { color: #6BE0A5; }
.clock-metric strong.is-negative { color: #FF9B8E; }
.clock-metric small { display: block; margin-top: 2px; color: rgba(255,255,255,.22); font-size: 8px; }
.clock-watermark {
  position: absolute;
  right: 18px;
  bottom: -36px;
  width: 190px;
  opacity: .045;
  pointer-events: none;
  filter: grayscale(1);
}

/* Punch card */
.punch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 24px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(242,106,27,.06), transparent 47%),
    linear-gradient(180deg, #fff 0%, #FAF9F6 100%);
}
.punch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.punch-head h2 { margin-top: 4px; font-size: 16px; line-height: 1.2; letter-spacing: -.025em; }
.punch-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 238px;
  height: 238px;
  flex: none;
  margin: 8px 0 3px;
}
.punch-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-outer { inset: 0; border: 1px dashed rgba(242,106,27,.33); animation: spin 36s linear infinite; }
.orbit-outer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 13px rgba(242,106,27,.8);
}
.orbit-inner { inset: 19px; border: 1px solid rgba(20,20,20,.06); }
.orbit-inner::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(242,106,27,.08);
}
.punch-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 182px;
  height: 182px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: linear-gradient(145deg, #1C1C1C 0%, #050505 100%);
  color: #fff;
  box-shadow:
    0 24px 55px rgba(10,10,10,.28),
    0 0 0 8px rgba(10,10,10,.035),
    inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .18s ease, box-shadow .22s ease;
}
.punch-button::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242,106,27,.24);
  border-radius: 50%;
}
.punch-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(242,106,27,.3), transparent 64%);
  opacity: 0;
  transition: opacity .25s ease;
}
.punch-button:hover { transform: translateY(-2px) scale(1.012); box-shadow: 0 28px 62px rgba(242,106,27,.19), 0 0 0 8px rgba(242,106,27,.045), inset 0 1px 0 rgba(255,255,255,.16); }
.punch-button:hover::after { opacity: 1; }
.punch-button:active { transform: scale(.966); }
.punch-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .52; transform: none; }
.punch-button.punching { animation: buttonPunch .52s cubic-bezier(.2,.8,.2,1); }
.punch-button-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.punch-button-inner .icon { width: 33px; height: 33px; margin-bottom: 7px; color: var(--orange); }
.punch-button-label { color: rgba(255,255,255,.44); font-size: 8px; font-weight: 750; letter-spacing: .24em; }
.punch-button-sub { margin-top: 1px; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.punch-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
}
.punch-scan::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 14px var(--orange);
  opacity: 0;
}
.punch-card.scanning .punch-scan::before { opacity: 1; animation: scanLine .85s ease-in-out; }
.punch-next { text-align: center; margin-top: 1px; }
.punch-next-label { display: block; color: var(--gray-400); font-size: 7.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.punch-next strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 750; letter-spacing: -.01em; }
.punch-next small { display: block; margin-top: 2px; color: var(--gray-400); font-size: 9px; }
.punch-dots { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.punch-dot { width: 23px; height: 3px; border-radius: 99px; background: var(--gray-200); transition: background .2s ease, box-shadow .2s ease; }
.punch-dot.done { background: var(--orange); }
.punch-dot.active { background: var(--orange); box-shadow: 0 0 9px rgba(242,106,27,.55); }

/* Timeline */
.timeline-card { padding: 22px 24px; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 12px 0 4px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--gray-200);
}
.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 5px;
  text-align: center;
}
.timeline-node {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 9px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: #fff;
  color: var(--gray-400);
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.timeline-node .icon { width: 16px; height: 16px; }
.timeline-step.done .timeline-node { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(242,106,27,.22); }
.timeline-step.active .timeline-node { border: 2px solid var(--orange); background: #fff; color: var(--orange); animation: nodePulse 2.1s infinite; }
.timeline-step .step-name {
  color: var(--gray-400);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}
.timeline-step .step-time {
  margin-top: 3px;
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.timeline-step.done .step-name { color: var(--ink); }
.timeline-step.done .step-time { color: var(--ink); }
.timeline-step.active .step-name,
.timeline-step.active .step-time { color: var(--orange-dark); }
.timeline-step.active .step-time { font-weight: 600; }
.timeline-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 18px;
  margin: 7px 0 12px;
  color: var(--gray-400);
  font-size: 9px;
}
.timeline-note .icon { width: 12px; height: 12px; color: var(--orange); }
.timeline-note strong { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.summary-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--gray-50);
}
.summary-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-400);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.summary-item strong { display: block; font-family: var(--font-mono); font-size: 19px; font-weight: 500; letter-spacing: -.045em; }
.summary-item small { display: block; margin-top: 2px; color: var(--gray-400); font-size: 8px; }

/* Lower grid: week + activity */
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: 16px;
  margin-top: 16px;
}
.week-card { padding: 22px 24px; display: flex; flex-direction: column; }
.week-total { font-family: var(--font-mono); font-size: 18px; font-weight: 500; letter-spacing: -.04em; }
.week-total small { display: block; margin-top: 1px; color: var(--gray-400); font-family: var(--font-sans); font-size: 7.5px; font-weight: 700; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.week-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 152px;
  margin-top: 16px;
}
.week-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 100%; }
.week-track { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; flex: 1; }
.week-bar {
  position: relative;
  z-index: 2;
  width: min(30px, 76%);
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--orange) 0%, #FF9C54 100%);
  box-shadow: 0 4px 12px rgba(242,106,27,.16);
  animation: barGrow .55s ease both;
}
.week-col.no-data .week-bar { background: var(--gray-200); box-shadow: none; }
.week-col.today .week-bar { background: linear-gradient(180deg, #FF7E2E, #FFB27A); box-shadow: 0 5px 16px rgba(242,106,27,.26); }
.week-expected {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  border-top: 1px dashed var(--gray-300);
  pointer-events: none;
}
.week-value {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
}
.week-col.today .week-value { color: var(--orange-dark); font-weight: 600; }
.week-day { color: var(--gray-400); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.week-col.today .week-day { color: var(--orange-dark); }
.week-legend { display: flex; align-items: center; gap: 14px; margin-top: 13px; color: var(--gray-400); font-size: 8px; }
.week-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 2px; }
.legend-dot.orange { background: var(--orange); }
.legend-dot.gray { background: transparent; border-top: 1px dashed var(--gray-300); border-radius: 0; width: 9px; }

.activity-card { padding: 22px 24px; }
.activity-list { display: flex; flex-direction: column; margin-top: 4px; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.activity-row:first-child { border-top: 0; }
.activity-row .avatar { width: 29px; height: 29px; border-radius: 8px; font-size: 8px; }
.activity-main { flex: 1; min-width: 0; }
.activity-main strong { display: block; overflow: hidden; font-size: 10.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.activity-main small { display: block; margin-top: 1px; color: var(--gray-400); font-size: 8.5px; }
.activity-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.activity-right .mono { color: var(--gray-600); font-size: 9px; }
.activity-right small { color: var(--gray-400); font-size: 8px; }
