﻿/* style.css â€” Midnight Racing (VersÃ£o Responsiva Otimizada) */

/* ===== ROOT & VARIÃVEIS GLOBAIS ===== */
:root {
  /* Cores */
  --bg: #04050d;
  --bg2: #090a14;
  --bg3: #0f1022;
  --accent: #7c30ff;
  --accent-light: #a055ff;
  --accent-glow: rgba(124, 48, 255, 0.38);
  --accent2: #00cfff;
  --accent2-glow: rgba(0, 207, 255, 0.28);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.1);
  --yellow: #ffd65c;
  --red: #ff4455;
  --text: #f0f0f8;
  --text-dim: #7a7a9a;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(124, 48, 255, 0.25);
  --card-bg: rgba(15, 16, 34, 0.92);

  /* Sombras */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(124, 48, 255, 0.18);

  /* EspaÃ§amento e Layout */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --transition: 0.18s ease;
  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1rem;
  --gap-lg: 1.25rem;
  --gap-xl: 1.5rem;

  /* Typography */
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-base: 0.875rem; /* 14px */
  --font-size-sm: 0.8125rem; /* 13px */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-xxs: 0.6875rem; /* 11px */
  --font-size-lg: 1rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;

  /* Touch Targets */
  --touch-target: 2.75rem; /* 44px mÃ­nimo */
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Pausar tudo quando o browser perde foco (utilizador no jogo) */
body.window-blurred *,
body.window-blurred *::before,
body.window-blurred *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

body {
  background: #04050d;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.5;
  padding: 1rem;
  min-height: 100vh;
}

#root {
  position: relative;
  z-index: 1;
}


/* ===== MOBILE FIRST - BASE STYLES ===== */

/* TOPBAR */
.topbar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(124, 48, 255, 0.15), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 207, 255, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(11, 12, 22, 0.99), rgba(7, 8, 16, 0.98));
  padding: 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(124, 48, 255, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  gap: 0.9rem;
  backdrop-filter: blur(10px);
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.logo {
  height: 2.8rem;
  width: auto;
  display: block;
}

.logo-area h1 {
  display: none;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.nav-overflow {
  position: relative;
  display: none;
}

.nav-overflow-trigger::after {
  content: "â–¾";
  margin-left: 0.45rem;
  font-size: 0.8em;
}

.nav-overflow-menu {
  display: none;
}

.nav-overflow.open .nav-overflow-menu {
  display: flex;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.78rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: center;
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-btn:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.98);
}

.nav-btn.active {
  background: linear-gradient(135deg, #6020ee 0%, #8b38ff 55%, #b050ff 100%);
  border-color: rgba(175, 120, 255, 0.7);
  box-shadow: 0 8px 28px rgba(124, 48, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #fff;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-direction: column;
}

.user-section #userInfo {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(240, 240, 245, 0.9);
  text-align: center;
  width: 100%;
}

.user-section button {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-body);
  min-height: var(--touch-target);
  width: 100%;
}

.user-section button:active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
  transform: scale(0.98);
}

.event-reminder {
  margin: -0.35rem 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 92, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 92, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(22, 18, 9, 0.96), rgba(16, 13, 23, 0.96));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.event-reminder-kicker {
  color: #ffd56b;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.4rem;
}

.event-reminder-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.event-reminder strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.event-reminder p {
  color: rgba(240, 240, 245, 0.76);
}

.event-reminder-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #16110b;
  font-weight: 700;
  background: #ffd56b;
}

/* MAIN LAYOUT */
main {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  position: relative;
}

.card.full-width {
  width: 100%;
}

.card h2 {
  font-family: var(--font-head);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-intro {
  color: rgba(240, 240, 245, 0.72);
  margin-bottom: 1rem;
  max-width: 68ch;
}

/* WELCOME CARD */
.welcome-card {
  background: linear-gradient(135deg, #0d0e1e 0%, #12103a 100%);
  border-color: rgba(122, 44, 255, 0.3);
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.welcome-text h2 {
  margin-bottom: 0.4rem;
  font-size: var(--font-size-xl);
}

.welcome-text p {
  color: var(--text-dim);
  font-size: var(--font-size-xs);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-hero-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 48, 255, 0.22), transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(0, 207, 255, 0.12), transparent 35%),
    radial-gradient(circle at 50% 110%, rgba(0, 255, 136, 0.08), transparent 40%),
    linear-gradient(135deg, #0c0d1e 0%, #13103a 46%, #0b101e 100%);
  border-color: rgba(124, 48, 255, 0.3);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 48, 255, 0.1) inset;
}

.home-kicker,
.home-section-kicker {
  color: #ff9ec6;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.55rem;
}

.home-hero-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.7rem);
  line-height: 0.92;
  margin-bottom: 0.75rem;
  max-width: 10ch;
}

.home-hero-copy p {
  max-width: 58ch;
  color: rgba(240, 240, 245, 0.78);
}

.home-hero-actions {
  margin-top: 1.1rem;
}

.home-hero-panel {
  display: grid;
  gap: 0.85rem;
}

.home-signal-card,
.home-mini-card,
.home-strip-item,
.home-shortcut-tile {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.home-signal-card {
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(9, 12, 19, 0.82);
}

.signal-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #7ff0aa;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--font-size-xxs);
}

.home-signal-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.home-signal-card p {
  color: rgba(240, 240, 245, 0.68);
}

.home-mini-grid,
.home-strip-grid,
.home-shortcuts-grid {
  display: grid;
  gap: 0.75rem;
}

.home-mini-card,
.home-strip-item {
  padding: 0.95rem 1rem;
}

.home-mini-card span,
.home-strip-item span {
  display: block;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.home-mini-card strong,
.home-strip-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.home-mini-card small,
.home-strip-item small {
  color: rgba(240, 240, 245, 0.64);
}

.home-overview-grid,
.home-main-grid {
  display: grid;
  gap: 1rem;
}

.home-strip-card,
.home-shortcuts-card,
.home-team-card,
.home-contract-card,
.home-summary-card {
  background:
    linear-gradient(180deg, rgba(18, 19, 31, 0.98), rgba(10, 11, 20, 0.96));
}

.home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-section-head h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  line-height: 0.95;
  margin-bottom: 0.4rem;
}

.home-head-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 44, 255, 0.16);
  border: 1px solid rgba(122, 44, 255, 0.25);
  color: #dfccff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  white-space: nowrap;
}

.home-shortcuts-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.home-shortcut-tile {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-shortcut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.home-shortcut-tile strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1;
}

.home-shortcut-tile small {
  color: rgba(240, 240, 245, 0.68);
}

.home-shortcut-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 48, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 48, 255, 0.12);
  background: rgba(124, 48, 255, 0.08);
}

/* BOTÃ•ES */
.action-btn,
.btn-primary,
.save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-xs);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  min-height: var(--touch-target);
}

.action-btn.primary,
.btn-primary,
.save-btn {
  background: linear-gradient(135deg, #6b20ee 0%, #8d38ff 60%, #a04fff 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 48, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
}

.action-btn.primary:hover,
.btn-primary:hover,
.save-btn:hover {
  box-shadow: 0 8px 32px rgba(124, 48, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.action-btn.primary:active,
.btn-primary:active,
.save-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 18px rgba(124, 48, 255, 0.4);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
}

.action-btn.secondary:active {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: var(--transition);
  min-height: var(--touch-target);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* FORMULÃRIOS */
.input-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

input,
select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--font-size-xs);
  outline: none;
  transition: var(--transition);
  min-height: var(--touch-target);
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.2);
}

input::placeholder {
  color: var(--text-dim);
}

/* EMPLOYEE GRID */
.employee-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.emp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  min-height: var(--touch-target);
  gap: 0.75rem;
}

.emp-card:active {
  background: rgba(255, 255, 255, 0.07);
}

.emp-card-tabs {
  display: block;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(122, 44, 255, 0.1), rgba(13, 14, 27, 0.92));
}

.emp-card-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.emp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.emp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.emp-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
}

.emp-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(122, 44, 255, 0.95), rgba(255, 107, 157, 0.85));
  box-shadow: 0 10px 24px rgba(122, 44, 255, 0.3);
}

.emp-tab-panel {
  display: none;
}

.emp-tab-panel.active {
  display: block;
}

.employee-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.employee-chip {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.employee-chip-label {
  display: block;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.employee-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.employee-dashboard-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    linear-gradient(135deg, rgba(122, 44, 255, 0.08), rgba(13, 14, 27, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
}

.employee-dashboard-card.selected {
  border-color: rgba(122, 44, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(122, 44, 255, 0.12), 0 18px 36px rgba(0, 0, 0, 0.26);
}

.employee-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.employee-dashboard-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.employee-dashboard-actions {
  display: grid;
  gap: 0.65rem;
}

.contract-spotlight-empty {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 320px;
  padding: 1.5rem;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(122, 44, 255, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.contract-spotlight-empty p {
  max-width: 42ch;
  color: rgba(240, 240, 245, 0.68);
}

.contract-spotlight {
  display: block;
}

.contract-card-spotlight {
  min-height: 100%;
}

.contract-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contract-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(12, 14, 24, 0.92), rgba(6, 7, 13, 0.98)),
    radial-gradient(circle at top right, rgba(255, 107, 157, 0.14), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.contract-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(122, 44, 255, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 107, 157, 0.18), transparent 30%);
}

.contract-header,
.contract-body,
.contract-meta,
.contract-signatures {
  position: relative;
  z-index: 1;
}

.contract-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contract-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ff8eb8;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.45rem;
}

.contract-header h3 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.contract-subtitle {
  color: rgba(240, 240, 245, 0.68);
  max-width: 34ch;
}

.contract-badge {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #ffe589;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-body {
  display: grid;
  gap: 0.85rem;
  color: rgba(240, 240, 245, 0.86);
  margin-bottom: 1.1rem;
}

.contract-body p {
  margin: 0;
}

.contract-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.contract-meta div {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contract-meta span {
  display: block;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.contract-signatures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.contract-signature {
  display: grid;
  gap: 0.3rem;
  align-content: end;
  min-height: 102px;
  padding: 0.9rem 0.85rem 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contract-sign-btn {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contract-sign-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.contract-sign-btn.signed {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(143, 224, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(143, 224, 255, 0.08), 0 16px 32px rgba(0, 0, 0, 0.22);
}

.signature-label {
  color: rgba(240, 240, 245, 0.62);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signature-line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.22));
  margin: 0.3rem 0 0.25rem;
}

.signature-name {
  display: block;
  margin-top: -0.1rem;
  color: #ffe7f1;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.contract-signature strong {
  font-size: var(--font-size-sm);
  color: #fff;
}

.contract-signature small {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
}

.signature-hint {
  margin-top: 0.35rem;
  color: #ffd56b;
  font-size: 0.72rem;
}

.contract-sign-btn.signed .signature-hint {
  color: #7ff0aa;
}

.employee-signature strong {
  color: #8fe0ff;
}

.employee-signature .signature-name {
  color: #9fe6ff;
}

.contract-status-valid {
  color: #7ff0aa;
}

.calendar-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-hero-card {
  background:
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(122, 44, 255, 0.15), transparent 30%),
    linear-gradient(135deg, rgba(14, 17, 29, 0.98), rgba(10, 12, 20, 0.96));
  border-color: rgba(0, 255, 136, 0.16);
}

.calendar-kicker {
  color: #7ff0aa;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.5rem;
}

.calendar-hero-card h2 {
  margin-bottom: 0.4rem;
}

.calendar-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.calendar-stat {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-stat span {
  display: block;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.calendar-stat strong {
  font-size: var(--font-size-sm);
}

.calendar-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-toolbar-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.calendar-toolbar-main h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  text-transform: capitalize;
}

.calendar-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.calendar-board {
  display: grid;
  gap: 0.75rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.calendar-weekdays span {
  text-align: center;
  padding: 0.75rem 0.35rem;
  color: var(--text-dim);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.calendar-day {
  min-height: 150px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(11, 13, 24, 0.92);
  color: var(--text);
  padding: 0.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-day.is-outside {
  opacity: 0.42;
}

.calendar-day.is-today {
  border-color: rgba(127, 240, 170, 0.35);
  box-shadow: inset 0 0 0 1px rgba(127, 240, 170, 0.08);
}

.calendar-day.is-selected {
  border-color: rgba(122, 44, 255, 0.46);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(122, 44, 255, 0.18);
  transform: translateY(-2px);
}

.calendar-day-number {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
}

.calendar-chip {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.calendar-chip.meeting {
  background: rgba(122, 44, 255, 0.26);
}

.calendar-chip.event {
  background: rgba(0, 153, 255, 0.22);
}

.calendar-chip.delivery {
  background: rgba(255, 152, 61, 0.24);
}

.calendar-chip.training {
  background: rgba(0, 255, 136, 0.2);
}

.calendar-chip.notice {
  background: rgba(255, 86, 133, 0.24);
}

.calendar-chip.more {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.calendar-side-card {
  min-width: 0;
}

.calendar-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-events-list {
  display: grid;
  gap: 0.85rem;
}

.calendar-event-card,
.calendar-upcoming-item,
.calendar-empty-panel {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-event-card h4 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.calendar-event-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.calendar-event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calendar-event-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calendar-inline-btn {
  min-height: auto;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
}

.calendar-inline-btn.danger {
  border-color: rgba(255, 77, 77, 0.22);
  color: #ff8d8d;
}

.calendar-event-time,
.calendar-event-meta {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.calendar-event-details {
  margin-top: 0.7rem;
}

.calendar-event-card.meeting {
  border-left: 4px solid #8a5cff;
}

.calendar-event-card.event {
  border-left: 4px solid #5cb6ff;
}

.calendar-event-card.delivery {
  border-left: 4px solid #ffa149;
}

.calendar-event-card.training {
  border-left: 4px solid #4bffaf;
}

.calendar-event-card.notice {
  border-left: 4px solid #ff6b96;
}

.calendar-upcoming-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.calendar-upcoming-item span,
.calendar-upcoming-item small {
  display: block;
  color: var(--text-dim);
}

.calendar-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.calendar-form-full {
  grid-column: 1 / -1;
}

.calendar-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.partners-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partners-hero-card {
  background:
    radial-gradient(circle at top left, rgba(122, 44, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 214, 92, 0.12), transparent 25%),
    linear-gradient(135deg, rgba(14, 17, 29, 0.98), rgba(10, 12, 20, 0.96));
  border-color: rgba(122, 44, 255, 0.2);
}

.partners-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.partners-toolbar input {
  flex: 1 1 260px;
}

.partners-list {
  display: grid;
  gap: 0.9rem;
}

.partner-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    rgba(14, 16, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.partner-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(122, 44, 255, 0.22), rgba(255, 107, 157, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.partner-name {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(122, 44, 255, 0.16);
  color: #aebaff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.partner-brand small {
  display: block;
  color: var(--text-dim);
}

.partner-code-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.partner-code-btn {
  border: none;
  background: transparent;
  color: #f1f1f6;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 0.25rem 0;
  white-space: normal;
}

.partner-code-btn:hover {
  color: #ffffff;
}

.partner-code-btn::before {
  content: "|";
  margin-right: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.partner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.applications-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.applications-page.public-shell {
  width: min(920px, calc(100% - 1.25rem));
}

/* ===== CANDIDATURAS â€” HERO ===== */
.appl-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: linear-gradient(135deg, #0a1520 0%, #0e0b1e 60%, #0a1218 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 136, 0.08);
}

.appl-hero-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.appl-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
}

.appl-glow-1 {
  width: 480px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.16) 0%, transparent 70%);
  top: -100px;
  right: -80px;
}

.appl-glow-2 {
  width: 360px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(122, 44, 255, 0.2) 0%, transparent 70%);
  bottom: -80px;
  left: -40px;
}

.appl-hero-body {
  position: relative;
  z-index: 1;
  padding: 2.25rem 2rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.appl-hero-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.appl-hero-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 28px rgba(0, 255, 136, 0.35));
}

.appl-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.appl-hero-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text);
}

.appl-hero-title em {
  font-style: normal;
  color: var(--green);
  display: block;
}

.appl-hero-desc {
  color: rgba(240, 240, 248, 0.7);
  font-size: var(--font-size-sm);
  line-height: 1.75;
  max-width: 540px;
}

/* Steps */
.appl-steps {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.appl-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.appl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.28);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.appl-step-label {
  font-size: var(--font-size-sm);
  color: rgba(240, 240, 248, 0.75);
}

.appl-step-arr {
  color: rgba(0, 255, 136, 0.35);
  font-size: 1rem;
}

.appl-hero-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.7) 40%, rgba(122, 44, 255, 0.5) 70%, transparent 100%);
}

/* ===== CANDIDATURAS â€” FORM CARD ===== */
.appl-form-card {
  padding: 0;
  overflow: hidden;
}

.appl-discord-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.5rem;
  background: rgba(88, 101, 242, 0.1);
  border-bottom: 1px solid rgba(88, 101, 242, 0.18);
  font-size: var(--font-size-sm);
  color: rgba(240, 240, 248, 0.8);
}

.appl-discord-bar svg {
  color: #7289da;
  flex-shrink: 0;
}

.appl-discord-bar a {
  color: #99aaee;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.appl-discord-bar a:hover {
  color: #c0ccff;
}

.appl-form {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Section headers */
.appl-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.appl-section-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 255, 136, 0.2);
  flex-shrink: 0;
  width: 3.5rem;
  text-align: right;
  letter-spacing: 0.02em;
  user-select: none;
}

.appl-section-head h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

/* Fields layouts */
.appl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}

.appl-grid .form-group,
.appl-stack .form-group {
  margin-bottom: 0;
  padding: 0.85rem;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.appl-grid .form-group:hover,
.appl-stack .form-group:hover {
  background: rgba(255, 255, 255, 0.018);
}

.appl-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.appl-stack {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.appl-grid .form-group:last-child,
.appl-stack .form-group:last-child {
  border-bottom: none;
}

.appl-grid .form-group label,
.appl-stack .form-group label {
  font-size: var(--font-size-xxs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.appl-grid .form-group input,
.appl-stack .form-group textarea {
  background: transparent;
  border: none;
  padding: 0.35rem 0;
  font-size: var(--font-size-sm);
  min-height: unset;
  box-shadow: none;
}

.appl-grid .form-group input:focus,
.appl-stack .form-group textarea:focus {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

.appl-stack .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Divider */
.appl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Actions */
.appl-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.appl-submit-btn {
  padding: 0.85rem 2rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  font-family: var(--font-head);
  font-weight: 700;
}

.applications-page.public-shell.applications-manager-mode {
  width: min(1320px, calc(100% - 1.5rem));
}

.applications-hero-card {
  background:
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(122, 44, 255, 0.14), transparent 25%),
    linear-gradient(135deg, rgba(11, 18, 18, 0.98), rgba(12, 12, 22, 0.96));
  border-color: rgba(0, 255, 136, 0.14);
}

.applications-public-hero {
  background:
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(122, 44, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #0f1620 0%, #151028 100%);
  border-color: rgba(0, 255, 136, 0.18);
}

.application-public-head {
  margin-bottom: 1rem;
}

.applications-list {
  display: grid;
  gap: 1rem;
}

#applicationsStatusFilter {
  min-width: 220px;
  background: rgba(16, 18, 30, 0.96);
  color: var(--text);
  border: 1px solid rgba(122, 44, 255, 0.4);
}

#applicationsStatusFilter option {
  background: #141728;
  color: #f0f0f5;
}

.application-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    rgba(14, 16, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.application-card-head,
.application-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.application-card-head h4 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

.application-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.application-status-pending {
  background: rgba(255, 214, 92, 0.16);
  color: #ffd56b;
  border: 1px solid rgba(255, 214, 92, 0.26);
}

.application-status-accepted {
  background: rgba(0, 255, 136, 0.16);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.28);
}

.application-status-rejected {
  background: rgba(255, 77, 77, 0.16);
  color: #ff8a8a;
  border: 1px solid rgba(255, 77, 77, 0.28);
}

.application-meta-grid,
.application-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.application-meta-item,
.application-answer-block,
.application-review {
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.application-meta-item span,
.application-answer-block span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-xxs);
}

.application-meta-item strong,
.application-answer-block p,
.application-card-footer small {
  color: var(--text);
}

.application-answer-block p {
  white-space: pre-wrap;
}

.application-review label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.application-review textarea {
  width: 100%;
  min-height: 120px;
  background: rgba(7, 9, 18, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.application-card .partner-actions {
  align-items: center;
  gap: 0.65rem;
}

.application-card .calendar-inline-btn {
  min-height: 40px;
}

.application-card-head .hint strong,
.application-meta-item strong {
  word-break: break-word;
}

.application-card-footer small {
  max-width: 420px;
  color: rgba(240, 240, 245, 0.76);
}

.application-success-modal .modal-body {
  padding: 1.5rem;
}

.application-success-body {
  text-align: center;
  display: grid;
  gap: 1rem;
}

.application-success-body h3 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0;
}

.application-success-body p {
  color: rgba(240, 240, 245, 0.84);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-hub-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    grid-template-columns: 1fr;
  }

  .partner-code-area {
    align-items: flex-start;
    flex-direction: column;
  }

  .application-card-head,
  .application-card-footer {
    flex-direction: column;
  }

  .appl-hero-body {
    padding: 1.5rem 1.25rem 2rem;
  }

  .appl-hero-logo {
    width: 56px;
    height: 56px;
  }

  .appl-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .appl-steps {
    gap: 0.6rem;
  }

  .appl-step-arr {
    display: none;
  }

  .appl-section-num {
    font-size: 2rem;
    width: 2.5rem;
  }

  .appl-form {
    padding: 1.25rem 1rem 1.5rem;
  }

  .appl-grid {
    grid-template-columns: 1fr;
  }

  .appl-form-actions {
    flex-direction: column;
  }

  .appl-submit-btn {
    width: 100%;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 0.5rem;
  }

  .calendar-day {
    min-height: 118px;
    padding: 0.7rem;
  }

  .calendar-day-number {
    font-size: 1rem;
  }

  .calendar-chip {
    font-size: 0.68rem;
    padding: 0.32rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .emp-card-top,
  .contract-header {
    flex-direction: column;
    align-items: stretch;
  }

  .emp-tabs {
    width: 100%;
  }

  .emp-tab-btn {
    flex: 1;
  }
}

.emp-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.emp-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent), #ff6b9d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: #fff;
  flex-shrink: 0;
}

.emp-info strong {
  display: block;
  font-size: var(--font-size-sm);
}

.emp-info small {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  opacity: 0.6;
  transition: var(--transition);
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.remove-btn:active {
  opacity: 1;
  background: rgba(255, 59, 59, 0.2);
}

/* TABELAS */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.week-nav-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 44, 255, 0.2);
  border: 1px solid rgba(122, 44, 255, 0.3);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: var(--transition);
  flex-shrink: 0;
}

.week-nav-btn:active {
  background: rgba(122, 44, 255, 0.4);
}

.week-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  flex: 1;
}

.week-display input {
  width: 100%;
  max-width: 150px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}

#weekTable {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 10px;
}

#weekTable thead th {
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  padding: 0.9rem 0.6rem;
}

#weekTable thead th.name-col {
  text-align: left !important;
  width: 26%;
}

#weekTable thead th.total-col {
  width: 10%;
}

#weekTable tbody td {
  vertical-align: middle;
}

#weekTable .name-col {
  padding: 0.85rem 0.75rem 0.85rem 0.25rem;
}

#weekTable .day-cell,
#weekTable .total-col {
  text-align: center;
}

#weekTable .day-cell {
  border-radius: 12px;
}

#weekTable .cell-display {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

#weekTable .day-cell[data-has-hours="true"] .cell-display {
  background: rgba(0, 255, 136, 0.12);
}

#weekTable .total-col {
  font-family: var(--font-head);
  font-size: 1.05rem;
}

th,
td {
  padding: 0.75rem 0.75rem;
  border-bottom: none;
  text-align: center;
  font-size: var(--font-size-xs);
}

.precos-table {
  background: transparent;
}

.precos-table thead tr {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.precos-table tbody tr {
  background: rgba(34, 35, 55, 0.7);
  border: 1px solid rgba(122, 44, 255, 0.2);
  border-radius: 10px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.precos-table tbody tr:active {
  transform: scale(0.98);
  box-shadow: 0 8px 20px rgba(122, 44, 255, 0.25);
  background: rgba(97, 48, 158, 0.4);
}

.material-cell {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.material-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(122, 44, 255, 0.25);
  color: #fff;
  font-size: var(--font-size-xs);
  flex-shrink: 0;
}

th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-head);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  white-space: nowrap;
}

.th-date {
  font-family: var(--font-body);
  font-size: var(--font-size-xxs);
  font-weight: 400;
  color: var(--text-dim);
  display: block;
}

.name-col {
  text-align: left !important;
  width: auto;
}

.total-col {
  font-weight: 700;
  white-space: nowrap;
  width: auto;
}

.emp-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.emp-mini-avatar {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--accent), #ff6b9d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* CÃ©lulas de dia */
.day-cell {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  padding: 0 !important;
}

.day-cell:active {
  background: rgba(122, 44, 255, 0.2);
}

.day-cell[data-has-hours="true"] {
  background: var(--green-dim);
}

.cell-display {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  font-size: var(--font-size-xs);
  color: var(--text-dim);
}

.day-cell[data-has-hours="true"] .cell-display {
  color: var(--green);
}

.day-cell:active .cell-display {
  color: var(--text);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* ESTADOS */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.25rem;
  color: var(--text-dim);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(122, 44, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-msg {
  text-align: center;
  padding: 1.25rem;
  color: var(--text-dim);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
}

.empty-msg {
  color: var(--text-dim);
  padding: 0.75rem 0;
  font-size: var(--font-size-xs);
}

.empty-cell {
  text-align: center;
  padding: 1.25rem;
  color: var(--text-dim);
}

.status-bar {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: var(--font-size-xs);
}

.status-bar.success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--green);
}

.status-bar a {
  color: var(--green);
  text-decoration: underline;
}

/* MODAL CALCULADORA */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal.open {
  display: flex;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #111320;
  border: 1px solid rgba(122, 44, 255, 0.4);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(122, 44, 255, 0.1);
  overflow: hidden;
  animation: slideUp 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.modal-header h3 {
  font-family: var(--font-head);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.modal-subtitle {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
}

.modal-hint {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.modal-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: var(--font-size-xxs);
}

.entry-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.entry-row input {
  flex: 1;
  font-weight: 600;
  color: var(--green);
  text-align: center;
  font-size: var(--font-size-lg);
  min-height: var(--touch-target);
}

.remove-entry {
  background: rgba(255, 59, 59, 0.15);
  border: none;
  color: var(--red);
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-xs);
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-entry:active {
  background: rgba(255, 59, 59, 0.3);
}

.add-entry-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
  color: var(--text-dim);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-xs);
  width: 100%;
  margin-top: 0.5rem;
  transition: var(--transition);
  min-height: var(--touch-target);
}

.add-entry-btn:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.modal-total {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  text-align: right;
}

.modal-total strong {
  font-size: var(--font-size-2xl);
  font-family: var(--font-head);
  color: var(--green);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions button {
  min-height: var(--touch-target);
}

/* SEMANA â€” PRESET BUTTONS */
.quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.preset-btn {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--green);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  min-height: 36px;
}

.preset-btn:active,
.preset-btn:hover {
  background: rgba(0, 255, 136, 0.25);
  border-color: var(--green);
}

/* SEMANA â€” PONTO BADGE */
.day-cell {
  position: relative;
}

.ponto-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #7c6fff;
  background: rgba(124, 111, 255, 0.15);
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1.2;
  pointer-events: none;
}

/* SEMANA â€” TOTALS ROW */
.day-totals-row td {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(207, 207, 255, 0.04);
}

.totals-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #cfcfff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* RELATÃ“RIOS */
.quick-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.6rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:active {
  background: rgba(122, 44, 255, 0.15);
  color: var(--text);
  border-color: rgba(122, 44, 255, 0.3);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}

.custom-filters {
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filters label {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
}

.report-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.periodo-info {
  margin-bottom: 1rem;
}

.periodo {
  font-weight: 600;
  color: #cfcfff;
  font-size: var(--font-size-sm);
}

.periodo.pequeno {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
}

#reportTable {
  min-width: 100%;
}

#reportTable th {
  text-align: left;
}

#reportTable td {
  text-align: left;
}

#reportTable td:last-child,
#reportTable th:last-child {
  text-align: center;
}

#reportTable td:first-child {
  width: 40px;
}

.top1 td {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  font-weight: 700;
}

.top2 td {
  background: rgba(0, 255, 136, 0.07);
  color: #66ff99;
  font-weight: 600;
}

.top3 td {
  background: rgba(0, 255, 136, 0.04);
  color: #99ffbb;
  font-weight: 600;
}

#reportTable tr:active td {
  background: rgba(255, 255, 255, 0.04);
}

.top1:active td,
.top2:active td,
.top3:active td {
  filter: brightness(1.1);
}

.total-row td {
  background: rgba(122, 44, 255, 0.1) !important;
  border-top: 2px solid rgba(122, 44, 255, 0.3);
  color: #cfcfff;
  font-weight: 700;
}

.low-hours {
  color: var(--red);
  font-weight: 700;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1a1d30;
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--font-size-xs);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transform: translateY(200px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(-1.5rem);
  opacity: 1;
}

.toast.success {
  border-color: rgba(0, 255, 136, 0.4);
}

.toast.error {
  border-color: rgba(255, 59, 59, 0.4);
}

/* HINTS */
.hint {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.hint a {
  color: var(--accent-light);
  text-decoration: none;
}

.hint a:active {
  text-decoration: underline;
}

/* SELETOR DE CHEFE */
.supervisor-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: rgba(122, 44, 255, 0.07);
  border: 1px solid rgba(122, 44, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.supervisor-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.supervisor-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supervisor-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(122, 44, 255, 0.35);
  background: rgba(122, 44, 255, 0.12);
  color: var(--text);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.supervisor-btn:active {
  background: rgba(122, 44, 255, 0.3);
  border-color: var(--accent);
}

.supervisor-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.supervisor-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xxs);
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}

.supervisor-selected strong {
  color: var(--green);
}

/* TABELA DE PREÃ‡OS */
.precos-filter-bar {
  margin-bottom: 1rem;
}

.filters-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input,
.category-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--font-size-xs);
  outline: none;
  transition: var(--transition);
  min-height: var(--touch-target);
}

.search-input:focus,
.category-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.2);
}

.category-select {
  background: #171a29;
  color: var(--text);
  border-color: rgba(122, 44, 255, 0.35);
  color-scheme: dark;
}

.category-select option {
  background: #171a29;
  color: #f0f0f5;
}

.precos-info {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-weight: 600;
}

.info-badge.active {
  background: rgba(122, 44, 255, 0.1);
  border-color: rgba(122, 44, 255, 0.3);
  color: var(--accent-light);
}

.precos-table-wrapper {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
}

.precos-table tbody tr {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.precos-table tbody tr td {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--font-size-xs);
}

.precos-table tbody tr td:last-child {
  border-bottom: none;
}

.precos-table .material-cell {
  width: 100%;
  margin-bottom: 0.5rem;
  justify-content: flex-start;
  font-size: var(--font-size-sm);
}

.precos-table .preco-cell {
  cursor: pointer;
  color: #cfcfff;
  font-weight: 500;
  border-radius: 4px;
  padding: 0.75rem 0.5rem;
  transition: var(--transition);
  width: 100%;
  justify-content: flex-end;
  font-size: var(--font-size-sm);
}

.precos-table .preco-cell:active {
  background: rgba(122, 44, 255, 0.2);
  color: var(--accent-light);
}

.precos-table .preco-cell.active {
  background: rgba(122, 44, 255, 0.12);
  color: var(--accent-light);
  font-weight: 600;
}

.precos-table .margem-cell {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
}

.precos-table .margem-cell.active {
  background: rgba(0, 255, 136, 0.08);
  color: var(--green);
  font-weight: 600;
}

.precos-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: column;
}

.stat-label {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  font-weight: 600;
}

.stat-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--accent-light);
  font-family: var(--font-head);
}

/* CARRINHO - PAINEL TOPO */
.cart-top-panel {
  background: linear-gradient(to right, rgba(122, 44, 255, 0.12), rgba(0, 255, 136, 0.08));
  border: 1px solid rgba(122, 44, 255, 0.25);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  animation: slideDown 0.25s ease;
  display: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.cart-top-header h3 {
  font-family: var(--font-head);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
}

.cart-clear-btn {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 59, 59, 0.15);
  color: var(--red);
  font-size: var(--font-size-xxs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-clear-btn:active {
  background: rgba(255, 59, 59, 0.3);
}

.cart-top-items {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  min-height: 2rem;
}

.cart-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(122, 44, 255, 0.2);
  border: 1px solid rgba(122, 44, 255, 0.4);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: var(--font-size-xxs);
  color: var(--text);
  font-weight: 600;
}

.cart-item-name {
  color: var(--accent-light);
}

.cart-item-qty-badge {
  color: var(--green);
  font-weight: 700;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: var(--red);
  font-size: var(--font-size-lg);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.35rem;
  transition: var(--transition);
  opacity: 0.7;
}

.cart-item-remove-btn:active {
  opacity: 1;
  transform: scale(1.2);
}

.cart-top-total {
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(122, 44, 255, 0.2);
}

.cart-top-total strong {
  font-family: var(--font-head);
  font-size: 1.125rem;
  color: var(--green);
  font-weight: 700;
}

/* CARRINHO - PAINEL LATERAL */
.cart-side-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg3);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 150;
  animation: slideInUp 0.3s ease;
  overflow-x: hidden;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cart-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.cart-side-header h3 {
  font-family: var(--font-head);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: var(--font-size-xl);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-close-btn:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.cart-side-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-side-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(122, 44, 255, 0.08);
  border: 1px solid rgba(122, 44, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  min-width: 0;
  max-width: 100%;
}

.cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-info strong {
  font-size: var(--font-size-sm);
  color: var(--text);
  font-weight: 600;
  word-break: normal;
  overflow-wrap: anywhere;
  display: block;
}

.cart-item-price {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  font-size: var(--font-size-lg);
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  transition: var(--transition);
  opacity: 0.8;
  min-width: 1.75rem;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active {
  opacity: 1;
  transform: scale(1.1);
}

.qty-display {
  min-width: 2rem;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  font-size: var(--font-size-xs);
}

.cart-item-subtotal {
  color: var(--green);
  font-weight: 700;
  font-size: var(--font-size-xs);
  min-width: 4rem;
  text-align: right;
}

.cart-remove-full {
  background: rgba(255, 59, 59, 0.15);
  border: none;
  color: var(--red);
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: var(--font-size-xxs);
  transition: var(--transition);
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-remove-full:active {
  background: rgba(255, 59, 59, 0.3);
}

.cart-side-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(to top, rgba(122, 44, 255, 0.08), transparent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-total {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  text-align: right;
}

.cart-total strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--font-size-2xl);
  color: var(--green);
  font-weight: 700;
  margin-top: 0.35rem;
}

.cart-clear-btn-side {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 59, 59, 0.15);
  color: var(--red);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cart-clear-btn-side:active {
  background: rgba(255, 59, 59, 0.3);
  transform: scale(0.98);
}

/* FAB Carrinho */
.cart-fab {
  display: none;
}

/* LOGIN PAGE */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #05060a 0%, #0d0e1e 50%, #12103a 100%);
  padding: 1rem;
}

.login-card {
  background: var(--bg3);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(122, 44, 255, 0.1);
  animation: slideDown 0.5s ease;
}

.login-card h1 {
  font-family: var(--font-head);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: var(--font-size-2xl);
  letter-spacing: 0.5px;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-form input {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid rgba(122, 44, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--font-size-sm);
  font-family: var(--font-body);
  transition: var(--transition);
  min-height: var(--touch-target);
}

.login-form input::placeholder {
  color: var(--text-dim);
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 12px var(--accent-glow);
}

.error-msg {
  color: var(--red);
  font-size: var(--font-size-xs);
  text-align: center;
  min-height: 1.5rem;
  font-weight: 500;
}

.login-form button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, #b84cff 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.75rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  min-height: var(--touch-target);
}

.login-form button:active {
  transform: scale(0.98);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.login-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.demo-info {
  background: rgba(122, 44, 255, 0.1);
  border: 1px solid rgba(122, 44, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

/* ADMIN PAGE */
.admin-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.admin-section h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-lg);
}

.admin-section h3 {
  font-family: var(--font-head);
  font-size: var(--font-size-lg);
  margin-bottom: 1.25rem;
  color: var(--text);
}

.admin-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(122, 44, 255, 0.05) 100%);
  border: 1px solid rgba(122, 44, 255, 0.14);
  border-radius: var(--radius);
  padding: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid rgba(122, 44, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--font-size-sm);
  font-family: var(--font-body);
  transition: var(--transition);
  min-height: var(--touch-target);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 10px var(--accent-glow);
}

.permission-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.permission-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: var(--font-size-sm);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  min-height: var(--touch-target);
}

.permission-group input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--accent);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-group button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  min-height: var(--touch-target);
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent) 0%, #b84cff 100%);
  color: var(--text);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-submit:active {
  transform: scale(0.98);
  box-shadow: 0 6px 15px var(--accent-glow);
}

.btn-reset {
  background: var(--bg2);
  color: var(--text-dim);
  border: 1px solid rgba(122, 44, 255, 0.2);
}

.btn-reset:active {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--text);
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
  border: 1px solid rgba(122, 44, 255, 0.1);
  border-radius: var(--radius-sm);
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-xs);
  min-width: 100%;
}

.table-container th {
  background: var(--bg);
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--accent);
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-xxs);
  letter-spacing: 0.5px;
}

.table-container td {
  padding: 1rem;
  border-bottom: 1px solid rgba(122, 44, 255, 0.1);
  color: var(--text);
}

.table-container tr:active {
  background: rgba(122, 44, 255, 0.05);
}

.admin-mobile-table td strong {
  color: #fff;
}

.btn-small {
  padding: 0.75rem 1rem;
  font-size: var(--font-size-xxs);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  font-family: var(--font-body);
  min-height: var(--touch-target);
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-edit {
  background: rgba(122, 44, 255, 0.3);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-edit:active {
  background: var(--accent);
  color: var(--text);
}

.btn-delete {
  background: rgba(255, 77, 77, 0.2);
  color: var(--red);
  border: 1px solid var(--red);
}

@media (max-width: 480px) {
  .admin-panel {
    padding: 0.9rem;
  }

  .admin-panel h3 {
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
  }

  .permission-group {
    gap: 0.75rem;
  }

  .permission-group label {
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(122, 44, 255, 0.12);
  }

  .table-container {
    border: none;
    overflow: visible;
    margin-top: 1rem;
  }

  .admin-mobile-table {
    display: block;
  }

  .admin-mobile-table thead {
    display: none;
  }

  .admin-mobile-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .admin-mobile-table tr {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(122, 44, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
  }

  .admin-mobile-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(122, 44, 255, 0.08);
    text-align: right;
  }

  .admin-mobile-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .admin-mobile-table td::before {
    content: attr(data-label);
    color: var(--text-dim);
    font-size: var(--font-size-xxs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
  }

  .admin-mobile-table td[data-label="AÃ§Ãµes"] {
    display: block;
    text-align: left;
    padding-top: 0.75rem;
  }

  .admin-mobile-table td[data-label="AÃ§Ãµes"]::before {
    display: block;
    margin-bottom: 0.6rem;
  }

  .admin-mobile-table td[data-label="AÃ§Ãµes"] .btn-small {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.btn-delete:active {
  background: var(--red);
  color: var(--text);
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: rgba(0, 255, 136, 0.2);
  color: var(--green);
  border: 1px solid var(--green);
}

.status-inactive {
  background: rgba(255, 77, 77, 0.2);
  color: var(--red);
  border: 1px solid var(--red);
}

/* CARGOS */
.roles-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rank-hero {
  background: radial-gradient(circle at top left, rgba(122, 44, 255, 0.28), transparent 42%), linear-gradient(135deg, #0f1222 0%, #17112f 100%);
  border-color: rgba(122, 44, 255, 0.25);
}

.rank-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d8c3ff;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rank-intro {
  max-width: 78ch;
  color: rgba(240, 240, 245, 0.82);
}

.rank-board-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rank-board-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rank-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(122, 44, 255, 0.12);
  border: 1px solid rgba(122, 44, 255, 0.25);
  color: #e4d9ff;
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.rank-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.rank-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.rank-group.tone-management {
  background: linear-gradient(135deg, rgba(145, 74, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.rank-group.tone-elite {
  background: linear-gradient(135deg, rgba(255, 78, 109, 0.12), rgba(255, 255, 255, 0.03));
}

.rank-group.tone-high {
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.12), rgba(255, 255, 255, 0.03));
}

.rank-group.tone-mid {
  background: linear-gradient(135deg, rgba(255, 214, 92, 0.11), rgba(255, 255, 255, 0.03));
}

.rank-group.tone-basic {
  background: linear-gradient(135deg, rgba(76, 163, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.rank-group.tone-entry {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(255, 255, 255, 0.03));
}

.rank-group-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.rank-group-header h3 {
  font-family: var(--font-head);
  font-size: var(--font-size-xl);
}

.rank-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.rank-role-card {
  background: rgba(10, 12, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rank-role-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rank-role-header h4 {
  font-size: var(--font-size-sm);
  margin-bottom: 0.2rem;
}

.rank-role-header small {
  color: var(--text-dim);
}

.rank-role-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 44, 255, 0.16);
  border: 1px solid rgba(122, 44, 255, 0.25);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rank-member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rank-member {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.rank-member-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent-light);
  box-shadow: 0 0 10px rgba(122, 44, 255, 0.42);
  flex-shrink: 0;
}

.rank-empty {
  color: var(--text-dim);
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.1rem;
}

.roles-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roles-toolbar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.role-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.role-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.role-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid rgba(122, 44, 255, 0.35);
  background: rgba(122, 44, 255, 0.12);
  color: #d8c3ff;
}

.role-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-card-actions select {
  background: #171a29;
  color: var(--text);
  border-color: rgba(122, 44, 255, 0.35);
  color-scheme: dark;
}

.role-card-actions select option {
  background: #171a29;
  color: #f0f0f5;
}

.role-card-actions select optgroup {
  background: #0f1220;
  color: #b7b9d3;
  font-weight: 700;
}

.role-card-actions .btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dark-native-select {
  background: #171a29;
  color: var(--text);
  border-color: rgba(122, 44, 255, 0.35);
  color-scheme: dark;
}

.dark-native-select option {
  background: #171a29;
  color: #f0f0f5;
}

.dark-native-select optgroup {
  background: #0f1220;
  color: #b7b9d3;
  font-weight: 700;
}

.roles-help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.role-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.role-group h3 {
  font-family: var(--font-head);
  font-size: var(--font-size-sm);
  margin-bottom: 0.45rem;
}

.role-group p {
  color: var(--text-dim);
  font-size: var(--font-size-xs);
}

/* PONTO */
.punch-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.punch-hero {
  background: linear-gradient(135deg, #10152a 0%, #19103d 100%);
  border: 1px solid rgba(122, 44, 255, 0.28);
}

.punch-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.punch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: var(--font-size-xxs);
  font-weight: 700;
}

.punch-status-card,
.punch-history-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.game-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(122, 44, 255, 0.26), transparent 18%),
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.16), transparent 28%),
    linear-gradient(135deg, #0b1020 0%, #16102e 52%, #22153f 100%);
  border: 1px solid rgba(122, 44, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 38%, transparent 52%),
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.game-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.game-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.game-hero-visual {
  position: relative;
  min-height: 240px;
  margin-top: 1rem;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(122, 44, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 14, 25, 0.76), rgba(8, 11, 20, 0.96)),
    radial-gradient(circle at top, rgba(0, 255, 136, 0.08), transparent 32%);
}

.game-hero-glow {
  position: absolute;
  inset: auto auto 18% -12%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.26), transparent 68%);
  filter: blur(8px);
}

.game-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
}

.game-countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: radial-gradient(circle at center, rgba(122, 44, 255, 0.24), rgba(5, 8, 16, 0.92) 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.game-countdown-overlay.show {
  opacity: 1;
}

.game-countdown {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 980px);
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-shadow: 0 0 28px rgba(122, 44, 255, 0.28);
}

.game-countdown.show {
  opacity: 1;
  transform: scale(1);
}

.game-countdown.race-call {
  color: #00ff88;
  text-shadow: 0 0 22px rgba(0, 255, 136, 0.28);
}

.game-problem-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.game-box-lights {
  position: absolute;
  top: 18px;
  left: 28px;
  right: 120px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.game-box-light {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 242, 255, 0.18), rgba(255, 255, 255, 0.95), rgba(201, 242, 255, 0.18));
  box-shadow: 0 0 16px rgba(207, 236, 255, 0.45);
  opacity: 0.9;
}

.game-track::before {
  content: "";
  position: absolute;
  inset: 22px 18px 22px 18px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #202632 0%, #131925 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -14px 24px rgba(0, 0, 0, 0.45);
}

.game-track::after {
  content: "";
  position: absolute;
  inset: 50% 22px auto 22px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0 3%, rgba(255, 255, 255, 0.28) 3% 8%, transparent 8% 16%, rgba(255, 255, 255, 0.28) 16% 21%, transparent 21% 29%, rgba(255, 255, 255, 0.28) 29% 34%, transparent 34% 42%, rgba(255, 255, 255, 0.28) 42% 47%, transparent 47% 55%, rgba(255, 255, 255, 0.28) 55% 60%, transparent 60% 68%, rgba(255, 255, 255, 0.28) 68% 73%, transparent 73% 100%);
  transform: translateY(-50%);
  opacity: 0.85;
}

.game-lane-mark {
  position: absolute;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.08) 82%, transparent 100%);
}

.game-lane-mark-1 {
  left: 18%;
}

.game-lane-mark-2 {
  left: 56%;
}

.game-lane-mark-3 {
  right: 22%;
}

.game-pit-sign {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 2;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.32);
  color: #ffd4d4;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.6px;
}

.game-car {
  position: absolute;
  left: -10%;
  top: 50%;
  width: 320px;
  height: 150px;
  transform: translateY(-50%);
  animation: gameCarDriveIn 4.8s ease-in-out infinite;
  z-index: 3;
}

.game-car-shadow {
  position: absolute;
  left: 42px;
  right: 62px;
  bottom: 16px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(14px);
}

.game-car-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.28));
}

.game-car-headlight-beam {
  position: absolute;
  right: -54px;
  top: 68px;
  width: 120px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 235, 158, 0.92), rgba(255, 235, 158, 0));
  filter: blur(2px);
  opacity: 0.85;
}

.game-car-smoke {
  position: absolute;
  left: 12px;
  bottom: 52px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  filter: blur(5px);
  animation: gameSmokeDrift 3.2s ease-out infinite;
}

.game-car-smoke-2 {
  left: 4px;
  bottom: 34px;
  width: 38px;
  height: 38px;
  animation-delay: 1.2s;
}

.game-car-sparks {
  position: absolute;
  right: 42px;
  bottom: 28px;
  width: 64px;
  height: 34px;
  background:
    radial-gradient(circle, rgba(255, 183, 77, 0.95) 0 16%, transparent 17%) 8px 16px / 18px 18px no-repeat,
    radial-gradient(circle, rgba(255, 120, 70, 0.95) 0 15%, transparent 16%) 26px 10px / 16px 16px no-repeat,
    radial-gradient(circle, rgba(255, 215, 97, 0.95) 0 13%, transparent 14%) 42px 20px / 14px 14px no-repeat;
  animation: gameSparkFlash 0.9s steps(2) infinite;
}

.game-car-wheel {
  display: none;
}

.game-car-wheel-front {
  right: 28px;
}

.game-car-wheel-back {
  left: 30px;
}

.game-car-light {
  display: none;
}

.game-pit-bays-visual {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 0.6rem;
  width: min(40%, 210px);
  z-index: 2;
}

.game-pit-bay-card {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(122, 44, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(6px);
}

.game-pit-bay-card span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  letter-spacing: 0.45px;
}

.game-pit-bay-card strong {
  font-size: var(--font-size-xs);
}

.game-pit-bay-card.active {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.12);
  background:
    linear-gradient(180deg, rgba(0, 255, 136, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 26, 0.92);
}

@media (max-width: 767px) {
  .game-hero-visual {
    min-height: 210px;
  }

  .game-car {
    width: 230px;
    height: 110px;
    left: -18%;
  }

  .game-pit-bays-visual {
    width: 44%;
    right: 12px;
    bottom: 12px;
  }

  .game-pit-bay-card {
    padding: 0.6rem 0.65rem;
  }

  .game-pit-bay-card strong {
    font-size: var(--font-size-xxs);
  }

  .game-box-lights {
    right: 88px;
    gap: 0.4rem;
  }
}

@media (min-width: 900px) {
  .game-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 240px minmax(360px, 0.95fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .game-actions {
    align-self: center;
    margin-top: 0;
  }

  .game-hero-visual {
    min-height: 280px;
    margin-top: 0;
  }
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.game-stat {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 44, 255, 0.12);
}

.game-stat span {
  display: block;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  margin-bottom: 0.2rem;
}

.game-stat strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: #fff;
}

.game-status-row {
  margin: 1rem 0 1.2rem;
}

.game-heat {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(122, 44, 255, 0.12);
  margin-bottom: 0.75rem;
}

.game-heat-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ff88 0%, #ffd65c 55%, #ff5f5f 100%);
  transition: width 0.22s ease;
}

.game-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(90deg, rgba(122, 44, 255, 0.06), rgba(0, 255, 136, 0.04));
  border: 1px solid rgba(122, 44, 255, 0.12);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.game-grid::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius) - 2px);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28%);
  pointer-events: none;
}

.game-bay {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  height: 120px;
  padding: 1rem 1rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(122, 44, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #161d2d 0%, #101525 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.game-bay::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto 14px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  opacity: 0.75;
}

.game-bay:active {
  transform: scale(0.98);
}

.game-bay-light,
.game-bay-rig,
.game-bay-floor,
.game-bay-service-arm,
.game-bay-sparks,
.game-bay-smoke {
  position: absolute;
  pointer-events: none;
}

.game-bay-light {
  top: 18px;
  right: 16px;
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(189, 236, 255, 0.15), rgba(255, 255, 255, 0.9), rgba(189, 236, 255, 0.15));
  box-shadow: 0 0 12px rgba(189, 236, 255, 0.35);
}

.game-bay-light.danger {
  background: linear-gradient(90deg, rgba(255, 117, 117, 0.24), rgba(255, 214, 92, 0.95), rgba(255, 117, 117, 0.24));
  box-shadow: 0 0 16px rgba(255, 160, 84, 0.42);
}

.game-bay-rig {
  top: 28px;
  left: 16px;
  width: 12px;
  bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(126, 139, 168, 0.8), rgba(58, 66, 85, 0.55));
}

.game-bay-rig.active {
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

.game-bay-service-arm {
  top: 54px;
  left: 22px;
  width: 48px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 139, 168, 0.85), rgba(78, 86, 111, 0.42));
  transform-origin: left center;
}

.game-bay-service-arm.active {
  animation: gameServiceArmMove 1.1s ease-in-out infinite alternate;
}

.game-bay-floor {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 30px;
  border-radius: 14px 14px 20px 20px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.game-bay-floor.active {
  background:
    radial-gradient(circle at center, rgba(255, 156, 84, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.game-bay-sparks {
  right: 18px;
  bottom: 26px;
  width: 56px;
  height: 34px;
  background:
    radial-gradient(circle, rgba(255, 221, 102, 0.95) 0 16%, transparent 17%) 6px 10px / 16px 16px no-repeat,
    radial-gradient(circle, rgba(255, 155, 82, 0.95) 0 16%, transparent 17%) 24px 4px / 18px 18px no-repeat,
    radial-gradient(circle, rgba(255, 107, 75, 0.95) 0 16%, transparent 17%) 36px 18px / 15px 15px no-repeat;
  animation: gameSparkFlash 0.72s steps(2) infinite;
}

.game-bay-smoke {
  right: 18px;
  top: 34px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  filter: blur(3px);
  animation: gameSmokeDrift 2.8s ease-out infinite;
}

.game-bay-id {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  color: rgba(231, 238, 255, 0.92);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-bay-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
}

.game-bay-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.game-bay-core {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: auto;
}

.game-bay-orbs {
  display: flex;
  gap: 0.35rem;
}

.game-bay-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
}

.game-bay-orb-dim {
  opacity: 0.42;
}

.game-bay-orb-live {
  background: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.5);
}

.game-bay-orb-hot {
  background: #ffd65c;
  box-shadow: 0 0 14px rgba(255, 214, 92, 0.45);
}

.game-bay-heat-track {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.game-bay-heat-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00ff88 0%, #6fffc4 18%, #ffd65c 58%, #ff5f5f 100%);
  box-shadow: 0 0 14px rgba(255, 214, 92, 0.28);
  transition: width 0.12s linear, opacity 0.12s linear;
  transform-origin: left center;
}

.game-bay *,
.game-difficulty-btn,
.game-actions button,
.game-mode-chip {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.game-bay.active {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
  background:
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.2), transparent 34%),
    linear-gradient(180deg, #152d28 0%, #12221d 100%);
  animation: gameBayPulse 0.9s infinite alternate;
}

.game-bay.game-bay-memory {
  background:
    radial-gradient(circle at top right, rgba(122, 44, 255, 0.28), transparent 34%),
    radial-gradient(circle at bottom left, rgba(0, 255, 136, 0.1), transparent 36%),
    linear-gradient(180deg, #1b2034 0%, #13192a 100%);
}

.game-bay-core-part {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.7rem;
}

.game-bay-wrong {
  border-color: rgba(255, 95, 95, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 95, 0.12) !important;
  background:
    radial-gradient(circle at center, rgba(255, 95, 95, 0.18), transparent 38%),
    linear-gradient(180deg, #2a1620 0%, #1b1420 100%) !important;
}

.game-bay-memory-flash {
  border-color: rgba(122, 182, 255, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(122, 182, 255, 0.18), 0 0 28px rgba(122, 182, 255, 0.24) !important;
  background:
    radial-gradient(circle at center, rgba(122, 182, 255, 0.2), transparent 42%),
    linear-gradient(180deg, #1f2741 0%, #182035 100%) !important;
}

.game-bay-memory-hit {
  border-color: rgba(0, 255, 136, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.16), 0 0 28px rgba(0, 255, 136, 0.2) !important;
  background:
    radial-gradient(circle at center, rgba(0, 255, 136, 0.18), transparent 42%),
    linear-gradient(180deg, #163128 0%, #13231f 100%) !important;
}

#gameArenaSection.game-playing {
  overscroll-behavior: contain;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.game-focus-mode #gameArenaSection {
  margin-top: 0;
}

body.game-focus-mode #gameArenaSection .game-help {
  display: none;
}

body.game-focus-mode #gameArenaSection .game-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

body.game-focus-mode #gameArenaSection .game-stat {
  padding: 0.65rem 0.85rem;
}

body.game-focus-mode #gameArenaSection .game-stat strong {
  font-size: 1.25rem;
}

body.game-focus-mode #gameArenaSection .game-status-row {
  margin: 0.65rem 0 0.8rem;
}

body.game-focus-mode #gameArenaSection .game-grid {
  flex: 1;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.game-focus-mode #gameArenaSection .game-bay {
  min-height: 106px;
  height: 106px;
}

@media (max-width: 900px) {
  body.game-focus-mode #gameArenaSection {
    min-height: calc(100vh - 100px);
  }

  body.game-focus-mode #gameArenaSection .game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.game-focus-mode #gameArenaSection .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.game-bay.solved {
  border-color: rgba(122, 44, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.1);
  background:
    radial-gradient(circle at center, rgba(122, 44, 255, 0.18), transparent 36%),
    linear-gradient(180deg, #1a1830 0%, #12162a 100%);
}

.game-problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6fbff;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-problem-icon svg {
  width: 26px;
  height: 26px;
}

.game-problem-icon-idle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 58%, transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.game-problem-icon-idle::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
}

.game-memory-core {
  background:
    radial-gradient(circle at center, rgba(122, 182, 255, 0.2), rgba(255, 255, 255, 0.03) 58%, transparent 64%);
}

.game-memory-core::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b4d2ff, #7c82ff);
  box-shadow: 0 0 20px rgba(122, 182, 255, 0.36);
}

.game-problem-icon.game-memory-core::before {
  display: none;
}

.game-tune-meter {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 22px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 92, 92, 0.38), rgba(255, 196, 92, 0.3) 18%, rgba(255, 196, 92, 0.28) 82%, rgba(255, 92, 92, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(12, 16, 24, 0.55), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.game-tune-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(16, 23, 37, 0.94), rgba(12, 18, 30, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-tune-panel.is-target {
  border-color: rgba(83, 255, 163, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(83, 255, 163, 0.12);
}

.game-tune-panel.is-decoy {
  border-color: rgba(255, 184, 92, 0.18);
}

.game-tune-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-tune-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.game-tune-problem {
  color: #f8fbff;
  font-size: 0.95rem;
  line-height: 1.1;
}

.game-tune-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.game-tune-meter-label {
  color: #d8ffe8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-bay-target-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(83, 255, 163, 0.12);
  border: 1px solid rgba(83, 255, 163, 0.22);
  color: #cffff0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-bay-target-flag.is-decoy {
  background: rgba(255, 184, 92, 0.12);
  border-color: rgba(255, 184, 92, 0.22);
  color: #ffe7bf;
}

.game-tune-target {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 18px;
  margin-left: -9px;
  border-radius: 999px;
  border: 2px solid rgba(231, 255, 242, 0.95);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

.game-tune-target::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid rgba(231, 255, 242, 0.92);
}

.game-tune-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 40%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(83, 255, 163, 0.88), rgba(176, 255, 204, 0.95));
  box-shadow: 0 0 18px rgba(83, 255, 163, 0.34);
}

.game-tune-needle {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 8px;
  margin-left: -4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff, #7dd6ff);
  box-shadow: 0 0 16px rgba(125, 214, 255, 0.6);
  z-index: 2;
}

.game-problem-icon-live.problem-tyre {
  color: #f5f7ff;
}

.game-problem-icon-live.problem-battery {
  color: #9ee9ff;
}

.game-problem-icon-live.problem-oil {
  color: #9affc4;
}

.game-problem-icon-live.problem-light {
  color: #ffe28b;
}

.game-problem-icon-live.problem-tool {
  color: #ffb38d;
}

.game-bay-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  min-width: 82px;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 19, 30, 0.9), rgba(9, 12, 20, 0.88));
  border: 1px solid rgba(96, 255, 181, 0.22);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #d8fff0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.game-bay-timer.danger {
  border-color: rgba(255, 214, 92, 0.38);
  color: #fff2bb;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16), 0 0 18px rgba(255, 214, 92, 0.16);
}

.game-bay-timer.critical {
  border-color: rgba(255, 95, 95, 0.48);
  color: #ffe2e2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16), 0 0 18px rgba(255, 95, 95, 0.2);
}

.game-bay-timer-value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

@media (max-width: 900px) {
  .game-tune-panel {
    padding: 0.68rem;
  }

  .game-tune-panel-head {
    gap: 0.6rem;
  }

  .game-problem-icon {
    width: 48px;
    height: 48px;
  }

  .game-problem-icon svg {
    width: 22px;
    height: 22px;
  }

  .game-tune-problem {
    font-size: 0.88rem;
  }

  .game-tune-meter {
    height: 20px;
  }

  .game-tune-target {
    width: 16px;
    margin-left: -8px;
  }
}

.game-help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.game-help-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 44, 255, 0.12);
}

.game-help-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.game-help-card p {
  color: var(--text-dim);
}

.game-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
}

.game-selector-btn {
  min-width: 150px;
  border-color: rgba(255, 255, 255, 0.1);
}

.game-selector-btn.active {
  background: linear-gradient(135deg, #00c97a, #7a2cff);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(48, 115, 255, 0.18);
}

.game-difficulty-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.game-difficulty-btn {
  min-width: 92px;
}

.game-difficulty-ultra {
  border-color: rgba(255, 77, 77, 0.45);
  color: #ffb1b1;
}

.game-difficulty-ultra.active {
  background: linear-gradient(135deg, #ff4d4d, #7a2cff);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(255, 77, 77, 0.22);
}

.game-difficulty-impossible {
  border-color: rgba(255, 89, 89, 0.5);
  color: #ffd7d7;
}

.game-difficulty-impossible.active {
  background: linear-gradient(135deg, #ff2f2f, #13040a 88%);
  border-color: rgba(255, 89, 89, 0.75);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 47, 47, 0.28);
}

.game-difficulty-ganzas {
  border-color: rgba(255, 164, 34, 0.5);
  color: #ffe0a6;
}

.game-difficulty-ganzas.active {
  background: linear-gradient(135deg, #ff7b1d, #2a0202 88%);
  border-color: rgba(255, 170, 48, 0.82);
  color: #fffaf1;
  box-shadow: 0 0 22px rgba(255, 123, 29, 0.34);
}

.game-mode-note {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: var(--font-size-xs);
}

.game-target-panel {
  margin-top: 0.85rem;
}

.game-target-label {
  display: inline-flex;
  margin-bottom: 0.45rem;
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.game-target-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    linear-gradient(120deg, rgba(122, 44, 255, 0.08), rgba(0, 255, 136, 0.08));
  border: 1px solid rgba(122, 44, 255, 0.18);
}

.game-target-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #f6fbff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.game-target-icon svg {
  width: 26px;
  height: 26px;
}

.game-memory-target::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8ec5ff, #6f7cff);
  box-shadow: 0 0 18px rgba(122, 182, 255, 0.32);
}

.game-target-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.game-target-copy strong {
  font-size: var(--font-size-sm);
}

.game-target-copy small {
  color: var(--text-dim);
}

.game-target-timer {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 255, 181, 0.22);
  background: rgba(8, 12, 20, 0.82);
  color: #d8fff0;
  font-family: var(--font-head);
  font-weight: 700;
}

.game-target-timer.danger {
  border-color: rgba(255, 214, 92, 0.4);
  color: #fff3bc;
}

.game-target-timer.critical {
  border-color: rgba(255, 95, 95, 0.52);
  color: #ffe4e4;
}

.game-mode-chip {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(122, 44, 255, 0.12);
  border: 1px solid rgba(122, 44, 255, 0.22);
  color: #d9c4ff;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(122, 44, 255, 0.16), transparent 22%),
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.1), transparent 22%),
    var(--bg);
}

.public-shell {
  width: min(1180px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1.1rem 0 2rem;
}

.public-hero {
  background:
    radial-gradient(circle at top right, rgba(122, 44, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #0f1325 0%, #19103d 100%);
  border: 1px solid rgba(122, 44, 255, 0.24);
}

.public-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.public-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: #9ff0c5;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.public-brand h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
}

.game-clear-leaderboard {
  margin-left: auto;
  min-height: 40px;
  padding: 0.6rem 0.9rem;
}

.game-leaderboard-shell {
  margin-top: 0.5rem;
}

.game-leaderboard-card {
  border: 1px solid rgba(122, 44, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.game-leaderboard-head,
.game-leaderboard-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 90px;
  gap: 0.75rem;
  align-items: center;
}

.game-leaderboard-head {
  padding: 0.85rem 1rem;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.45px;
  border-bottom: 1px solid rgba(122, 44, 255, 0.12);
}

.game-leaderboard-list {
  display: flex;
  flex-direction: column;
}

.game-leaderboard-row {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(122, 44, 255, 0.08);
}

.game-leaderboard-row:last-child {
  border-bottom: none;
}

.game-leaderboard-row.top {
  background: rgba(0, 255, 136, 0.06);
}

.game-rank {
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.game-player {
  font-weight: 700;
}

.game-score {
  text-align: right;
  color: #00ff88;
  font-family: var(--font-head);
}

@keyframes gameCarDriveIn {
  0% {
    transform: translate(-12%, -50%);
  }
  24% {
    transform: translate(26%, -50%);
  }
  48% {
    transform: translate(42%, -50%);
  }
  70% {
    transform: translate(38%, -50%);
  }
  100% {
    transform: translate(108%, -50%);
  }
}

@keyframes gameWheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gameSmokeDrift {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-18px, -26px) scale(1.4);
    opacity: 0;
  }
}

@keyframes gameSparkFlash {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.9);
  }
  35% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

@keyframes gameServiceArmMove {
  from {
    transform: rotate(-10deg);
  }
  to {
    transform: rotate(16deg);
  }
}

@keyframes gameBayPulse {
  from {
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08), 0 0 0 rgba(0, 255, 136, 0);
    filter: brightness(1);
  }
  to {
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12), 0 0 18px rgba(0, 255, 136, 0.16);
    filter: brightness(1.04);
  }
}

@keyframes trafficRoadFlow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(72px);
  }
}

@keyframes trafficLaneFlow {
  from {
    transform: translateX(-50%) translateY(0);
  }
  to {
    transform: translateX(-50%) translateY(90px);
  }
}

.punch-status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.punch-timer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.punch-timer-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.punch-timer-label {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.punch-timer-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px rgba(124, 48, 255, 0.3);
  transition: text-shadow 0.4s ease;
}

.punch-timer-value.is-running {
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.35), 0 0 80px rgba(0, 255, 136, 0.12);
}

.punch-status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.punch-status-dot-running {
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.8), 0 0 0 0 rgba(0, 255, 136, 0.7);
  animation: punchPulseGreen 1.4s infinite;
}

.punch-status-dot-paused {
  background: #ffd65c;
  box-shadow: 0 0 8px rgba(255, 214, 92, 0.7), 0 0 0 0 rgba(255, 214, 92, 0.65);
  animation: punchPulseOrange 1.4s infinite;
}

.punch-status-dot-idle {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.punch-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.punch-status-running {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.28);
}

.punch-status-paused {
  background: rgba(255, 192, 0, 0.12);
  color: #ffd65c;
  border: 1px solid rgba(255, 214, 92, 0.28);
}

.punch-status-idle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.punch-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.punch-completed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.punch-completed-header .hint {
  margin-top: 0.45rem;
}

.punch-btn-danger {
  background: rgba(255, 77, 77, 0.18);
  color: #ffd4d4;
  border: 1px solid rgba(255, 77, 77, 0.4);
}

.punch-btn-danger:active {
  background: rgba(255, 77, 77, 0.28);
}

@keyframes punchPulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.65);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(0, 255, 136, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
  }
}

@keyframes punchPulseOrange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 214, 92, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(255, 214, 92, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 214, 92, 0);
  }
}

@keyframes punchPulseRed {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 95, 95, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(255, 95, 95, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 95, 95, 0);
  }
}

.punch-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.punch-summary-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.punch-summary-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
}

.punch-summary-item span {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
}

.punch-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.punch-session-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.punch-session-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.punch-session-item small {
  color: var(--text-dim);
}

.punch-session-time {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--green);
  white-space: nowrap;
}

/* ===== IMPRESSÃO ===== */
@media print {
  body > *:not(#printDocument) {
    display: none !important;
  }

  #printDocument {
    display: block !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    background: #fff !important;
    color: #12112a !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 0 !important;
    width: 100% !important;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box;
  }

  /* ── Barra de topo ── */
  .pd-topbar {
    height: 8pt;
    background: linear-gradient(90deg, #3b00b9 0%, #7c50ff 55%, #b28aff 100%) !important;
    display: block;
    width: 100%;
  }

  /* ── Header ── */
  .pd-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 14pt 22pt 12pt;
    border-bottom: 0.5pt solid #e8e4f8;
  }

  .pd-brand {
    display: flex !important;
    align-items: center;
    gap: 12pt;
  }

  .pd-logo {
    height: 42pt;
    width: auto;
  }

  .pd-brand-name {
    font-family: 'Rajdhani', 'Inter', sans-serif !important;
    font-size: 23pt;
    font-weight: 700;
    letter-spacing: 2.5pt;
    color: #0b0c14 !important;
    line-height: 1;
    display: block;
  }

  .pd-brand-sub {
    font-size: 6.5pt;
    letter-spacing: 2.5pt;
    text-transform: uppercase;
    color: #7c50ff !important;
    display: block;
    margin-top: 5pt;
    font-weight: 700;
  }

  .pd-doc-info {
    text-align: right;
  }

  .pd-doc-type {
    font-family: 'Rajdhani', 'Inter', sans-serif !important;
    font-size: 15pt;
    font-weight: 700;
    letter-spacing: 1.5pt;
    color: #0b0c14 !important;
    display: block;
    text-transform: uppercase;
  }

  .pd-doc-scope {
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 1.5pt;
    text-transform: uppercase;
    color: #7c50ff !important;
    display: block;
    margin-top: 4pt;
  }

  .pd-doc-ref {
    font-size: 7pt;
    color: #a8a4c0 !important;
    display: block;
    margin-top: 7pt;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3pt;
  }

  /* ── Faixa de período (fundo escuro) ── */
  .pd-period-bar {
    display: flex !important;
    gap: 0;
    background: #0b0c14 !important;
    width: 100%;
    margin: 0;
  }

  .pd-period-item {
    flex: 1;
    padding: 10pt 22pt;
    border-right: 0.5pt solid rgba(255,255,255,0.07);
  }

  .pd-period-item:last-child {
    border-right: none;
  }

  .pd-period-label {
    display: block;
    font-size: 6pt;
    font-weight: 700;
    letter-spacing: 1.5pt;
    text-transform: uppercase;
    color: #7c50ff !important;
    margin-bottom: 3pt;
  }

  .pd-period-value {
    display: block;
    font-size: 9pt;
    font-weight: 600;
    color: #ffffff !important;
  }

  /* ── KPIs ── */
  .pd-kpis {
    display: table !important;
    table-layout: fixed;
    width: calc(100% - 44pt);
    border-collapse: separate;
    border-spacing: 8pt 0;
    margin: 14pt 22pt 14pt;
  }

  .pd-kpi {
    display: table-cell !important;
    vertical-align: top;
    padding: 11pt 14pt;
    background: #f7f5ff !important;
    border-top: 3pt solid #7c50ff !important;
  }

  .pd-kpi-value {
    font-family: 'Rajdhani', 'Inter', sans-serif !important;
    font-size: 21pt;
    font-weight: 700;
    color: #7c50ff !important;
    line-height: 1;
    display: block;
    margin-bottom: 5pt;
  }

  .pd-kpi-label {
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: 1pt;
    text-transform: uppercase;
    color: #8890a8 !important;
    display: block;
  }

  /* ── Tabela ── */
  .pd-table {
    width: calc(100% - 44pt);
    margin: 0 22pt;
    border-collapse: collapse;
    margin-bottom: 6pt;
  }

  .pd-table thead tr {
    background: #0b0c14 !important;
  }

  .pd-table thead th {
    background: #0b0c14 !important;
    color: #ffffff !important;
    font-family: 'Rajdhani', 'Inter', sans-serif !important;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 1.5pt;
    text-transform: uppercase;
    padding: 9pt 10pt;
    text-align: left !important;
    border: none !important;
  }

  .pd-table tbody tr:nth-child(even) td {
    background: #fbfaff !important;
  }

  .pd-table td {
    padding: 8.5pt 10pt;
    font-size: 9.5pt;
    color: #12112a !important;
    border: none !important;
    border-bottom: 0.5pt solid #edeaff !important;
    vertical-align: middle;
  }

  .pd-table tbody tr:last-child td {
    border-bottom: none !important;
  }

  /* Larguras das colunas */
  .pd-col-rank  { width: 34pt; text-align: center !important; font-size: 11pt; }
  .pd-col-name  { font-weight: 600; }
  .pd-col-hours { width: 62pt; text-align: right !important; font-family: 'Rajdhani', 'Inter', sans-serif !important; font-size: 12pt; font-weight: 700; color: #7c50ff !important; }
  .pd-col-bar   { width: 80pt; padding: 8pt 10pt; }
  .pd-col-pct   { width: 30pt; text-align: right !important; font-size: 8pt; color: #a8a4c0 !important; }

  /* Barra de progresso */
  .pd-bar-track {
    width: 100%;
    height: 4pt;
    background: #edeaff !important;
    border-radius: 2pt;
    overflow: hidden;
  }

  .pd-bar-fill {
    height: 100%;
    background: #7c50ff !important;
    border-radius: 2pt;
    min-width: 1pt;
  }

  /* Destaque top 3 */
  .pd-top1 td { background: #fffef0 !important; }
  .pd-top1 td:first-child { border-left: 3pt solid #f0c020 !important; }
  .pd-top1 .pd-bar-fill { background: #d4a808 !important; }
  .pd-top1 .pd-col-hours { color: #a07800 !important; }

  .pd-top2 td { background: #f8f8fb !important; }
  .pd-top2 td:first-child { border-left: 3pt solid #9baab8 !important; }
  .pd-top2 .pd-bar-fill { background: #9baab8 !important; }

  .pd-top3 td { background: #fff9f5 !important; }
  .pd-top3 td:first-child { border-left: 3pt solid #c07030 !important; }
  .pd-top3 .pd-bar-fill { background: #c07030 !important; }

  /* Linha de total (rodapé da tabela) */
  .pd-total-row td {
    background: #0b0c14 !important;
    color: #ffffff !important;
    font-weight: 700;
    border: none !important;
    padding: 10pt 10pt;
  }

  .pd-total-row .pd-col-hours {
    color: #b28aff !important;
    font-size: 13pt;
  }

  .pd-total-row .pd-col-pct {
    color: #5a5878 !important;
  }

  /* Horas baixas */
  .pd-low { color: #dc2020 !important; }

  /* Notas */
  .pd-notes {
    display: flex !important;
    align-items: center;
    gap: 4pt;
    font-size: 7pt;
    color: #a8a4c0 !important;
    padding: 4pt 22pt 0;
    margin-bottom: 14pt;
  }

  .pd-note-dot {
    display: inline-block;
    width: 5pt;
    height: 5pt;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .pd-dot-low  { background: #dc2020 !important; }
  .pd-dot-gold { background: #d4a808 !important; }

  /* Rodapé */
  .pd-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 8pt 22pt;
    border-top: 0.5pt solid #e8e4f8;
    font-size: 7pt;
    color: #a8a4c0 !important;
  }

  .pd-footer-confidential {
    font-size: 6.5pt;
    letter-spacing: 0.8pt;
    text-transform: uppercase;
  }

  .pd-footer-ref {
    font-family: 'Courier New', monospace;
    font-size: 7pt;
    color: #c0b8e0 !important;
  }
}

/* ===== MEDIA QUERIES - RESPONSIVO ===== */

/* SMALL DEVICES (480px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  body {
    padding: 0.75rem;
  }

  .topbar {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .logo {
    height: 2rem;
  }

  .logo-area h1 {
    font-size: 0.95rem;
  }

  .nav-btn {
    font-size: var(--font-size-xxs);
    padding: 0.6rem;
  }

  .card {
    padding: 0.75rem;
  }

  .card h2 {
    font-size: var(--font-size-lg);
  }

  .modal-content {
    max-width: 95vw;
  }

  .admin-section h2 {
    font-size: var(--font-size-lg);
  }

  .login-card {
    padding: 1.5rem;
  }

  .login-card h1 {
    font-size: var(--font-size-xl);
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    font-size: var(--font-size-xxs);
    padding: 0.75rem 1rem;
  }

  /* Tabela de PreÃ§os - Mobile */
  .precos-filter-bar {
    padding: 0;
  }

  .filters-top {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-input,
  .category-select {
    width: 100%;
    font-size: 16px;
  }

  .precos-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-badge {
    width: 100%;
    text-align: left;
    font-size: var(--font-size-xxs);
    padding: 0.5rem 0.75rem;
  }

  .precos-table-wrapper {
    margin: 0 -0.75rem;
    border-radius: 0;
  }

  .precos-table {
    font-size: var(--font-size-xxs);
  }

  .precos-table thead {
    display: none;
  }

  .precos-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(34, 35, 55, 0.7);
    border: 1px solid rgba(122, 44, 255, 0.2);
    border-radius: 10px;
  }

  .precos-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: none;
    text-align: left;
  }

  .precos-table tbody tr td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-dim);
    font-size: var(--font-size-xxs);
    min-width: 120px;
  }

  .precos-table .material-cell {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(122, 44, 255, 0.1);
    margin-bottom: 0.5rem;
  }

  .precos-table .material-cell:before {
    content: "Material";
    font-weight: 700;
    color: var(--accent);
  }

  .precos-table .preco-cell {
    padding: 0.5rem 0;
  }

  .precos-table .preco-cell:nth-child(2):before {
    content: "S/Parceria";
  }

  .precos-table .preco-cell:nth-child(3):before {
    content: "C/Parceria";
  }

  .precos-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .stat-item {
    padding: 0.75rem;
    background: rgba(122, 44, 255, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(122, 44, 255, 0.15);
  }

  .stat-label {
    font-size: var(--font-size-xxs);
  }

  .stat-value {
    font-size: var(--font-size-sm);
  }

  /* FAB Carrinho - Mobile */
  .cart-fab.show-fab {
    display: flex !important;
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    background: linear-gradient(135deg, var(--accent) 0%, #b84cff 100%);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(122, 44, 255, 0.5);
    z-index: 160;
    cursor: pointer;
    animation: slideUpFab 0.3s ease;
    border: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
  }

  @keyframes slideUpFab {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .fab-icon {
    font-size: 1.5rem;
  }

  .fab-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
  }

  .fab-qty {
    font-size: var(--font-size-xxs);
    font-weight: 600;
    opacity: 0.9;
  }

  .fab-total {
    font-size: var(--font-size-sm);
    font-weight: 700;
    font-family: var(--font-head);
  }
}

/* TABLET & MEDIUM DEVICES (600px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .logo-area {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .nav-buttons {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
  }

  .nav-btn {
    flex: 1 1 auto;
    min-width: 100px;
    font-size: var(--font-size-xs);
    padding: 0.75rem;
  }

  .user-section {
    flex-direction: row;
    width: auto;
    order: 2;
  }

  .user-section #userInfo {
    text-align: right;
    width: auto;
  }

  .user-section button {
    width: auto;
    padding: 0.75rem 1.25rem;
  }

  main {
    flex-direction: column;
  }

  .quick-actions {
    flex-direction: row;
    gap: 0.75rem;
  }

  .action-btn,
  .btn-primary,
  .save-btn {
    flex: 1 1 auto;
  }

  .section-header {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }

  .week-nav {
    order: 2;
  }

  .input-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .input-row input {
    flex: 1 1 150px;
  }

  .filters-top {
    flex-direction: row;
    gap: 1rem;
  }

  .search-input,
  .category-select {
    flex: 1;
  }

  .precos-table thead {
    display: table-header-group;
  }

  .precos-table tbody tr {
    display: table-row;
    flex-direction: initial;
    gap: initial;
    padding: initial;
    margin-bottom: initial;
  }

  .precos-table tbody tr td {
    display: table-cell;
    justify-content: initial;
    align-items: initial;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .precos-table .material-cell {
    width: auto;
    margin-bottom: 0;
    justify-content: initial;
  }

  .precos-table .preco-cell {
    width: auto;
    justify-content: center;
  }

  .modal-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .modal-actions {
    flex-direction: row;
    gap: 0.75rem;
  }

  .modal-actions button {
    flex: 1;
  }

  .supervisor-bar {
    flex-direction: row;
    align-items: center;
  }

  .supervisor-buttons {
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .supervisor-btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .cart-top-panel {
    display: block;
  }

  .cart-side-panel {
    display: none !important;
  }

  .cart-fab.show-fab {
    display: none !important;
  }

  .precos-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 1rem;
  }

  .permission-group {
    flex-direction: row;
    gap: 2rem;
  }

  .btn-group {
    flex-direction: row;
  }

  .btn-group button {
    width: auto;
    flex: 1;
  }

  .btn-small {
    width: auto;
    min-width: auto;
    margin-bottom: 0;
    margin-right: 0.75rem;
  }

  .admin-container {
    grid-template-columns: 1fr 1fr;
  }

  .roles-toolbar-actions {
    flex-direction: row;
    align-items: center;
  }

  .roles-toolbar-actions input {
    flex: 1;
  }

  .roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-card-actions {
    flex-direction: row;
  }

  .role-card-actions select {
    flex: 1;
  }

  .roles-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .punch-actions {
    flex-direction: row;
  }

  .punch-actions button {
    flex: 1;
  }

  .punch-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-actions {
    flex-direction: row;
    margin-top: 1.2rem;
  }

  .game-actions button {
    width: auto;
  }

  .game-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-help {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-container table {
    min-width: 100%;
    font-size: var(--font-size-xs);
  }
}

/* DESKTOP (768px+) */
@media (min-width: 769px) {
  .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
  }

  .logo-area {
    flex: 0 0 auto;
    padding-right: 0.35rem;
  }

  .nav-buttons {
    flex-direction: row;
    gap: 0.55rem;
    order: unset;
    width: auto;
    align-items: center;
    padding: 0.28rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .nav-btn {
    flex: 0 1 auto;
    font-size: var(--font-size-xs);
    padding: 0.82rem 1.05rem;
    white-space: nowrap;
    min-height: 2.9rem;
  }

  .nav-overflow {
    display: block;
  }

  .nav-overflow-menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: min(560px, calc(100vw - 3rem));
    padding: 1rem;
    background:
      radial-gradient(circle at top left, rgba(122, 44, 255, 0.18), transparent 26%),
      linear-gradient(180deg, rgba(20, 14, 37, 0.98), rgba(11, 12, 22, 0.98));
    border: 1px solid rgba(144, 92, 255, 0.24);
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0.85rem;
    z-index: 40;
  }

  .nav-overflow.open .nav-overflow-menu {
    display: flex;
  }

  .nav-hub-section {
    display: grid;
    gap: 0.65rem;
  }

  .nav-hub-heading {
    color: rgba(240, 240, 245, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }

  .nav-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .nav-hub-card {
    display: grid;
    gap: 0.3rem;
    min-height: 92px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .nav-hub-card strong {
    font-family: var(--font-head);
    font-size: 1.15rem;
    line-height: 1;
  }

  .nav-hub-card small {
    color: rgba(240, 240, 245, 0.66);
    line-height: 1.4;
  }

  .nav-hub-card.active {
    background: linear-gradient(135deg, rgba(122, 44, 255, 0.24), rgba(255, 107, 157, 0.16));
    border-color: rgba(173, 118, 255, 0.35);
  }

  .nav-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(173, 118, 255, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  }

  .nav-btn:hover {
    background: rgba(124, 48, 255, 0.12);
    border-color: rgba(124, 48, 255, 0.25);
    transform: translateY(-1px);
    color: #fff;
  }

  .user-section {
    flex-direction: row;
    margin-left: auto;
    order: unset;
    width: auto;
    gap: 0.5rem;
    padding-left: 0.5rem;
  }

  .user-section #userInfo {
    text-align: right;
    width: auto;
    padding: 0 0.45rem 0 0.2rem;
    white-space: nowrap;
  }

  .user-section button {
    width: auto;
    padding: 0.82rem 1rem;
    min-width: 4.8rem;
  }

  .user-section button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .event-reminder-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .event-reminder-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(255, 214, 92, 0.18);
  }

  main {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 300px;
    padding: 1.5rem;
  }

  .card.full-width {
    flex: 1 1 100%;
  }

  .home-hero-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: stretch;
  }

  .home-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-overview-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .home-main-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: start;
  }

  .home-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-team-card,
  .home-contract-card {
    min-height: 100%;
  }

  .quick-actions {
    flex-direction: row;
    gap: 1rem;
  }

  .action-btn,
  .btn-primary,
  .save-btn {
    flex: 0 1 auto;
  }

  .action-btn.primary:hover,
  .btn-primary:hover,
  .save-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--accent-glow);
  }

  .action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
  }

  .input-row {
    flex-direction: row;
    gap: 1rem;
  }

  .input-row input {
    flex: 1 1 150px;
  }

  .emp-card:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .employee-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  }

  .emp-card-tabs:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
      linear-gradient(135deg, rgba(122, 44, 255, 0.14), rgba(13, 14, 27, 0.95));
    border-color: rgba(255, 255, 255, 0.12);
  }

  .emp-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .emp-tab-btn.active:hover {
    background: linear-gradient(135deg, rgba(122, 44, 255, 0.95), rgba(255, 107, 157, 0.85));
  }

  .section-header {
    flex-direction: row;
    align-items: center;
  }

  .week-nav {
    justify-content: flex-start;
  }

  .filters-top {
    flex-direction: row;
    gap: 1rem;
  }

  .search-input,
  .category-select {
    width: auto;
    flex: 0 1 200px;
  }

  .precos-table thead {
    display: table-header-group;
  }

  .precos-table tbody tr {
    display: table-row;
    padding: initial;
    margin-bottom: initial;
    border: 1px solid rgba(122, 44, 255, 0.2);
    gap: initial;
  }

  .precos-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(122, 44, 255, 0.25);
    background: rgba(97, 48, 158, 0.4);
  }

  .precos-table tbody tr td {
    display: table-cell;
    padding: 1rem 0.75rem;
    text-align: center;
  }

  .precos-table .material-cell {
    text-align: left;
    width: 200px;
  }

  .precos-table .preco-cell {
    width: auto;
    cursor: pointer;
  }

  .precos-table .preco-cell:hover {
    background: rgba(122, 44, 255, 0.2);
    color: var(--accent-light);
  }

  .modal-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .modal-actions {
    flex-direction: row;
    gap: 0.75rem;
  }

  .precos-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .stat-item {
    flex-direction: column;
  }

  .cart-top-panel {
    display: block;
  }

  .cart-side-panel {
    width: 320px;
    animation: slideInRight 0.3s ease;
  }

  .cart-side-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "info info remove"
      "qty subtotal remove";
    align-items: center;
    gap: 0.6rem;
  }

  .cart-item-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .cart-qty-controls {
    grid-area: qty;
  }

  .cart-item-subtotal {
    grid-area: subtotal;
    min-width: 0;
  }

  .cart-remove-full {
    grid-area: remove;
    align-self: stretch;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .cart-fab {
    display: none !important;
  }

  .supervisor-bar {
    flex-direction: row;
    align-items: center;
  }

  .supervisor-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .supervisor-btn {
    flex: 0 1 auto;
  }

  .supervisor-btn:hover {
    background: rgba(122, 44, 255, 0.3);
    border-color: var(--accent);
  }

  .form-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .admin-container {
    grid-template-columns: 1fr 1fr;
  }

  .roles-layout {
    gap: 1.25rem;
  }

  .roles-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .roles-toolbar-actions {
    flex-direction: row;
    align-items: center;
  }

  .roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(122, 44, 255, 0.28);
  }

  .role-card-actions {
    flex-direction: row;
    align-items: center;
  }

  .role-card-actions select {
    flex: 1;
  }

  .roles-help {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-board-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .rank-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .punch-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
  }

  .punch-status-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .punch-actions {
    flex-direction: row;
  }

  .punch-actions button {
    min-width: 150px;
  }

  .punch-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-group {
    flex-direction: row;
    gap: 2rem;
  }

  .btn-group {
    flex-direction: row;
  }

  .btn-group button {
    width: auto;
    flex: 1;
  }

  .btn-small {
    width: auto;
    min-width: auto;
    display: inline-block;
    margin-bottom: 0;
  }

  .btn-edit:hover {
    background: var(--accent);
    color: var(--text);
  }

  .btn-delete:hover {
    background: var(--red);
    color: var(--text);
  }

  .table-container table {
    min-width: auto;
  }

  .table-container tr:hover {
    background: rgba(122, 44, 255, 0.05);
  }

  .filter-btn:hover {
    background: rgba(122, 44, 255, 0.15);
    color: var(--text);
    border-color: rgba(122, 44, 255, 0.3);
  }

  .login-card:hover {
    box-shadow: 0 0 40px var(--accent-glow), inset 0 0 20px rgba(122, 44, 255, 0.15);
  }
}

/* LARGE DESKTOP (1024px+) */
@media (min-width: 1024px) {
  .logo-area h1 {
    font-size: var(--font-size-2xl);
  }

  .card {
    flex: 1 1 350px;
  }

  .admin-container {
    grid-template-columns: 1fr 1fr;
  }

  .precos-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .search-input {
    flex: 1 1 250px;
  }

  .category-select {
    flex: 0 1 200px;
  }
}

/* ============================================================
   MIDNIGHT RACING â€” GAME ENHANCEMENTS (append to style.css)
   ============================================================ */

/* ===== SCREEN SHAKE ===== */
@keyframes shakeSm {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-3px) rotate(-0.4deg); }
  40%     { transform: translateX(3px) rotate(0.4deg); }
  60%     { transform: translateX(-2px); }
  80%     { transform: translateX(2px); }
}
@keyframes shakeMd {
  0%,100% { transform: translateX(0); }
  15%     { transform: translateX(-6px) rotate(-0.7deg); }
  30%     { transform: translateX(6px) rotate(0.7deg); }
  50%     { transform: translateX(-4px) rotate(-0.3deg); }
  70%     { transform: translateX(4px); }
  85%     { transform: translateX(-2px); }
}
@keyframes shakeLg {
  0%,100% { transform: translateX(0); }
  10%     { transform: translateX(-10px) rotate(-1deg); }
  25%     { transform: translateX(10px) rotate(1deg); }
  40%     { transform: translateX(-8px) rotate(-0.6deg); }
  55%     { transform: translateX(7px) rotate(0.5deg); }
  70%     { transform: translateX(-5px); }
  85%     { transform: translateX(3px); }
}
.shake-sm { animation: shakeSm 0.32s ease both; }
.shake-md { animation: shakeMd 0.38s ease both; }
.shake-lg { animation: shakeLg 0.45s ease both; }

/* ===== SCORE POPUP ANIMATION ===== */
@keyframes scorePopup {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  40%  { opacity: 1; transform: translateX(-50%) translateY(-28px) scale(1.1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-56px) scale(0.85); }
}

/* ===== COMBO HOT / FIRE ===== */
.game-stat strong.combo-hot {
  color: #00ff88;
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.5);
  transition: color 0.2s, text-shadow 0.2s;
}
.game-stat strong.combo-fire {
  color: #ffd65c !important;
  text-shadow: 0 0 24px rgba(255, 214, 92, 0.65);
  animation: comboFirePulse 0.4s ease-in-out infinite alternate;
}
@keyframes comboFirePulse {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ===== HEAT BAR STATES ===== */
.game-heat-bar.heat-warning {
  background: linear-gradient(90deg, #ffd65c 0%, #ff8c42 55%, #ff5f5f 100%);
  box-shadow: 0 0 14px rgba(255, 140, 66, 0.35);
}
.game-heat-bar.heat-critical {
  background: linear-gradient(90deg, #ff5f5f 0%, #ff2222 100%);
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
  animation: heatPulse 0.25s ease-in-out infinite alternate;
}
@keyframes heatPulse {
  from { opacity: 0.85; }
  to   { opacity: 1; box-shadow: 0 0 28px rgba(255, 50, 50, 0.7); }
}

/* ===== TRAFFIC: 3 LANES ===== */
.traffic-lane-3 { display: none !important; }

/* ===== TRAFFIC VEHICLE IMPROVEMENTS ===== */
.tv-colored-body {
  inset: 8% 16% 10%;
  border-radius: 32% 32% 24% 24% / 18% 18% 28% 28%;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -8px 18px rgba(0,0,0,0.24);
}

.tv-truck-cabin {
  left: 28%;
  right: 28%;
  top: 16%;
  bottom: 42%;
}

.tv-truck-stripe {
  left: 18%;
  right: 18%;
  bottom: 18%;
  height: 7%;
  background: rgba(255,255,255,0.16) !important;
}

/* Bus body */
.tv-bus-body {
  inset: 4% 10% 8%;
  border-radius: 14% 14% 10% 10% / 8% 8% 12% 12%;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -8px 18px rgba(0,0,0,0.24);
}
.tv-bus-glass {
  left: 18%;
  right: 18%;
  top: 16%;
  bottom: 52%;
  border-radius: 8% 8% 6% 6%;
  background: linear-gradient(180deg, rgba(227,245,255,0.9) 0%, rgba(70,103,145,0.5) 100%);
}
.tv-bus-stripe {
  left: 12%;
  right: 12%;
  top: 44%;
  bottom: 26%;
  height: 6%;
  border-radius: 999px;
  background: rgba(255,255,255,0.28) !important;
}

/* Speed trail behind vehicles */
.tv-speed-trail {
  left: 20%;
  right: 20%;
  bottom: 100%;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.18) 100%);
  filter: blur(4px);
  pointer-events: none;
}

/* Near-miss flash */
.tv-near-miss {
  filter: drop-shadow(0 0 18px rgba(255,214,92,0.8)) drop-shadow(0 18px 24px rgba(0,0,0,0.36));
}

/* Crash effect on player */
.tv-crash {
  filter: drop-shadow(0 0 32px rgba(255, 80, 80, 1)) brightness(2) !important;
  transition: filter 0.1s;
}

/* ===== PLAYER CAR â€” IMPROVED ===== */
.tp-player-body {
  inset: 8% 16% 10%;
  border-radius: 32% 32% 24% 24% / 18% 18% 28% 28%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06)),
    linear-gradient(180deg, #8f50ff 0%, #4b1b95 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -8px 18px rgba(0,0,0,0.28),
    0 0 32px rgba(122, 44, 255, 0.42);
}
.tp-player-glass {
  background: linear-gradient(180deg, rgba(227,245,255,0.98) 0%, rgba(100,130,180,0.6) 100%) !important;
}
.tp-player-stripe {
  background: rgba(200,180,255,0.38) !important;
}
.tp-headlight-beam {
  box-shadow: 0 0 28px rgba(255, 247, 181, 0.9), 0 0 60px rgba(255, 235, 130, 0.35) !important;
  background: rgba(255, 252, 220, 1) !important;
}

/* Exhaust puffs on player */
.tp-exhaust-left,
.tp-exhaust-right {
  position: absolute;
  bottom: 100%;
  width: 28%;
  height: 35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 150, 255, 0.35), transparent 70%);
  filter: blur(6px);
  animation: exhaustPuff 0.6s ease-out infinite;
}
.tp-exhaust-left  { left: 14%; }
.tp-exhaust-right { right: 14%; animation-delay: 0.3s; }

@keyframes exhaustPuff {
  0%   { transform: scaleY(0.5) scaleX(0.7); opacity: 0.6; }
  100% { transform: scaleY(1.8) scaleX(0.5) translateY(-12px); opacity: 0; }
}

/* ===== TRAFFIC NEAR-MISS BONUS POPUP ===== */
@keyframes tvBonusPopup {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); }
  20%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.1); }
  70%  { opacity: 1; transform: translateX(-50%) translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(0.9); }
}
/* ===== LEADERBOARD MEDALS ===== */
.game-leaderboard-row.top .game-rank {
  font-size: 1.1rem;
}

/* ===== BAY SOLVED FLASH ===== */
@keyframes bayFlashSolve {
  0%   { background: radial-gradient(circle at center, rgba(0,255,136,0.45), transparent 55%), linear-gradient(180deg, #1a3d2e 0%, #152e22 100%); }
  60%  { background: radial-gradient(circle at center, rgba(0,255,136,0.25), transparent 55%), linear-gradient(180deg, #152d28 0%, #12221d 100%); }
  100% { background: linear-gradient(180deg, #161d2d 0%, #101525 100%); }
}
.game-bay.solved {
  animation: bayFlashSolve 0.22s ease-out forwards;
}

/* ===== TRAFFIC ROAD AMBIENT GLOW ===== */
.traffic-arena::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(122, 44, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.05) 0%, transparent 45%);
  pointer-events: none;
}


/* ============================================================
   QUADRO DE AVISOS â€” ANNOUNCEMENTS
   ============================================================ */

.announcements-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.announcements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.announcements-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.announcements-kicker {
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.2rem;
}

.announcements-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  line-height: 1;
}

.announcement-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 214, 92, 0.18);
  border: 1px solid rgba(255, 214, 92, 0.3);
  color: var(--yellow);
  font-size: var(--font-size-xxs);
  font-weight: 700;
}

.announcement-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border-left: 3px solid transparent;
  position: relative;
  animation: announceFadeIn 0.3s ease both;
}

@keyframes announceFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.announcement-card.priority-info {
  background:
    radial-gradient(circle at top right, rgba(0, 207, 255, 0.08), transparent 40%),
    rgba(12, 16, 32, 0.9);
  border-left-color: var(--accent2);
  border: 1px solid rgba(0, 207, 255, 0.15);
  border-left: 3px solid var(--accent2);
}

.announcement-card.priority-warning {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 92, 0.1), transparent 40%),
    rgba(14, 13, 22, 0.9);
  border: 1px solid rgba(255, 214, 92, 0.18);
  border-left: 3px solid var(--yellow);
}

.announcement-card.priority-urgent {
  background:
    radial-gradient(circle at top right, rgba(255, 68, 85, 0.12), transparent 40%),
    rgba(18, 10, 14, 0.92);
  border: 1px solid rgba(255, 68, 85, 0.2);
  border-left: 3px solid var(--red);
  animation: announceFadeIn 0.3s ease both, urgentPulse 3s ease-in-out infinite 0.4s;
}

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 85, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(255, 68, 85, 0.1); }
}

.announcement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.announcement-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: var(--font-size-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-info    { background: rgba(0, 207, 255, 0.14); color: var(--accent2); border: 1px solid rgba(0, 207, 255, 0.22); }
.pill-warning { background: rgba(255, 214, 92, 0.14); color: var(--yellow); border: 1px solid rgba(255, 214, 92, 0.22); }
.pill-urgent  { background: rgba(255, 68, 85, 0.14);  color: var(--red);    border: 1px solid rgba(255, 68, 85, 0.22); }

.announcement-title-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.1;
  flex: 1;
}

.announcement-content {
  color: rgba(240, 240, 248, 0.82);
  line-height: 1.55;
  font-size: var(--font-size-sm);
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
}

.announcement-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.announcement-delete-btn:hover {
  color: var(--red);
  background: rgba(255, 68, 85, 0.1);
}

.announcements-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 1.25rem 0 0.5rem;
  font-size: var(--font-size-sm);
}

.announce-form-wrap {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(124, 48, 255, 0.06);
  border: 1px solid rgba(124, 48, 255, 0.2);
  margin-top: 0.5rem;
}

.announce-form-wrap.open {
  display: flex;
}

.announce-form-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.announce-priority-select {
  flex: 0 0 auto;
  min-width: 130px;
  background: rgba(12, 14, 28, 0.96);
  color: var(--text);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  cursor: pointer;
}

.announce-priority-select option {
  background: #0f1022;
}

.announce-form-actions {
  display: flex;
  gap: 0.65rem;
}

.btn-announce-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 214, 92, 0.1);
  border: 1px solid rgba(255, 214, 92, 0.25);
  border-radius: var(--radius-sm);
  color: var(--yellow);
  font-size: var(--font-size-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-announce-toggle:hover {
  background: rgba(255, 214, 92, 0.16);
  border-color: rgba(255, 214, 92, 0.4);
}

/* ============================================================
   PREMIUM GLOBAL POLISH
   ============================================================ */

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(124, 48, 255, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(124, 48, 255, 0.12) !important;
}

.home-mini-card strong,
.home-strip-item strong {
  background: linear-gradient(135deg, #fff 30%, rgba(175, 145, 255, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.punch-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 207, 255, 0.08), transparent 35%),
    radial-gradient(circle at 15% 80%, rgba(124, 48, 255, 0.18), transparent 38%),
    linear-gradient(160deg, #0c0e22 0%, #111430 100%);
  border-color: rgba(124, 48, 255, 0.22);
}

.home-head-badge {
  background: rgba(124, 48, 255, 0.16);
  border-color: rgba(124, 48, 255, 0.28);
  color: #d5baff;
}

.emp-avatar {
  background: linear-gradient(135deg, #7c30ff, #b060ff);
  box-shadow: 0 0 12px rgba(124, 48, 255, 0.3);
}

.punch-btn-danger:not(:disabled):hover {
  background: rgba(255, 68, 85, 0.12) !important;
  border-color: rgba(255, 68, 85, 0.35) !important;
  color: var(--red) !important;
}

.punch-timer-value.is-running {
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.35), 0 0 80px rgba(0, 255, 136, 0.12);
}

/* ===== LOGIN PAGE ===== */
.login-body {
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
}

.login-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 1.5rem 1rem;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.login-glow-a {
  width: 500px;
  height: 500px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(124, 48, 255, 0.38), transparent 70%);
}

.login-glow-b {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.22), transparent 70%);
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.login-logo {
  height: 3.2rem;
  width: auto;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.login-brand-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
}

.login-brand-name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}

.login-card {
  background:
    radial-gradient(circle at top left, rgba(124, 48, 255, 0.12), transparent 40%),
    linear-gradient(160deg, rgba(14, 16, 28, 0.97), rgba(9, 10, 18, 0.99));
  border: 1px solid rgba(124, 48, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.login-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.login-subtitle {
  color: var(--text-dim);
  font-size: var(--font-size-xs);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.login-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(240, 240, 245, 0.82);
  letter-spacing: 0.02em;
}

.login-input {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: var(--touch-target);
  width: 100%;
}

.login-input:focus {
  border-color: rgba(124, 48, 255, 0.65);
  background: rgba(124, 48, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 48, 255, 0.18);
}

.login-input::placeholder {
  color: rgba(122, 122, 154, 0.6);
}

.login-error {
  font-size: var(--font-size-xs);
  color: #ff8a8a;
  min-height: 1.25rem;
  text-align: center;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #6020ee 0%, #8b38ff 55%, #b050ff 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  min-height: var(--touch-target);
  box-shadow: 0 6px 24px rgba(124, 48, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  margin-top: 0.25rem;
}

.login-submit:hover {
  box-shadow: 0 10px 36px rgba(124, 48, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: scale(0.98);
  box-shadow: 0 4px 18px rgba(124, 48, 255, 0.4);
}

.login-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.login-submit-arrow {
  font-size: 1.1rem;
  transition: transform 0.18s ease;
}

.login-submit:hover .login-submit-arrow {
  transform: translateX(3px);
}

.login-hint {
  font-size: var(--font-size-xs);
  color: var(--text-dim);
  text-align: center;
}

/* ===== LOGOUT BUTTON ===== */
.btn-logout {
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-xs);
  font-family: var(--font-body);
  transition: var(--transition);
  min-height: var(--touch-target);
}

.btn-logout:hover {
  background: rgba(255, 68, 85, 0.12);
  border-color: rgba(255, 68, 85, 0.3);
  color: #ff8a8a;
}

.btn-logout:active {
  transform: scale(0.98);
}

/* ===== PONTO PAGE HERO ===== */
.punch-hero-card {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 207, 255, 0.1), transparent 35%),
    radial-gradient(circle at 10% 85%, rgba(124, 48, 255, 0.2), transparent 40%),
    linear-gradient(155deg, #0c0e22 0%, #111432 55%, #0b101e 100%);
  border-color: rgba(124, 48, 255, 0.28);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(124, 48, 255, 0.08) inset;
}

.punch-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.punch-hero-kicker {
  color: #00cfff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.punch-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.punch-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 52ch;
}

.punch-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== REPORTS PAGE HERO ===== */
.reports-hero-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 207, 255, 0.08), transparent 32%),
    radial-gradient(circle at 5% 90%, rgba(124, 48, 255, 0.14), transparent 35%),
    linear-gradient(155deg, #0d0f22 0%, #121432 55%, #0b111e 100%);
  border-color: rgba(0, 207, 255, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 207, 255, 0.05) inset;
}

.reports-hero-split {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reports-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reports-hero-kicker {
  color: #00cfff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.reports-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.reports-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 52ch;
}

@media (min-width: 769px) {
  .reports-hero-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .punch-hero-card {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .punch-hero-meta {
    align-self: end;
  }
}

/* ===== SEMANA PAGE HERO ===== */
.semana-hero-card {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 214, 92, 0.12), transparent 36%),
    radial-gradient(circle at 85% 80%, rgba(124, 48, 255, 0.16), transparent 38%),
    linear-gradient(155deg, #0f0e1a 0%, #141130 55%, #0b0d1c 100%);
  border-color: rgba(255, 214, 92, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 214, 92, 0.05) inset;
}

.semana-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.semana-hero-kicker {
  color: #ffd65c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.semana-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.semana-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 52ch;
}

.semana-hero-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== ADMIN PAGE HERO ===== */
.admin-hero-card {
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 68, 85, 0.1), transparent 34%),
    radial-gradient(circle at 10% 80%, rgba(124, 48, 255, 0.14), transparent 36%),
    linear-gradient(155deg, #160c0e 0%, #1a1028 55%, #0d0b18 100%);
  border-color: rgba(255, 68, 85, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 68, 85, 0.05) inset;
}

.admin-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-hero-kicker {
  color: #ff8a8a;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.admin-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.admin-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 52ch;
}

.admin-panel-head {
  margin-bottom: 1.25rem;
}

.admin-section-kicker {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.3rem;
}

/* ===== PREÃ‡OS PAGE HERO ===== */
.precos-hero-card {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 10% 25%, rgba(0, 255, 136, 0.1), transparent 36%),
    radial-gradient(circle at 88% 75%, rgba(124, 48, 255, 0.14), transparent 36%),
    linear-gradient(155deg, #0a1410 0%, #0f1428 55%, #0b0e1c 100%);
  border-color: rgba(0, 255, 136, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 255, 136, 0.04) inset;
}

.precos-hero-split {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.precos-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.precos-hero-kicker {
  color: #00ff88;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.precos-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.precos-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 52ch;
}

.precos-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===== PONTOS MECÃ‚NICOS HERO ===== */
.mecanicos-hero-card {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 207, 255, 0.12), transparent 34%),
    radial-gradient(circle at 8% 85%, rgba(124, 48, 255, 0.16), transparent 36%),
    linear-gradient(155deg, #0a1018 0%, #101428 55%, #0b0e1e 100%);
  border-color: rgba(0, 207, 255, 0.2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 207, 255, 0.05) inset;
}

.mecanicos-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mecanicos-hero-kicker {
  color: #00cfff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.mecanicos-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.mecanicos-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 52ch;
}

.mecanicos-hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.mecanicos-status-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mecanicos-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mecanicos-dot-green { background: #00ff88; box-shadow: 0 0 8px rgba(0, 255, 136, 0.5); }
.mecanicos-dot-yellow { background: #ffd65c; box-shadow: 0 0 8px rgba(255, 214, 92, 0.5); }
.mecanicos-dot-grey { background: rgba(255, 255, 255, 0.35); }

/* ===== CARGOS (RANK) HERO ===== */
.rank-hero-card {
  display: grid;
  gap: 1.25rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 107, 157, 0.1), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(124, 48, 255, 0.16), transparent 36%),
    linear-gradient(155deg, #150d12 0%, #141030 55%, #0c0d1e 100%);
  border-color: rgba(255, 107, 157, 0.18);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 107, 157, 0.05) inset;
}

.rank-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rank-hero-kicker {
  color: #ff8eb8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.rank-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.92;
  color: var(--text);
}

.rank-hero-desc {
  color: rgba(240, 240, 245, 0.72);
  max-width: 54ch;
}

.rank-hero-stat {
  align-self: start;
}

/* ===== PARCERIAS: kicker prÃ³prio ===== */
.partners-hero-kicker {
  color: #ffd65c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.55rem;
}

/* ===== DESKTOP RESPONSIVE FOR NEW HEROES ===== */
@media (min-width: 769px) {
  .semana-hero-card,
  .mecanicos-hero-card {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .admin-hero-card,
  .rank-hero-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .precos-hero-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .precos-hero-badges {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}

/* ===================================================
   SIDEBAR â€” Redesign completo do topbar
   =================================================== */

:root {
  --sb-w: 256px;
}

.topbar {
  position: fixed !important;
  left: 0; top: 0; bottom: 0;
  width: var(--sb-w) !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 1.4rem 0.85rem 1.1rem !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  gap: 0 !important;
  overflow-y: auto; overflow-x: hidden;
  background: rgba(5, 6, 12, 0.72) !important;
  border: none !important;
  border-right: 1px solid rgba(124, 48, 255, 0.18) !important;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  z-index: 200;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 48, 255, 0.18) transparent;
}

.topbar .logo-area {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0.65rem;
  padding: 0 0.25rem 1.1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.topbar .logo { height: 2.2rem !important; width: auto; flex-shrink: 0; }

.topbar .logo-area h1 { display: none !important; }

.topbar .nav-buttons {
  flex-direction: column !important;
  gap: 0.2rem !important;
  width: 100% !important;
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  order: unset !important;
  align-items: stretch !important;
}

.topbar .nav-btn {
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 10px !important;
  font-size: 0.795rem !important;
  min-height: 2.45rem !important;
  width: 100%;
  white-space: nowrap;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(240, 240, 245, 0.7) !important;
}

.topbar .nav-btn:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

.topbar .nav-btn.active {
  background: linear-gradient(90deg, rgba(124, 48, 255, 0.32) 0%, rgba(124, 48, 255, 0.08) 100%) !important;
  border-left: 2px solid #9048ff !important;
  color: #fff !important;
  box-shadow: none !important;
  padding-left: calc(0.85rem - 2px) !important;
}

.topbar .nav-overflow { display: block !important; position: static !important; }
.topbar .nav-overflow-trigger { display: none !important; }

.topbar .nav-overflow-menu {
  display: flex !important;
  flex-direction: column !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  gap: 0.2rem !important;
}

.topbar .nav-hub-section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.55rem;
  margin-top: 0.35rem;
}

.topbar .nav-hub-heading {
  display: block;
  color: rgba(240, 240, 245, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.61rem;
  padding: 0 0.85rem 0.2rem;
}

.topbar .nav-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  grid-template-columns: unset !important;
}

.topbar .nav-hub-card {
  display: flex !important;
  align-items: center;
  min-height: 2.45rem !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
  color: rgba(240, 240, 245, 0.7) !important;
  text-decoration: none;
  font-size: 0.795rem;
  font-weight: 600;
}

.topbar .nav-hub-card::before {
  font-size: 0.9rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.topbar .nav-hub-card strong {
  font-family: var(--font-body) !important;
  font-size: 0.795rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.topbar .nav-hub-card small { display: none !important; }

.topbar .nav-hub-card:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.topbar .nav-hub-card.active {
  background: linear-gradient(90deg, rgba(124, 48, 255, 0.32) 0%, rgba(124, 48, 255, 0.08) 100%) !important;
  border-left: 2px solid #9048ff !important;
  color: #fff !important;
  padding-left: calc(0.85rem - 2px) !important;
}

.topbar .user-section {
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  margin-top: auto;
  margin-left: 0 !important;
  padding: 0.85rem 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  gap: 0.35rem !important;
  order: unset !important;
  flex-shrink: 0;
}

.topbar .user-section #userInfo {
  text-align: left !important;
  padding: 0.55rem 0.85rem !important;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 0.78rem !important;
  width: 100% !important;
  color: rgba(240, 240, 245, 0.75) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .user-section .btn-logout {
  width: 100% !important;
  text-align: left;
  justify-content: flex-start;
  padding: 0.6rem 0.85rem !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  min-height: 2.35rem !important;
  background: transparent !important;
  border: none !important;
}

.topbar::-webkit-scrollbar { width: 4px; }
.topbar::-webkit-scrollbar-track { background: transparent; }
.topbar::-webkit-scrollbar-thumb { background: rgba(124, 48, 255, 0.22); border-radius: 4px; }

.event-reminder { margin-top: 0 !important; margin-bottom: 1rem !important; }

body:not(.login-body):not(.public-page) {
  padding-left: calc(var(--sb-w) + 1.25rem) !important;
  padding-top: 1.25rem !important;
  padding-right: 1.25rem !important;
  padding-bottom: 1.5rem;
}

/* MOBILE */
.sb-mobile-bar { display: none; }

.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 199;
  backdrop-filter: blur(3px);
}

.sb-overlay.sb-overlay-visible {
  display: block;
  animation: fadeIn 0.18s ease;
}

@media (max-width: 768px) {
  :root { --sb-w: 272px; }

  .topbar {
    transform: translateX(-100%) !important;
    box-shadow: none !important;
  }

  .topbar.sb-open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 48px rgba(0, 0, 0, 0.65) !important;
  }

  .sb-mobile-bar {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3.2rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background: rgba(5, 6, 12, 0.68);
    border-bottom: 1px solid rgba(124, 48, 255, 0.18);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    z-index: 150;
  }

  .sb-mob-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
  }

  .sb-mob-logo { height: 1.75rem; width: auto; }

  .sb-mob-btn {
    display: flex;
    flex-direction: column;
    gap: 4.5px;
    justify-content: center;
    align-items: center;
    width: 2.35rem;
    height: 2.35rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .sb-mob-btn span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
  }

  body:not(.login-body):not(.public-page) {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: calc(3.2rem + 1rem) !important;
  }
}

/* ===================================================
   HOMEPAGE â€” Hero animado + Bento grid
   =================================================== */

@keyframes heroGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes stripePulse {
  0%, 100% { opacity: 0.35; transform: translateX(-100%); }
  50%       { opacity: 0.7; transform: translateX(200%); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.hp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 5% 10%, rgba(124, 48, 255, 0.28), transparent 50%),
    radial-gradient(ellipse 60% 80% at 95% 90%, rgba(0, 207, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 255, 136, 0.05), transparent 60%),
    linear-gradient(135deg, #080a1a 0%, #0e0d28 50%, #080f1a 100%);
  background-size: 300% 300%;
  animation: heroGlow 12s ease-in-out infinite;
  will-change: background-position;
  border-color: rgba(124, 48, 255, 0.25) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  padding: 2rem 1.75rem !important;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hp-hero-stripe {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  pointer-events: none;
  overflow: hidden;
}

.hp-hero-stripe::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(124, 48, 255, 0.18), transparent);
  animation: stripePulse 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.hp-hero-stripe::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.1), transparent);
  animation: stripePulse 9s ease-in-out infinite reverse;
  animation-delay: 3s;
  will-change: transform, opacity;
}

.hp-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hp-hero-eyebrow {
  color: #ff9ec6;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--font-size-xxs);
  margin-bottom: 0.4rem;
  animation: fadeSlideUp 0.6s ease both;
}

.hp-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
  margin-bottom: 0.6rem;
  color: #fff;
  letter-spacing: 0.01em;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.08s;
}

.hp-hero-sub {
  color: rgba(240, 240, 245, 0.68);
  max-width: 56ch;
  animation: fadeSlideUp 0.7s ease both;
  animation-delay: 0.16s;
}

.hp-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.28s;
}

.hp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.hp-stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  color: #fff;
  display: block;
}

.hp-stat-value.is-animating {
  animation: countPulse 0.3s ease;
}

.hp-stat span {
  color: rgba(240, 240, 245, 0.55);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Bento grid */
.hp-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hp-bento-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease forwards;
}

.hp-bento-card:nth-child(1) { animation-delay: 0.1s; }
.hp-bento-card:nth-child(2) { animation-delay: 0.16s; }
.hp-bento-card:nth-child(3) { animation-delay: 0.22s; }
.hp-bento-card:nth-child(4) { animation-delay: 0.28s; }
.hp-bento-card:nth-child(5) { animation-delay: 0.34s; }
.hp-bento-card:nth-child(6) { animation-delay: 0.4s; }
.hp-bento-card:nth-child(7) { animation-delay: 0.46s; }

.hp-today-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 214, 92, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 214, 92, 0.15);
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hp-today-date-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

.hp-today-kicker {
  color: #ffd65c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xxs);
}

.hp-today-date {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  color: #fff;
}

.hp-today-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.hp-today-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hp-today-item span {
  color: rgba(240, 240, 245, 0.5);
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hp-today-item strong {
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
}

/* Action tiles */
.hp-action-tile {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.hp-action-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 48, 255, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(124, 48, 255, 0.1);
  background: rgba(124, 48, 255, 0.08);
}

.hp-tile-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hp-action-tile strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
}

.hp-action-tile small {
  color: rgba(240, 240, 245, 0.55);
  font-size: var(--font-size-xxs);
}

.hp-tile-arrow {
  margin-top: auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, color 0.2s ease;
  align-self: flex-end;
}

.hp-action-tile:hover .hp-tile-arrow {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.7);
}

/* Primary tile accent */
.hp-tile-primary {
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 48, 255, 0.3), transparent 50%),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 48, 255, 0.28);
}

.hp-tile-primary:hover {
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 48, 255, 0.4), transparent 50%),
    rgba(124, 48, 255, 0.1);
}

/* Announcements on homepage */
.hp-announcements {
  animation: fadeSlideUp 0.65s ease both;
  animation-delay: 0.55s;
}

@media (min-width: 600px) {
  .hp-stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  .hp-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 2.5rem 2.5rem !important;
  }

  .hp-hero-main {
    flex: 1;
    max-width: 600px;
  }

  .hp-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
    flex-shrink: 0;
    align-self: center;
  }

  .hp-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-today-card {
    grid-column: span 3;
  }
}

@media (min-width: 1100px) {
  .hp-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hp-today-card { grid-column: span 4; }
  .hp-hero { flex-direction: row; }
  .hp-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hp-stat-value {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
}

.hp-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) { .hp-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== HP HERO: stats em linha completa por baixo do copy ===== */
@media (min-width: 769px) {
  .hp-hero {
    flex-direction: column !important;
    gap: 1.75rem !important;
  }
  .hp-hero-main {
    flex: unset !important;
    max-width: none !important;
  }
  .hp-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: none !important;
    width: 100% !important;
    align-self: unset !important;
    flex-shrink: unset !important;
  }
}

/* ===== MEDALHAS XP ===== */

.medal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.medal-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.medal-icon {
  position: relative;
  z-index: 2;
  line-height: 1;
  display: block;
}

/* Tamanhos */
.medal-sm  { width: 36px;  height: 36px;  font-size: 1rem; }
.medal-md  { width: 48px;  height: 48px;  font-size: 1.35rem; }
.medal-lg  { width: 64px;  height: 64px;  font-size: 1.8rem; }
.medal-xl  { width: 80px;  height: 80px;  font-size: 2.2rem; }

/* Tier: Recruta */
.medal-recruta {
  background: linear-gradient(135deg, #1f2435, #374151, #4b5563);
  box-shadow:
    0 0 0 2px rgba(107, 114, 128, 0.4),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Tier: Bronze */
.medal-bronze {
  background: linear-gradient(135deg, #431407, #92400e, #cd7f32, #b45309);
  box-shadow:
    0 0 0 2px rgba(205, 127, 50, 0.5),
    0 0 14px rgba(180, 83, 9, 0.45),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Tier: Prata */
.medal-prata {
  background: linear-gradient(135deg, #334155, #64748b, #cbd5e1, #94a3b8);
  box-shadow:
    0 0 0 2px rgba(203, 213, 225, 0.5),
    0 0 14px rgba(148, 163, 184, 0.4),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Tier: Ouro */
.medal-ouro {
  background: linear-gradient(135deg, #713f12, #ca8a04, #ffd700, #facc15);
  box-shadow:
    0 0 0 2px rgba(255, 215, 0, 0.55),
    0 0 18px rgba(250, 204, 21, 0.5),
    0 0 36px rgba(202, 138, 4, 0.25),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Tier: Platina */
.medal-platina {
  background: linear-gradient(135deg, #0c4a6e, #0284c7, #00cfff, #38bdf8);
  box-shadow:
    0 0 0 2px rgba(0, 207, 255, 0.55),
    0 0 18px rgba(0, 207, 255, 0.5),
    0 0 36px rgba(2, 132, 199, 0.3),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Tier: Lenda */
.medal-lenda {
  background: linear-gradient(135deg, #2e1065, #7c30ff, #a855f7, #00cfff);
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.6),
    0 0 20px rgba(124, 48, 255, 0.65),
    0 0 45px rgba(124, 48, 255, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.5);
  animation: medal-lenda-pulse 2.4s ease-in-out infinite;
}

@keyframes medal-lenda-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}

/* Cores de texto por medalha */
.medal-text-recruta { color: #9ca3af; }
.medal-text-bronze  { color: #d97706; }
.medal-text-prata   { color: #cbd5e1; }
.medal-text-ouro    { color: #ffd700; }
.medal-text-platina { color: #00cfff; }
.medal-text-lenda   { color: #a855f7; }

/* Badge inline compacto (para cargos.js) */
.medal-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== RANKING PAGE ===== */

.section-title-sm {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

/* Tiers row */
.medal-tiers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.medal-tier-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  flex: 1 1 140px;
  min-width: 130px;
  max-width: 200px;
  transition: border-color var(--transition);
}

.medal-tier-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.medal-tier-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.medal-tier-name {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.medal-tier-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Podium */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 0;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 160px;
}

.podium-avatar {
  display: flex;
  justify-content: center;
}

.podium-name {
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text);
  word-break: break-word;
}

.podium-hours {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
}

.podium-medal-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.podium-block {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.podium-block-first {
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.06));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: none;
}

.podium-block-second {
  height: 52px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.15), rgba(203, 213, 225, 0.04));
  border: 1px solid rgba(203, 213, 225, 0.25);
  border-bottom: none;
}

.podium-block-third {
  height: 38px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.04));
  border: 1px solid rgba(205, 127, 50, 0.25);
  border-bottom: none;
}

.podium-rank-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* Ranking list */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.ranking-row.rank-first  { border-color: rgba(255, 215, 0, 0.28); }
.ranking-row.rank-second { border-color: rgba(203, 213, 225, 0.22); }
.ranking-row.rank-third  { border-color: rgba(205, 127, 50, 0.22); }

.ranking-pos {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
}

.ranking-num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dim);
}

.rank-first  .ranking-num { color: #ffd700; }
.rank-second .ranking-num { color: #cbd5e1; }
.rank-third  .ranking-num { color: #cd7f32; }

.ranking-medal-col {
  flex-shrink: 0;
}

.ranking-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ranking-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-role {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2px;
}

.ranking-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  min-width: 40px;
  max-width: 140px;
}

.ranking-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.medal-fill-recruta { background: #6b7280; }
.medal-fill-bronze  { background: linear-gradient(90deg, #92400e, #cd7f32); }
.medal-fill-prata   { background: linear-gradient(90deg, #64748b, #cbd5e1); }
.medal-fill-ouro    { background: linear-gradient(90deg, #ca8a04, #ffd700); }
.medal-fill-platina { background: linear-gradient(90deg, #0284c7, #00cfff); }
.medal-fill-lenda   { background: linear-gradient(90deg, #7c30ff, #a855f7, #00cfff); }

.ranking-progress-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.ranking-hours-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 1px;
}

.ranking-hours-val {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.ranking-hours-lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Medal badge inline no cargos */
.rank-member-medal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== RANKING RESPONSIVE ===== */
@media (min-width: 640px) {
  .medal-tiers-row {
    flex-wrap: nowrap;
  }
  .medal-tier-card {
    flex: 1;
    max-width: none;
  }
  .podium-place {
    max-width: 200px;
  }
  .ranking-progress-bar {
    max-width: 200px;
  }
}

/* =========================================================
   HOME PAGE v2  (hp2-*)
   ========================================================= */

/* Force full-width in the flex main context */
.hp2-header,
.hp2-snapshot,
.hp2-body {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

/* Page header â€” typographic, no card background */
.hp2-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  animation: fadeSlideUp 0.45s ease both;
}

.hp2-header-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hp2-date-weekday {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hp2-date-full {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

.hp2-header-user {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
}

.hp2-header-user > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.hp2-greeting {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
}

.hp2-role-badge {
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  border: 1px solid rgba(124, 48, 255, 0.3);
  border-radius: 4px;
  padding: 0.2em 0.55em;
}

/* Stats strip */
.hp2-snapshot {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.08s;
}

.hp2-snapshot-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 0.75rem;
  text-align: center;
  min-width: 0;
}

.hp2-snapshot-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  align-self: stretch;
}

.hp2-snapshot-value {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  color: #fff;
  line-height: 1;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hp2-lead-value {
  color: var(--accent2);
}

.hp2-snapshot-label {
  font-size: var(--font-size-xxs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Two-column body wrapper */
.hp2-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.12s;
}

@media (min-width: 769px) {
  .hp2-body {
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
  }

  /* Snapshot taller on desktop */
  .hp2-snapshot-item {
    padding: 1.4rem 1.25rem;
  }

  /* Action cards: vertical on desktop */
  .hp2-action-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.3rem 1.2rem;
    gap: 0.85rem;
    min-height: 130px;
    justify-content: space-between;
  }

  .hp2-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.6rem;
  }

  .hp2-action-text strong {
    font-size: 1.15rem;
    white-space: normal;
  }

  .hp2-action-text small {
    white-space: normal;
    margin-top: 0.1rem;
  }

  .hp2-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

/* Section label with trailing rule */
.hp2-section-label {
  font-size: var(--font-size-xxs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp2-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Quick actions section */
.hp2-actions {}

.hp2-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (min-width: 560px) {
  .hp2-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual action card */
.hp2-action-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hp2-action-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hp2-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hp2-action-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hp2-action-text strong {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp2-action-text small {
  color: var(--text-dim);
  font-size: var(--font-size-xxs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Color accents per card */
.hp2-card-purple .hp2-action-icon { background: rgba(124, 48, 255, 0.2); }
.hp2-card-purple:hover { border-color: rgba(124, 48, 255, 0.4); }

.hp2-card-cyan .hp2-action-icon { background: rgba(0, 207, 255, 0.15); }
.hp2-card-cyan:hover { border-color: rgba(0, 207, 255, 0.35); }

.hp2-card-green .hp2-action-icon { background: rgba(0, 255, 136, 0.13); }
.hp2-card-green:hover { border-color: rgba(0, 255, 136, 0.3); }

.hp2-card-yellow .hp2-action-icon { background: rgba(255, 214, 92, 0.15); }
.hp2-card-yellow:hover { border-color: rgba(255, 214, 92, 0.3); }

.hp2-card-pink .hp2-action-icon { background: rgba(255, 158, 198, 0.13); }
.hp2-card-pink:hover { border-color: rgba(255, 158, 198, 0.3); }

.hp2-card-orange .hp2-action-icon { background: rgba(255, 140, 60, 0.15); }
.hp2-card-orange:hover { border-color: rgba(255, 140, 60, 0.3); }

/* Announcements */
.hp2-announcements {}

.hp2-announce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.hp2-announce-header .hp2-section-label::after {
  display: none;
}

.hp2-announce-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(124, 48, 255, 0.3);
  color: var(--accent-light);
  font-size: var(--font-size-xxs);
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 0.4rem;
}

.hp2-announce-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hp2-announce-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.hp2-ann-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.hp2-ann-dot-info    { background: var(--accent2); box-shadow: 0 0 6px rgba(0, 207, 255, 0.5); }
.hp2-ann-dot-warning { background: #ffd65c; box-shadow: 0 0 6px rgba(255, 214, 92, 0.5); }
.hp2-ann-dot-urgent  { background: #ff4455; box-shadow: 0 0 6px rgba(255, 68, 85, 0.5); }

.hp2-ann-body {
  flex: 1;
  min-width: 0;
}

.hp2-ann-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.hp2-ann-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

/* Priority border accents */
.hp2-ann-info    { border-left: 2px solid rgba(0, 207, 255, 0.4); }
.hp2-ann-warning { border-left: 2px solid rgba(255, 214, 92, 0.4); }
.hp2-ann-urgent  { border-left: 2px solid rgba(255, 68, 85, 0.4); }

/* =========================================================
   HERO SECTION  (hp2-hero-*)
   ========================================================= */

.hp2-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 13, 0.18);
  border: 1px solid rgba(124, 48, 255, 0.14);
  animation: fadeSlideUp 0.4s ease both;
}

/* Dark vignette overlay so text is always legible */
.hp2-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(4, 5, 13, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Orbs handled by global BackgroundCanvas â€” no local orbs needed */
.hp2-hero-orb { display: none; }

/* Subtle grid overlay for a tech/HUD feel */
.hp2-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 48, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 48, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* CRT scanlines for atmosphere */
.hp2-hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 6px
  );
  pointer-events: none;
}

/* Horizontal light streak that sweeps across */
.hp2-hero-streak {
  position: absolute;
  top: 50%;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 48, 255, 0.6), rgba(0, 207, 255, 0.8), transparent);
  filter: blur(1px);
  animation: heroStreak 6s ease-in-out infinite;
  pointer-events: none;
}

/* Content */
.hp2-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hp2-hero-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(0, 207, 255, 0.7);
  margin: 0;
  animation: fadeSlideUp 0.55s ease both;
  animation-delay: 0.1s;
}

.hp2-hero-clock {
  font-family: var(--font-head);
  font-size: clamp(3.8rem, 11vw, 8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
  text-shadow:
    0 0 30px rgba(124, 48, 255, 0.9),
    0 0 70px rgba(124, 48, 255, 0.5),
    0 0 120px rgba(0, 207, 255, 0.2);
  animation: fadeSlideUp 0.5s ease both, clockPulse 3s ease-in-out infinite alternate;
  animation-delay: 0.05s, 0.6s;
}

.hp2-hero-brand {
  font-family: var(--font-head);
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0.15rem 0 0;
  font-weight: 600;
  animation: fadeSlideUp 0.6s ease both;
  animation-delay: 0.18s;
}

.hp2-hero-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(0.65rem, 1.4vw, 0.78rem);
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.3em 0.9em;
  margin-top: 0.5rem;
  text-transform: capitalize;
  letter-spacing: 0.06em;
  animation: fadeSlideUp 0.65s ease both;
  animation-delay: 0.25s;
}

/* Bottom fade so hero bleeds into the snapshot strip */
.hp2-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

/* â”€â”€ Hero keyframes â”€â”€ */
@keyframes heroOrb1 {
  0%,  100% { transform: translate(0,    0)    scale(1);    }
  30%        { transform: translate(90px, 50px) scale(1.12); }
  70%        { transform: translate(-50px, 70px) scale(0.92); }
}
@keyframes heroOrb2 {
  0%,  100% { transform: translate(0,     0)    scale(1);    }
  45%        { transform: translate(-120px, 40px) scale(1.18); }
}
@keyframes heroOrb3 {
  0%,  100% { transform: translate(0,    0)    scale(1);    }
  35%        { transform: translate(70px, -50px) scale(0.88); }
  75%        { transform: translate(-40px, 25px) scale(1.1); }
}
@keyframes heroStreak {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 110%;  opacity: 0.6; }
  100% { left: 110%;  opacity: 0; }
}
@keyframes clockPulse {
  from { text-shadow: 0 0 30px rgba(124, 48, 255, 0.9), 0 0 70px rgba(124, 48, 255, 0.5), 0 0 120px rgba(0, 207, 255, 0.2); }
  to   { text-shadow: 0 0 40px rgba(0, 207, 255, 0.9), 0 0 90px rgba(124, 48, 255, 0.6), 0 0 160px rgba(0, 207, 255, 0.3); }
}

/* Responsive */
@media (max-width: 480px) {
  .hp2-hero { min-height: 220px; }
  .hp2-hero-orb1 { width: 280px; height: 280px; filter: blur(60px); }
  .hp2-hero-orb2 { width: 200px; height: 200px; filter: blur(50px); }
  .hp2-hero-orb3 { display: none; }
}

/* =========================================================
   PREÃ‡OS â€” Calculadora de Obra  (prc-*)
   ========================================================= */

.prc-page {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 6rem; /* espaÃ§o para a barra de total */
}

/* â”€â”€ CabeÃ§alho â”€â”€ */
.prc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.prc-heading {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem;
  line-height: 1.1;
}

.prc-sub {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin: 0;
}

/* â”€â”€ Toggle Parceria â”€â”€ */
.prc-toggle-wrap {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
}

.prc-toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.prc-toggle-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(124, 48, 255, 0.45);
  font-weight: 600;
}

/* â”€â”€ Filtros â”€â”€ */
.prc-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prc-search {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

.prc-search:focus { border-color: rgba(124,48,255,0.5); }
.prc-search::placeholder { color: var(--text-dim); }

.prc-category-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.prc-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.prc-pill:hover { border-color: rgba(124,48,255,0.4); color: var(--text); }

.prc-pill.active {
  background: rgba(124,48,255,0.2);
  border-color: rgba(124,48,255,0.5);
  color: var(--accent-light);
  font-weight: 600;
}

/* â”€â”€ Lista de selecionados â”€â”€ */
.prc-selected-list {
  background: rgba(124,48,255,0.08);
  border: 1px solid rgba(124,48,255,0.22);
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  animation: fadeSlideUp 0.3s ease both;
}

.prc-selected-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.prc-selected-row:last-child { border-bottom: none; }

.prc-sel-icon { font-size: 1rem; text-align: center; }

.prc-sel-name {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prc-sel-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.prc-qbtn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.prc-qbtn:active { background: rgba(124,48,255,0.3); }

.prc-qnum {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.prc-sel-price {
  font-weight: 700;
  color: var(--accent-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* â”€â”€ Label de grupo â”€â”€ */
.prc-group-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160,85,255,0.8);
  margin: 0 0 0.6rem;
  padding-left: 0.1rem;
}

/* â”€â”€ Grelha de cards â”€â”€ */
.prc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

/* â”€â”€ Card â”€â”€ */
.prc-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 0.85rem 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.prc-card:active { transform: scale(0.97); }

.prc-card:hover {
  border-color: rgba(124,48,255,0.35);
  background: rgba(124,48,255,0.07);
}

.prc-card--active {
  background: rgba(124,48,255,0.14);
  border-color: rgba(124,48,255,0.55);
  box-shadow: 0 0 18px rgba(124,48,255,0.2), inset 0 0 0 1px rgba(124,48,255,0.2);
}

.prc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.prc-card-icon { font-size: 1.5rem; line-height: 1; }

.prc-card-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(124,48,255,0.5);
}

.prc-card-name {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}

.prc-card-price {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.1rem;
}

.prc-card--active .prc-card-price { color: var(--accent-light); }

.prc-card-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* Controlos +/âˆ’ dentro do card */
.prc-card-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.prc-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.prc-ctrl-minus { color: var(--red); border-color: rgba(255,68,85,0.3); }
.prc-ctrl-minus:active { background: rgba(255,68,85,0.2); }
.prc-ctrl-plus  { color: var(--accent-light); border-color: rgba(124,48,255,0.4); }
.prc-ctrl-plus:active  { background: rgba(124,48,255,0.25); }

.prc-ctrl-qty {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

/* BotÃ£o de copiar preÃ§o individual */
.prc-copy-price {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 2px;
}

.prc-card:hover .prc-copy-price { opacity: 0.6; }
.prc-copy-price:hover { opacity: 1 !important; }

/* Vazio */
.prc-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* â”€â”€ Barra de total fixa no fundo â”€â”€ */
.prc-total-bar {
  position: fixed;
  bottom: 1rem;
  left: calc(var(--sb-w, 0px) + 1rem);
  right: 1rem;
  z-index: 300;
  background: rgba(12, 10, 28, 0.88);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(124,48,255,0.35);
  border-radius: 18px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,48,255,0.15);
  animation: barSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes barSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.prc-total-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.prc-total-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prc-total-amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(124,48,255,0.6);
}

.prc-total-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.prc-bar-btn {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.prc-bar-copy {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px rgba(124,48,255,0.45);
}
.prc-bar-copy:active { transform: scale(0.96); }

.prc-bar-clear {
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.prc-bar-clear:active { background: rgba(255,68,85,0.15); color: var(--red); }

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 600px) {
  .prc-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .prc-card { padding: 0.85rem 0.7rem 0.75rem; border-radius: 14px; }
  .prc-card-price { font-size: 0.95rem; }
  .prc-total-bar { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.75rem 0.9rem; }
  .prc-total-amount { font-size: 1.25rem; }
  .prc-bar-btn { padding: 0.55rem 0.75rem; font-size: 0.78rem; }
  .prc-toggle-btn { padding: 0.45rem 0.7rem; font-size: 0.75rem; }
}

@media (min-width: 900px) {
  .prc-total-bar { left: calc(var(--sb-w, 220px) + 1.5rem); right: 1.5rem; }
  .prc-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* â”€â”€ Header com card visÃ­vel â”€â”€ */
.prc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
}

.prc-header-left { display: flex; flex-direction: column; gap: 0.2rem; }

.prc-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0;
}

.prc-heading {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.prc-sub {
  font-size: var(--font-size-sm);
  color: var(--text-dim);
  margin: 0;
}

/* â”€â”€ Filtros com card â”€â”€ */
.prc-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
}

/* â”€â”€ Layout: catÃ¡logo usa tudo menos a largura do painel â”€â”€ */
.prc-layout {
  display: block; /* painel Ã© fixed, catÃ¡logo fica com a largura total */
}

.prc-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* â”€â”€ Painel fixo no lado direito â”€â”€ */
.prc-panel {
  display: none; /* hidden mobile */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  padding: 1rem 1rem 1rem 0;
  overflow-y: auto;
  z-index: 150;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,48,255,0.2) transparent;
}

.prc-panel-inner {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.prc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prc-panel-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
}

.prc-panel-clear {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.prc-panel-clear:hover { color: var(--red); background: rgba(255,68,85,0.1); }

.prc-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}
.prc-panel-empty-icon { font-size: 2rem; opacity: 0.4; }

.prc-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,48,255,0.2) transparent;
}

.prc-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.prc-panel-row:last-child { border-bottom: none; }

.prc-panel-row-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.prc-panel-row-icon { font-size: 1rem; flex-shrink: 0; }

.prc-panel-row-name {
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prc-panel-row-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.prc-panel-row-price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-light);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

.prc-panel-total {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prc-panel-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.prc-panel-total-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prc-panel-total-amount {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(124,48,255,0.5);
}

.prc-panel-copy-btn {
  width: 100%;
  padding: 0.65rem;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 14px rgba(124,48,255,0.4);
}
.prc-panel-copy-btn:active { transform: scale(0.97); }

/* â”€â”€ Desktop: painel fixo Ã  direita â”€â”€ */
@media (min-width: 768px) {
  .prc-panel { display: flex; flex-direction: column; }
  .prc-panel-inner { flex: 1; }
  .prc-total-bar { display: none !important; }
  .prc-page { padding-bottom: 0; padding-right: 316px; }
  .prc-panel-list { flex: 1; overflow-y: auto; max-height: none; }
}

/* â”€â”€ Mobile â”€â”€ */
@media (max-width: 767px) {
  .prc-header { padding: 1rem; flex-direction: column; align-items: flex-start; }
}

/* â”€â”€ Bottom Sheet (mobile) â”€â”€ */
.prc-sheet {
  display: none; /* sÃ³ mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: rgba(10, 9, 22, 0.97);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid rgba(124, 48, 255, 0.35);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  animation: barSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.prc-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 399;
  animation: fadeIn 0.2s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.prc-sheet-handle-area {
  padding: 0.6rem 1.1rem 0.75rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.prc-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 0.65rem;
}

.prc-sheet-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prc-sheet-arrow {
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.prc-sheet-body {
  padding: 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 55vh;
}

.prc-sheet-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,48,255,0.2) transparent;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.5rem;
}

.prc-sheet-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* Mostrar sÃ³ em mobile */
@media (max-width: 767px) {
  .prc-sheet { display: block; }
  .prc-sheet--open .prc-sheet-handle { background: rgba(124, 48, 255, 0.5); }
  .prc-sheet-overlay { display: block; }
  .prc-page { padding-bottom: 5rem; } /* espaÃ§o para o sheet */
}

