:root {
  --bg: #050814;
  --panel: rgba(10, 13, 32, 0.82);
  --panel-soft: rgba(17, 22, 50, 0.72);
  --line: rgba(148, 122, 255, 0.26);
  --text: #f7f7ff;
  --muted: #aeb0cd;
  --cyan: #14d8ff;
  --blue: #285cff;
  --indigo: #3224c8;
  --yellow: #d9aa36;
  --gold: #d9aa36;
  --magenta: #ff35d4;
  --violet: #9b43ff;
  --violet-deep: #35188f;
  --plum: #1a0c35;
  --wine: #4d0a2f;
  --wine-bright: #9e1b67;
  --royal-purple: #4b34d8;
  --deep-magenta: #c0268d;
  --green: #6cff5f;
  --red: #ff5f67;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(28, 71, 168, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(71, 43, 160, 0.18), transparent 32rem),
    linear-gradient(135deg, #02050e 0%, #060a18 46%, #03030b 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 30px 18px 20px;
  background:
    linear-gradient(180deg, rgba(8, 15, 39, 0.96), rgba(4, 6, 18, 0.98)),
    radial-gradient(circle at 50% 20%, rgba(36, 115, 255, 0.25), transparent 15rem);
  border-right: 1px solid rgba(56, 104, 255, 0.24);
  box-shadow: 18px 0 52px rgba(4, 7, 20, 0.58);
  z-index: 10;
}

.brand {
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.brand-mark {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 52px;
  font-weight: 800;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: 0;
  background: linear-gradient(110deg, #fff 0%, #9cecff 30%, #ff35d4 62%, #d9aa36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(155, 67, 255, 0.5));
}

.brand-kicker {
  color: #c9c7df;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-name {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: grid;
  gap: 10px;
}

.nav-link {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 72px;
  padding: 11px 8px;
  color: #d7d8ef;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(217, 170, 54, 0.55);
  background: linear-gradient(145deg, rgba(217, 170, 54, 0.12), rgba(48, 38, 148, 0.2));
  box-shadow: 0 0 22px rgba(217, 170, 54, 0.13), 0 0 28px rgba(74, 87, 255, 0.12), inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(217, 170, 54, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 170, 54, 0.12), rgba(31, 37, 82, 0.45));
  text-shadow: 0 0 12px currentColor;
}

.nav-link span:last-child {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-group-title {
  cursor: default;
}

.nav-submenu {
  display: grid;
  gap: 6px;
  padding: 0 6px 4px 16px;
}

.nav-submenu a {
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid rgba(179, 124, 255, 0.12);
  border-radius: 10px;
  color: rgba(215, 216, 239, 0.78);
  background: rgba(8, 12, 30, 0.3);
  font-size: 11px;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-submenu a:hover,
.nav-submenu a.active {
  color: #fff;
  border-color: rgba(217, 170, 54, 0.28);
  background: rgba(44, 20, 86, 0.42);
}

.sound-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-top: auto;
  padding: 16px 10px;
  text-align: center;
  border: 1px solid rgba(122, 100, 255, 0.42);
  border-radius: 18px;
  background: rgba(16, 14, 42, 0.84);
  box-shadow: 0 0 26px rgba(74, 87, 255, 0.16);
}

.sound-card strong {
  font-size: 12px;
}

.sound-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.sound-orb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, rgba(36, 216, 255, 0.16), rgba(155, 53, 255, 0.32));
  box-shadow: 0 0 20px rgba(74, 87, 255, 0.36);
}

.main-content {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 26px clamp(16px, 3vw, 42px) 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar .eyebrow:empty {
  display: none;
}

.topbar h1,
.section-head h2 {
  margin-top: 5px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.icon-button,
.profile-button,
.event-action {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(13, 16, 37, 0.78);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.icon-button,
.profile-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.icon-button:hover,
.profile-button:hover,
.event-action:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 216, 255, 0.62);
  box-shadow: 0 0 22px rgba(20, 216, 255, 0.22);
}

.icon-button {
  color: var(--yellow);
  font-weight: 900;
}

.profile-button {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.22), rgba(155, 53, 255, 0.38));
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: clamp(330px, 36vw, 475px);
  overflow: hidden;
  border: 1px solid rgba(20, 216, 255, 0.34);
  border-radius: var(--radius);
  background: #070916;
  box-shadow:
    0 0 0 1px rgba(255, 53, 212, 0.16),
    0 0 38px rgba(20, 216, 255, 0.24),
    0 0 78px rgba(155, 67, 255, 0.18),
    var(--shadow);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--magenta), var(--violet), var(--gold), var(--cyan));
  background-size: 240% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-flow 7s linear infinite;
  pointer-events: none;
  z-index: 8;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/controladora.jpg");
  background-position: center right;
  background-size: cover;
  filter: saturate(1.2) contrast(1.08) brightness(1.04);
  transform: scale(1.045);
  animation: cinematic-pan 16s ease-in-out infinite alternate;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 14, 0.9) 0%, rgba(4, 6, 16, 0.75) 34%, rgba(6, 7, 18, 0.12) 74%, rgba(6, 7, 18, 0.06) 100%),
    radial-gradient(circle at 23% 54%, rgba(217, 170, 54, 0.12), transparent 16rem),
    radial-gradient(circle at 69% 26%, rgba(255, 53, 212, 0.2), transparent 18rem),
    radial-gradient(circle at 82% 56%, rgba(20, 216, 255, 0.18), transparent 17rem);
  z-index: -2;
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  z-index: -1;
}

.dj-stage {
  position: absolute;
  left: clamp(28px, 5vw, 80px);
  bottom: clamp(38px, 5vw, 58px);
  width: clamp(170px, 23vw, 315px);
  aspect-ratio: 1;
  display: grid;
  place-items: end center;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.56));
}

.dj-stage img {
  position: relative;
  z-index: 2;
  width: 96%;
  max-height: 118%;
  object-fit: contain;
  object-position: bottom center;
  transform: translateY(8%);
  animation: float-dj 5s ease-in-out infinite;
}

.neon-ring {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(5, 8, 20, 0.42) 58%, transparent 60%),
    conic-gradient(from 180deg, var(--cyan), var(--blue), var(--magenta), var(--violet), var(--gold), var(--cyan));
  box-shadow:
    0 0 28px rgba(20, 216, 255, 0.48),
    0 0 46px rgba(255, 53, 212, 0.32),
    inset 0 0 24px rgba(255, 255, 255, 0.1);
  animation: spin-slow 14s linear infinite, ring-pulse 2.8s ease-in-out infinite;
}

.neon-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: rgba(4, 6, 18, 0.62);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(50%, 670px);
  margin-left: clamp(245px, 31vw, 430px);
  padding-top: clamp(74px, 8vw, 118px);
}

.hero-copy p {
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.hero-copy h2 {
  display: grid;
  gap: 2px;
  margin: 12px 0 14px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(58px, 8.8vw, 128px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--gold) 0%, #f4d778 18%, #ff9a38 32%, var(--magenta) 55%, var(--violet) 76%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 53, 212, 0.34));
}

.hero-copy h2 small {
  display: block;
  color: #d5d7f2;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  -webkit-text-fill-color: #d5d7f2;
}

.hero-copy span {
  display: block;
  max-width: 520px;
  color: #f6f5ff;
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.hero-copy strong {
  color: var(--gold);
  font-weight: 800;
}

.hero-copy em {
  color: var(--cyan);
  font-style: normal;
}

.deck-focus {
  position: absolute;
  right: 7%;
  bottom: 19%;
  width: clamp(160px, 24vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.64;
}

.deck-focus span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(20, 216, 255, 0.42);
  border-radius: inherit;
  box-shadow: 0 0 28px rgba(20, 216, 255, 0.28);
  animation: deck-pulse 2.2s ease-in-out infinite;
}

.deck-focus span:last-child {
  inset: 18%;
  border-color: rgba(255, 53, 212, 0.5);
  animation-delay: 0.7s;
}

.equalizer {
  position: absolute;
  left: clamp(42px, 7vw, 120px);
  right: clamp(50px, 30vw, 430px);
  bottom: clamp(12px, 2.1vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 0.65vw, 10px);
  height: 42px;
  z-index: 4;
}

.equalizer::before,
.equalizer::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(20, 216, 255, 0.72), rgba(255, 53, 212, 0.72));
  box-shadow: 0 0 18px rgba(20, 216, 255, 0.46);
}

.equalizer::after {
  background: linear-gradient(90deg, rgba(255, 53, 212, 0.7), rgba(155, 67, 255, 0.62), transparent);
}

.equalizer span {
  width: 5px;
  min-height: 7px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--blue), var(--cyan), var(--magenta));
  box-shadow: 0 0 15px rgba(20, 216, 255, 0.62);
  animation: eq 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -70ms);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 24px;
}

.metric-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 12%);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent), transparent 90%), rgba(8, 10, 25, 0.86)),
    rgba(9, 12, 30, 0.8);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 22px color-mix(in srgb, var(--accent), transparent 80%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 30px color-mix(in srgb, var(--accent), transparent 72%);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% 20%;
  height: 100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 46%), transparent 70%);
  filter: blur(4px);
}

.metric-card.gold { --accent: var(--gold); }
.metric-card.yellow { --accent: var(--gold); }
.metric-card.cyan { --accent: var(--cyan); }
.metric-card.violet { --accent: var(--violet); }
.metric-card.blue { --accent: var(--blue); }

.metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 2px solid color-mix(in srgb, var(--accent), transparent 18%);
  border-radius: 50%;
  color: var(--accent);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--accent), transparent 78%), 0 0 22px color-mix(in srgb, var(--accent), transparent 62%);
  text-shadow: 0 0 14px currentColor;
}

.metric-card p {
  color: color-mix(in srgb, var(--accent), #fff 26%);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
  font-size: 14px;
}

.metric-card > div,
.insight-card {
  text-align: center;
}

.metric-card > div {
  display: grid;
  justify-items: center;
  flex: 1;
  min-width: 0;
}

.metric-card small,
.insight-card small {
  display: none;
}

.agenda-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(158, 27, 103, 0.38);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 18%, rgba(158, 27, 103, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 8%, rgba(75, 52, 216, 0.2), transparent 28rem),
    linear-gradient(180deg, rgba(17, 9, 37, 0.95), rgba(7, 7, 20, 0.9));
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.5), 0 0 40px rgba(76, 26, 130, 0.13);
}

.agenda-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.045) 42%, transparent 68%),
    radial-gradient(circle at 50% 0%, rgba(217, 170, 54, 0.08), transparent 24rem);
  opacity: 0.75;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.filters {
  display: flex;
  gap: 14px;
  width: min(100%, 560px);
}

.home-agenda-tools {
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 170px;
  align-items: stretch;
}

.home-agenda-tools label {
  min-width: 0;
}

.calendar-shortcut {
  min-height: 52px;
  white-space: nowrap;
}

.filters label,
.filters select {
  min-width: 0;
  flex: 1;
}

.filters input,
.filters select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: #f5f5ff;
  border: 1px solid rgba(179, 124, 255, 0.22);
  border-radius: 12px;
  outline: none;
  background: linear-gradient(145deg, rgba(16, 9, 37, 0.88), rgba(8, 8, 24, 0.82));
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filters input:focus,
.filters select:focus {
  border-color: rgba(255, 53, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(158, 27, 103, 0.14), 0 0 24px rgba(75, 52, 216, 0.18);
}

.filters input::placeholder {
  color: #8083a4;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 54px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--deep-magenta), var(--royal-purple), var(--wine-bright), var(--gold));
  box-shadow: 0 0 18px rgba(158, 27, 103, 0.52), 0 0 28px rgba(75, 52, 216, 0.28);
}

.event-card {
  --event: var(--violet);
  --event-soft: rgba(155, 67, 255, 0.2);
  --event-dark: rgba(26, 12, 53, 0.92);
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(180px, 1fr) 92px 130px 48px;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--event), transparent 28%);
  border-radius: 18px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--event), transparent 78%), transparent 38%),
    radial-gradient(circle at 0% 50%, var(--event-soft), transparent 36%),
    linear-gradient(100deg, rgba(24, 9, 42, 0.96), rgba(10, 8, 24, 0.9) 58%, var(--event-dark));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.33), 0 0 22px color-mix(in srgb, var(--event), transparent 82%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 70%, rgba(255, 255, 255, 0.035));
  opacity: 0.7;
}

.event-card > * {
  position: relative;
  z-index: 1;
}

.event-card:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--event), #fff 18%);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42), 0 0 34px color-mix(in srgb, var(--event), transparent 68%);
}

.event-card.is-selected {
  transform: translateX(4px);
  border-color: #fff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--event), #fff 18%),
    0 0 42px color-mix(in srgb, var(--event), transparent 58%),
    0 20px 54px rgba(0, 0, 0, 0.42);
}

.event-card::before {
  content: "";
  position: absolute;
  left: -44px;
  width: 24px;
  height: 24px;
  border: 5px solid var(--event);
  border-radius: 50%;
  background: radial-gradient(circle, #190b2d 0%, #070812 72%);
  box-shadow: 0 0 22px var(--event), 0 0 34px rgba(158, 27, 103, 0.35);
}

.event-card.confirmed {
  --event: #a84dff;
  --event-soft: rgba(168, 77, 255, 0.22);
  --event-dark: rgba(28, 11, 62, 0.96);
}

.event-card.pending {
  --event: #d9aa36;
  --event-soft: rgba(158, 27, 103, 0.2);
  --event-dark: rgba(58, 18, 48, 0.94);
}

.event-card.canceled {
  --event: #ff5f7d;
  --event-soft: rgba(158, 27, 103, 0.24);
  --event-dark: rgba(68, 10, 35, 0.96);
}

.event-card time {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(244, 215, 120, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(145deg, rgba(217, 170, 54, 0.95) 0%, rgba(158, 27, 103, 0.92) 48%, rgba(75, 52, 216, 0.94) 100%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 0 22px rgba(158, 27, 103, 0.34);
}

.event-card time strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 44px;
  line-height: 0.85;
}

.event-card time span {
  font-weight: 900;
}

.event-info h3 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.event-info p {
  margin: 5px 0 8px;
  color: var(--muted);
  line-height: 1.35;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: #dcb8ff;
  background: linear-gradient(145deg, rgba(155, 67, 255, 0.14), rgba(77, 10, 47, 0.16));
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 14px rgba(155, 67, 255, 0.08);
}

.tag.checklist {
  color: #f2cf75;
  background: linear-gradient(145deg, rgba(217, 170, 54, 0.12), rgba(77, 10, 47, 0.18));
}

.tag.info {
  color: #b7a8ff;
  background: linear-gradient(145deg, rgba(75, 52, 216, 0.18), rgba(77, 10, 47, 0.16));
}

.tag.canceled {
  color: var(--red);
  background: rgba(255, 95, 103, 0.1);
}

.event-hour {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.status.ok {
  color: #9cffb1;
  background: linear-gradient(145deg, rgba(18, 99, 63, 0.28), rgba(21, 12, 44, 0.72));
  box-shadow: 0 0 18px rgba(60, 255, 142, 0.12);
}

.status.wait {
  color: #f3d17d;
  background: linear-gradient(145deg, rgba(217, 170, 54, 0.17), rgba(77, 10, 47, 0.52));
  box-shadow: 0 0 18px rgba(217, 170, 54, 0.12);
}

.status.no {
  color: #ff9cad;
  background: linear-gradient(145deg, rgba(255, 95, 125, 0.16), rgba(77, 10, 47, 0.58));
  box-shadow: 0 0 18px rgba(255, 95, 125, 0.13);
}

.event-action {
  width: 48px;
  height: 42px;
  border-radius: 10px;
  color: #f0e9ff;
  border-color: rgba(179, 124, 255, 0.28);
  background: linear-gradient(145deg, rgba(44, 20, 86, 0.88), rgba(12, 9, 28, 0.86));
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 0 16px rgba(155, 67, 255, 0.08);
}

.new-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(100%, 650px);
  min-height: 86px;
  margin: 34px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(100deg, #d9aa36, #285cff 46%, #6f4cff 100%);
  box-shadow: 0 0 26px rgba(217, 170, 54, 0.22), 0 0 34px rgba(74, 87, 255, 0.26);
  cursor: pointer;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.new-event:hover {
  transform: translateY(-3px) scale(1.01);
  filter: saturate(1.15);
  box-shadow: 0 0 34px rgba(217, 170, 54, 0.3), 0 0 46px rgba(74, 87, 255, 0.32);
}

.new-event.is-pulsing {
  animation: button-pulse 700ms ease-in-out infinite alternate;
}

.new-event span {
  font-size: 1.25em;
  line-height: 0;
}

.page-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(158, 27, 103, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 0%, rgba(158, 27, 103, 0.16), transparent 24rem),
    radial-gradient(circle at 84% 14%, rgba(75, 52, 216, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(17, 9, 37, 0.94), rgba(7, 7, 20, 0.9));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.page-panel,
.agenda-panel,
.metric-card,
.insight-card,
.client-card,
.contract-card,
.event-strip,
.table-row,
.quick-modal {
  border-color: rgba(102, 91, 214, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 170, 54, 0.08), transparent 22rem),
    radial-gradient(circle at 86% 14%, rgba(75, 52, 216, 0.14), transparent 24rem),
    linear-gradient(150deg, rgba(9, 12, 31, 0.96), rgba(5, 7, 18, 0.92));
}

.section-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(158, 27, 103, 0.36);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 53, 212, 0.16), transparent 22rem),
    radial-gradient(circle at 85% 14%, rgba(75, 52, 216, 0.22), transparent 24rem),
    linear-gradient(125deg, rgba(18, 8, 38, 0.96), rgba(7, 8, 23, 0.86));
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.42), 0 0 38px rgba(158, 27, 103, 0.12);
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.055), transparent 62%),
    radial-gradient(circle at 8% 100%, rgba(217, 170, 54, 0.12), transparent 20rem);
}

.section-hero > * {
  position: relative;
  z-index: 1;
}

.section-hero h2 {
  max-width: 760px;
  margin-top: 8px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
}

.section-hero p {
  max-width: 640px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.events-hero {
  background:
    radial-gradient(circle at 16% 26%, rgba(217, 170, 54, 0.13), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(255, 53, 212, 0.2), transparent 24rem),
    linear-gradient(125deg, rgba(20, 9, 46, 0.96), rgba(8, 8, 25, 0.88));
}

.clients-hero {
  background:
    radial-gradient(circle at 20% 22%, rgba(155, 67, 255, 0.2), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(217, 170, 54, 0.12), transparent 20rem),
    linear-gradient(125deg, rgba(12, 12, 38, 0.96), rgba(40, 8, 44, 0.84));
}

.contracts-hero,
.finance-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(158, 27, 103, 0.22), transparent 22rem),
    radial-gradient(circle at 84% 24%, rgba(75, 52, 216, 0.2), transparent 24rem),
    linear-gradient(125deg, rgba(24, 8, 38, 0.96), rgba(7, 8, 23, 0.88));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.insight-card {
  --card-accent: var(--violet);
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--card-accent), transparent 34%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--card-accent), transparent 78%), transparent 62%),
    linear-gradient(145deg, rgba(20, 9, 42, 0.92), rgba(8, 8, 24, 0.86));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 24px color-mix(in srgb, var(--card-accent), transparent 82%);
}

.insight-card.gold { --card-accent: var(--gold); }
.insight-card.violet { --card-accent: var(--violet); }
.insight-card.wine { --card-accent: var(--royal-purple); }
.insight-card.blue { --card-accent: var(--royal-purple); }

.insight-card span,
.insight-card small {
  color: color-mix(in srgb, var(--card-accent), #fff 34%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.compact-head {
  margin-bottom: 18px;
}

.stacked-form {
  grid-template-columns: 1fr;
}

.event-board {
  min-width: 0;
}

.compact-filters {
  width: min(100%, 520px);
}

.agenda-form-panel {
  margin-bottom: 24px;
}

.agenda-form {
  grid-template-columns: 132px minmax(310px, 1.75fr) minmax(170px, 0.95fr) minmax(220px, 1.1fr) 124px 158px;
  align-items: end;
}

.agenda-form .field-client,
.agenda-form .field-place {
  min-width: 0;
}

.client-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
}

.quick-add-client,
.modal-close {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  border: 1px solid rgba(244, 215, 120, 0.36);
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(217, 170, 54, 0.92), rgba(158, 27, 103, 0.92), rgba(75, 52, 216, 0.9));
  box-shadow: 0 0 20px rgba(158, 27, 103, 0.18);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.quick-add-client:hover,
.modal-close:hover {
  transform: translateY(-2px);
  filter: saturate(1.15);
  box-shadow: 0 0 28px rgba(217, 170, 54, 0.22), 0 0 32px rgba(158, 27, 103, 0.22);
}

.agenda-form .field-submit {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 4, 14, 0.72);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.quick-modal {
  width: min(100%, 860px);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(179, 124, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 170, 54, 0.14), transparent 22rem),
    radial-gradient(circle at 86% 12%, rgba(255, 53, 212, 0.16), transparent 22rem),
    linear-gradient(155deg, rgba(17, 9, 37, 0.98), rgba(7, 8, 23, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 44px rgba(75, 52, 216, 0.18);
}

.modal-close {
  background: rgba(44, 20, 86, 0.78);
  font-size: 28px;
}

.quick-client-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-client-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-list,
.client-grid,
.contract-grid {
  display: grid;
  gap: 16px;
}

.event-strip {
  --strip-accent: var(--wine-bright);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 80px auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--strip-accent), transparent 32%);
  border-radius: 16px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--strip-accent), transparent 84%), transparent 40%),
    linear-gradient(100deg, rgba(24, 9, 42, 0.95), rgba(8, 8, 24, 0.9));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), 0 0 22px color-mix(in srgb, var(--strip-accent), transparent 82%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.event-strip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--strip-accent), #fff 10%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 0 30px color-mix(in srgb, var(--strip-accent), transparent 72%);
}

.event-strip.confirmed { --strip-accent: var(--violet); }
.event-strip.pending { --strip-accent: var(--gold); }

.strip-date {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(244, 215, 120, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(145deg, rgba(217, 170, 54, 0.95), rgba(158, 27, 103, 0.88), rgba(75, 52, 216, 0.92));
  box-shadow: 0 0 20px rgba(158, 27, 103, 0.26);
}

.strip-date strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 34px;
  line-height: 0.9;
}

.strip-date span {
  font-size: 12px;
  font-weight: 900;
}

.strip-main h3,
.client-card h3,
.contract-card h3 {
  color: #fff;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.15;
}

.strip-main p,
.client-card p,
.contract-card p {
  margin: 5px 0 8px;
  color: var(--muted);
  line-height: 1.4;
}

.strip-hour {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.client-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-card,
.contract-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(179, 124, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(155, 67, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(20, 9, 42, 0.94), rgba(8, 8, 24, 0.9));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.client-card {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
}

.client-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(244, 215, 120, 0.3);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(217, 170, 54, 0.9), rgba(158, 27, 103, 0.9), rgba(75, 52, 216, 0.92));
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 32px;
  font-weight: 900;
}

.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-meta span {
  padding: 7px 9px;
  border: 1px solid rgba(179, 124, 255, 0.18);
  border-radius: 9px;
  color: #d7d4ef;
  background: rgba(44, 20, 86, 0.32);
  font-size: 12px;
  font-weight: 700;
}

.client-card .row-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.contract-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contract-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.contract-value {
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
}

.contract-card .row-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.contract-pdf-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.contract-pdf-panel h2 {
  margin-top: 5px;
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.contract-pdf-panel p {
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
}

.pdf-button {
  border-color: rgba(20, 216, 255, 0.32);
  background: linear-gradient(100deg, rgba(20, 216, 255, 0.88), rgba(75, 52, 216, 0.9), rgba(158, 27, 103, 0.9));
}

.section-hero:not(.hero),
.clients-hero,
.contracts-hero,
.finance-hero,
.events-hero {
  border-color: rgba(102, 91, 214, 0.26);
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 170, 54, 0.1), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(75, 52, 216, 0.22), transparent 25rem),
    linear-gradient(125deg, rgba(8, 12, 32, 0.97), rgba(5, 7, 18, 0.9));
}

.agenda-panel,
.page-panel,
.event-strip,
.client-card,
.contract-card,
.table-row {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 22px rgba(75, 52, 216, 0.08);
}

.event-strip.pending,
.event-strip.confirmed {
  --strip-accent: var(--gold);
}

.pdf-button {
  border-color: rgba(217, 170, 54, 0.34);
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.92), rgba(75, 52, 216, 0.9), rgba(8, 16, 46, 0.94));
}

.finance-grid .insight-card strong {
  font-size: clamp(30px, 3vw, 44px);
}

.finance-row {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, auto) minmax(120px, auto) auto;
}

.calendar-panel {
  overflow: visible;
}

.calendar-head {
  align-items: center;
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.muted-action {
  border-color: rgba(179, 124, 255, 0.24);
  background: rgba(44, 20, 86, 0.52);
}

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

.calendar-weekday {
  padding: 0 8px 4px;
  color: color-mix(in srgb, var(--cyan), #fff 18%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(179, 124, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(16, 9, 37, 0.88), rgba(8, 8, 24, 0.78));
}

.calendar-day.has-events {
  border-color: rgba(217, 170, 54, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(217, 170, 54, 0.14), transparent 68%),
    linear-gradient(135deg, rgba(24, 9, 42, 0.94), rgba(8, 8, 24, 0.86));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24), 0 0 18px rgba(217, 170, 54, 0.1);
}

.calendar-day.is-today {
  border-color: rgba(20, 216, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(20, 216, 255, 0.26), 0 0 24px rgba(20, 216, 255, 0.14);
}

.calendar-empty {
  opacity: 0.38;
}

.day-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: rgba(44, 20, 86, 0.58);
  font-weight: 900;
}

.calendar-day.is-today .day-number {
  color: #020612;
  background: var(--cyan);
}

.calendar-events {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(244, 215, 120, 0.24);
  border-radius: 10px;
  background: rgba(44, 20, 86, 0.62);
}

.calendar-event strong {
  color: var(--gold);
  font-size: 11px;
}

.calendar-event span,
.calendar-events small {
  min-width: 0;
  overflow: hidden;
  color: #f4efff;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-form.compact-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 22px;
}

.premium-form label {
  display: grid;
  gap: 8px;
  color: #d7d4ef;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(142, 129, 255, 0.22);
  border-radius: 12px;
  outline: none;
  background: linear-gradient(145deg, rgba(8, 11, 28, 0.92), rgba(4, 6, 16, 0.88));
  color-scheme: dark;
}

.premium-form select,
.filters select {
  color: #f7f7ff;
  background-color: #090a1f;
}

.premium-form select option,
.filters select option {
  color: #f7f7ff;
  background: #090a1f;
}

.premium-form textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
  border-color: rgba(217, 170, 54, 0.62);
  box-shadow: 0 0 0 4px rgba(217, 170, 54, 0.1), 0 0 24px rgba(75, 52, 216, 0.18);
}

.form-wide {
  grid-column: 1 / -1;
}

.contract-form-panel .section-head {
  margin-bottom: 18px;
}

.contract-form .featured-field {
  grid-column: span 2;
  padding: 14px;
  border: 1px solid rgba(217, 170, 54, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 170, 54, 0.14), transparent 18rem),
    linear-gradient(145deg, rgba(33, 19, 55, 0.88), rgba(7, 9, 25, 0.9));
  box-shadow: 0 0 24px rgba(217, 170, 54, 0.08);
}

.contract-form .featured-field select {
  min-height: 58px;
  border-color: rgba(217, 170, 54, 0.42);
  font-size: 18px;
  font-weight: 800;
}

.contract-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-button,
.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid rgba(244, 215, 120, 0.34);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.94), rgba(75, 52, 216, 0.9), rgba(18, 30, 84, 0.92));
  box-shadow: 0 0 22px rgba(217, 170, 54, 0.13);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.table-list {
  display: grid;
  gap: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, auto) minmax(120px, auto) auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid rgba(179, 124, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(105deg, rgba(158, 27, 103, 0.12), transparent 40%),
    linear-gradient(100deg, rgba(24, 9, 42, 0.94), rgba(9, 8, 24, 0.9));
}

.table-row strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.table-row span,
.empty-state {
  color: var(--muted);
}

.row-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.row-actions a {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid rgba(179, 124, 255, 0.24);
  border-radius: 10px;
  color: #f0e9ff;
  background: rgba(44, 20, 86, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-grid article {
  padding: 18px;
  border: 1px solid rgba(179, 124, 255, 0.18);
  border-radius: 16px;
  background: rgba(16, 9, 37, 0.72);
}

.detail-grid span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid strong {
  color: #fff;
}

.contract-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.contract-overview-main h2 {
  margin-top: 6px;
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}

.contract-overview-main p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.contract-overview-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 220px;
}

.contract-overview-side strong {
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.contract-overview-side small {
  color: var(--muted);
  font-weight: 700;
}

.contract-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contract-data-grid article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(179, 124, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 67, 255, 0.14), transparent 60%),
    linear-gradient(145deg, rgba(16, 9, 37, 0.86), rgba(8, 8, 24, 0.82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.contract-data-grid span {
  display: block;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--cyan), #fff 16%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-data-grid strong {
  color: #fff;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.25;
}

.contract-detail-block .unified-contract-grid {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

.contract-data-grid .service-highlight {
  border-color: rgba(217, 170, 54, 0.46);
  background:
    radial-gradient(circle at 0% 0%, rgba(217, 170, 54, 0.18), transparent 62%),
    linear-gradient(145deg, rgba(34, 21, 57, 0.92), rgba(8, 8, 24, 0.86));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 24px rgba(217, 170, 54, 0.12);
}

.contract-data-grid .service-highlight span {
  color: #f4d778;
}

.table-row.is-paid {
  border-color: rgba(108, 255, 95, 0.2);
  opacity: 0.9;
}

.disabled-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid rgba(108, 255, 95, 0.22);
  border-radius: 10px;
  color: #9cffb1;
  background: rgba(18, 99, 63, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Banner-inspired system palette: restores neon impact while keeping the UI premium. */
:root {
  --system-cyan: rgba(20, 216, 255, 0.82);
  --system-blue: rgba(40, 92, 255, 0.72);
  --system-violet: rgba(155, 67, 255, 0.76);
  --system-magenta: rgba(255, 53, 212, 0.46);
  --system-gold: rgba(217, 170, 54, 0.78);
  --system-glass: rgba(12, 10, 32, 0.72);
  --system-line: rgba(179, 124, 255, 0.25);
}

body {
  background:
    radial-gradient(circle at 16% 0%, rgba(35, 107, 255, 0.25), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(155, 67, 255, 0.19), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(217, 170, 54, 0.06), transparent 28rem),
    linear-gradient(135deg, #030611 0%, #080b1b 44%, #050510 100%);
}

.sidebar,
.page-panel,
.agenda-panel,
.section-hero:not(.hero),
.metric-card,
.insight-card,
.client-card,
.contract-card,
.event-card,
.event-strip,
.table-row,
.quick-modal,
.calendar-day,
.detail-grid article {
  backdrop-filter: blur(18px);
}

.sidebar {
  border-right-color: rgba(40, 92, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 15, 39, 0.94), rgba(4, 6, 18, 0.97)),
    radial-gradient(circle at 50% 20%, rgba(40, 92, 255, 0.22), transparent 15rem);
}

.brand-mark {
  background: linear-gradient(110deg, #fff 0%, #9cecff 30%, #b37cff 62%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(155, 67, 255, 0.42));
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(217, 170, 54, 0.48);
  background: linear-gradient(145deg, rgba(217, 170, 54, 0.12), rgba(75, 52, 216, 0.22));
  box-shadow: 0 0 22px rgba(217, 170, 54, 0.12), 0 0 28px rgba(40, 92, 255, 0.13), inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.nav-icon,
.sound-orb {
  color: var(--gold);
  border-color: rgba(217, 170, 54, 0.34);
  background: radial-gradient(circle, rgba(217, 170, 54, 0.12), rgba(31, 37, 82, 0.45));
}

.eyebrow {
  color: var(--cyan);
}

.page-panel,
.agenda-panel,
.section-hero:not(.hero),
.client-card,
.contract-card,
.table-row,
.quick-modal {
  border-color: rgba(179, 124, 255, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 67, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 86% 14%, rgba(40, 92, 255, 0.15), transparent 24rem),
    linear-gradient(150deg, rgba(17, 9, 37, 0.9), rgba(6, 7, 20, 0.88));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46), 0 0 24px rgba(75, 52, 216, 0.1);
}

/* Dashboard polish: softer title hierarchy, no shouty uppercase outside the hero. */
.dashboard-page-shell .agenda-panel .section-head h2 {
  color: rgba(247, 247, 255, 0.9);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 0 16px rgba(155, 67, 255, 0.12);
}

.dashboard-page-shell .metric-card p,
.dashboard-page-shell .event-info h3,
.dashboard-page-shell .status,
.dashboard-page-shell .tag,
.dashboard-page-shell .event-action,
.dashboard-page-shell .new-event {
  text-transform: none;
}

.dashboard-page-shell .metric-card p {
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dashboard-page-shell .event-info h3 {
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dashboard-page-shell .new-event {
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: 0.065em;
}

.metric-card,
.insight-card {
  border-color: color-mix(in srgb, var(--accent, var(--card-accent)), transparent 26%);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent, var(--card-accent)), transparent 80%), transparent 62%),
    linear-gradient(145deg, rgba(20, 9, 42, 0.9), rgba(8, 8, 24, 0.84));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 22px color-mix(in srgb, var(--accent, var(--card-accent)), transparent 84%);
}

.metric-card.cyan,
.insight-card.blue {
  --accent: var(--cyan);
  --card-accent: var(--cyan);
}

.metric-card.violet,
.metric-card.blue,
.insight-card.violet,
.insight-card.wine {
  --accent: var(--violet);
  --card-accent: var(--violet);
}

.metric-card:hover,
.event-card:hover,
.event-strip:hover {
  border-color: rgba(244, 215, 120, 0.36);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.4), 0 0 30px rgba(155, 67, 255, 0.18);
}

.filters input,
.filters select,
.premium-form input,
.premium-form select,
.premium-form textarea {
  border-color: rgba(179, 124, 255, 0.24);
  background: linear-gradient(145deg, rgba(16, 9, 37, 0.88), rgba(8, 8, 24, 0.84));
}

.filters input:focus,
.filters select:focus,
.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
  border-color: rgba(20, 216, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.08), 0 0 24px rgba(155, 67, 255, 0.18);
}

.form-button,
.small-action,
.quick-add-client,
.pdf-button {
  border-color: rgba(244, 215, 120, 0.34);
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.92), rgba(158, 27, 103, 0.72), rgba(75, 52, 216, 0.88));
  box-shadow: 0 0 22px rgba(158, 27, 103, 0.16), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.new-event {
  position: relative;
  overflow: hidden;
  border-color: rgba(244, 215, 120, 0.58);
  background:
    radial-gradient(circle at 18% 24%, rgba(244, 215, 120, 0.28), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 53, 212, 0.28), transparent 28%),
    linear-gradient(105deg, #d9aa36 0%, #9e1b67 34%, #4d0a6f 68%, #8f35ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 26px rgba(217, 170, 54, 0.26),
    0 0 46px rgba(158, 27, 103, 0.34),
    0 24px 70px rgba(0, 0, 0, 0.42);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.new-event::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 22%, transparent 70%, rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 50% 120%, rgba(255, 53, 212, 0.28), transparent 42%);
  opacity: 0.7;
}

.new-event > * {
  position: relative;
  z-index: 1;
}

.new-event:hover {
  filter: saturate(1.2) brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13) inset,
    0 0 34px rgba(217, 170, 54, 0.34),
    0 0 58px rgba(158, 27, 103, 0.46),
    0 30px 84px rgba(0, 0, 0, 0.5);
}

.timeline::before {
  background: linear-gradient(var(--gold), rgba(255, 53, 212, 0.72), var(--royal-purple), var(--gold));
  box-shadow: 0 0 18px rgba(158, 27, 103, 0.42), 0 0 28px rgba(75, 52, 216, 0.24);
}

.event-card.confirmed {
  --event: #9b43ff;
  --event-soft: rgba(155, 67, 255, 0.2);
  --event-dark: rgba(26, 12, 53, 0.94);
}

.event-card.pending {
  --event: #d9aa36;
  --event-soft: rgba(217, 170, 54, 0.16);
  --event-dark: rgba(48, 24, 50, 0.92);
}

.event-card::before {
  box-shadow: 0 0 22px var(--event), 0 0 34px rgba(75, 52, 216, 0.28);
}

.event-strip.confirmed { --strip-accent: var(--violet); }
.event-strip.pending { --strip-accent: var(--gold); }

.strip-date,
.client-avatar {
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(145deg, rgba(217, 170, 54, 0.88), rgba(158, 27, 103, 0.74), rgba(75, 52, 216, 0.86));
  box-shadow: 0 0 22px rgba(155, 67, 255, 0.18);
}

.modal-backdrop {
  background: rgba(2, 4, 14, 0.72);
  backdrop-filter: blur(18px);
}

/* Agenda refinement: calmer hierarchy, stronger headings, cleaner event reading. */
.agenda-page .insight-grid {
  gap: 16px;
}

.agenda-page .insight-card {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 20px 18px;
  text-align: center;
  border-color: color-mix(in srgb, var(--card-accent), transparent 48%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 16px color-mix(in srgb, var(--card-accent), transparent 88%);
}

.agenda-page .insight-card span {
  color: color-mix(in srgb, var(--card-accent), #fff 18%);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.agenda-page .insight-card strong {
  margin: 6px 0 2px;
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 600;
}

.agenda-page .insight-card small {
  color: rgba(215, 212, 239, 0.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.agenda-page-shell .topbar h1,
.agenda-page .section-head h2 {
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 0.95;
}

.agenda-page .agenda-form-panel,
.agenda-page .event-board {
  border-color: rgba(179, 124, 255, 0.2);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38), 0 0 20px rgba(75, 52, 216, 0.08);
}

.agenda-page .eyebrow {
  color: rgba(20, 216, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.agenda-page .premium-form label {
  color: rgba(215, 212, 239, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.agenda-page .premium-form input,
.agenda-page .premium-form select {
  min-height: 46px;
}

.agenda-page .form-button,
.agenda-page .small-action {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(244, 215, 120, 0.22);
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.72), rgba(158, 27, 103, 0.52), rgba(75, 52, 216, 0.64));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 14px rgba(158, 27, 103, 0.1);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.agenda-page .quick-add-client {
  min-height: 46px;
  width: 46px;
}

.agenda-page .event-list {
  gap: 14px;
}

.agenda-page .event-strip {
  grid-template-columns: 76px minmax(0, 1fr) 68px auto;
  min-height: 96px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--strip-accent), transparent 48%);
  border-radius: 15px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--strip-accent), transparent 90%), transparent 38%),
    linear-gradient(100deg, rgba(20, 9, 38, 0.92), rgba(8, 8, 24, 0.88));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 14px color-mix(in srgb, var(--strip-accent), transparent 88%);
}

.agenda-page .strip-date {
  width: 64px;
  height: 64px;
  border-radius: 11px;
}

.agenda-page .strip-date strong {
  font-size: 30px;
}

.agenda-page .strip-date span {
  font-size: 11px;
}

.agenda-page .strip-main h3 {
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.agenda-page .strip-main p {
  margin: 4px 0 8px;
  color: rgba(215, 212, 239, 0.68);
  font-size: 13px;
}

.agenda-page .tag {
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}

.agenda-page .strip-hour {
  align-self: start;
  justify-self: end;
  padding-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 800;
}

.agenda-page .row-actions {
  gap: 8px;
}

.agenda-page .row-actions a {
  min-height: 32px;
  padding: 8px 10px;
  border-color: rgba(179, 124, 255, 0.18);
  color: rgba(240, 233, 255, 0.8);
  background: rgba(44, 20, 86, 0.38);
  font-size: 10px;
  font-weight: 700;
}

.agenda-page .event-strip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--strip-accent), #fff 4%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34), 0 0 20px color-mix(in srgb, var(--strip-accent), transparent 82%);
}

/* Agenda polish: calmer typography and executive hierarchy. */
.agenda-page-shell .topbar h1,
.agenda-page .section-head h2 {
  color: rgba(247, 247, 255, 0.9);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 0 16px rgba(155, 67, 255, 0.12);
}

.agenda-page .section-head {
  margin-bottom: 18px;
}

.agenda-page .insight-card {
  min-height: 108px;
  padding: 18px 16px;
}

.agenda-page .insight-card strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 600;
}

.agenda-page .insight-card span {
  font-weight: 700;
  text-transform: none;
}

.agenda-page .insight-card small {
  color: rgba(215, 212, 239, 0.62);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.agenda-page .premium-form label {
  color: rgba(215, 212, 239, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: none;
}

.agenda-page .premium-form input,
.agenda-page .premium-form select,
.agenda-page .premium-form textarea {
  min-height: 50px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.agenda-page .premium-form select {
  padding-right: 38px;
}

.agenda-page .premium-form select:invalid,
.agenda-page .premium-form select option[value=""] {
  color: rgba(215, 212, 239, 0.78);
}

.agenda-page .form-button,
.agenda-page .small-action {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
}

.agenda-page .event-strip {
  min-height: 92px;
}

.agenda-page .strip-main h3 {
  color: rgba(255, 255, 255, 0.92);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: none;
}

.agenda-page .strip-main p {
  color: rgba(215, 212, 239, 0.64);
  font-size: 13px;
}

.agenda-page .strip-hour {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 700;
}

.agenda-page .row-actions a {
  color: rgba(240, 233, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.agenda-page .tag {
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
}

/* Contracts page: premium card list, no table feel. */
.contratos-page-shell .topbar h1,
.contracts-page .section-head h2 {
  color: rgba(247, 247, 255, 0.9);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 0 16px rgba(155, 67, 255, 0.12);
}

.contracts-page .insight-grid {
  gap: 16px;
}

.contracts-page .insight-card {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px 16px;
  text-align: center;
  border-color: color-mix(in srgb, var(--card-accent), transparent 50%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), 0 0 16px color-mix(in srgb, var(--card-accent), transparent 88%);
}

.contracts-page .insight-card span {
  color: color-mix(in srgb, var(--card-accent), #fff 16%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: none;
}

.contracts-page .insight-card strong {
  margin: 6px 0 2px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
}

.contracts-page .insight-card small {
  color: rgba(215, 212, 239, 0.62);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.contracts-panel {
  border-color: rgba(179, 124, 255, 0.2);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38), 0 0 20px rgba(75, 52, 216, 0.08);
}

.contracts-page .small-action {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(244, 215, 120, 0.22);
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.72), rgba(158, 27, 103, 0.52), rgba(75, 52, 216, 0.64));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 14px rgba(158, 27, 103, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
}

.contract-list {
  display: grid;
  gap: 14px;
}

.contract-item {
  --contract-accent: var(--violet);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(150px, auto) auto;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--contract-accent), transparent 50%);
  border-radius: 16px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--contract-accent), transparent 90%), transparent 38%),
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--contract-accent), transparent 88%), transparent 34%),
    linear-gradient(100deg, rgba(20, 9, 38, 0.92), rgba(8, 8, 24, 0.88));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 14px color-mix(in srgb, var(--contract-accent), transparent 88%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contract-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--contract-accent), #fff 4%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34), 0 0 20px color-mix(in srgb, var(--contract-accent), transparent 82%);
}

.contract-date {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(244, 215, 120, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(217, 170, 54, 0.86), rgba(158, 27, 103, 0.68), rgba(75, 52, 216, 0.82));
  box-shadow: 0 0 20px rgba(155, 67, 255, 0.16);
}

.contract-date strong {
  color: #fff;
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 0.95;
}

.contract-date span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
}

.contract-main {
  min-width: 0;
}

.contract-number {
  display: block;
  margin-bottom: 3px;
  color: rgba(20, 216, 255, 0.64);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.contract-main h3 {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-main p {
  margin: 5px 0 10px;
  color: rgba(215, 212, 239, 0.66);
  font-size: 13px;
}

.contract-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contract-meta span {
  padding: 6px 8px;
  border: 1px solid rgba(179, 124, 255, 0.16);
  border-radius: 9px;
  color: rgba(240, 233, 255, 0.7);
  background: rgba(44, 20, 86, 0.28);
  font-size: 11px;
  font-weight: 600;
}

.event-assignee {
  display: block;
  margin: -4px 0 8px;
  color: rgba(244, 215, 120, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.contract-amount {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.contract-amount small {
  color: rgba(215, 212, 239, 0.58);
  font-size: 11px;
  font-weight: 600;
}

.contract-amount strong {
  color: rgba(255, 255, 255, 0.94);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1;
}

.status.partial {
  color: #f0c6ff;
  border-color: rgba(155, 67, 255, 0.28);
  background: linear-gradient(145deg, rgba(155, 67, 255, 0.14), rgba(21, 12, 44, 0.62));
  box-shadow: 0 0 18px rgba(155, 67, 255, 0.12);
}

.contract-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  justify-content: end;
}

.contract-actions a {
  min-height: 30px;
  min-width: 74px;
  padding: 7px 10px;
  border-color: rgba(179, 124, 255, 0.18);
  color: rgba(240, 233, 255, 0.74);
  background: rgba(44, 20, 86, 0.36);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}

/* Clients page: premium list aligned with Contracts. */
.clientes-page-shell .topbar h1,
.clients-page .section-head h2 {
  color: rgba(247, 247, 255, 0.9);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 0 16px rgba(155, 67, 255, 0.12);
}

.clients-panel {
  border-color: rgba(179, 124, 255, 0.2);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38), 0 0 20px rgba(75, 52, 216, 0.08);
}

.clients-page .small-action {
  min-height: 44px;
  padding: 0 16px;
  border-color: rgba(244, 215, 120, 0.22);
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.72), rgba(158, 27, 103, 0.52), rgba(75, 52, 216, 0.64));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 14px rgba(158, 27, 103, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
}

.client-list {
  display: grid;
  gap: 14px;
}

.client-item {
  --client-accent: var(--violet);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 0.7fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--client-accent), transparent 50%);
  border-radius: 16px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--client-accent), transparent 91%), transparent 38%),
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--client-accent), transparent 89%), transparent 34%),
    linear-gradient(100deg, rgba(20, 9, 38, 0.92), rgba(8, 8, 24, 0.88));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 14px color-mix(in srgb, var(--client-accent), transparent 88%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.client-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--client-accent), #fff 4%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34), 0 0 20px color-mix(in srgb, var(--client-accent), transparent 82%);
}

.compact-avatar {
  width: 56px;
  height: 56px;
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: 26px;
  font-weight: 600;
}

.client-main {
  min-width: 0;
}

.client-number {
  display: block;
  margin-bottom: 3px;
  color: rgba(20, 216, 255, 0.64);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.client-main h3 {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-main p {
  margin-top: 5px;
  color: rgba(215, 212, 239, 0.66);
  font-size: 13px;
}

.client-contact {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.client-contact span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.client-contact small {
  overflow: hidden;
  color: rgba(215, 212, 239, 0.58);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  justify-content: end;
}

.client-actions a {
  min-height: 30px;
  min-width: 74px;
  padding: 7px 10px;
  border-color: rgba(179, 124, 255, 0.18);
  color: rgba(240, 233, 255, 0.74);
  background: rgba(44, 20, 86, 0.36);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}

/* Client form polish: calm typography for create/edit screens. */
.novo_cliente-page-shell .topbar h1,
.editar_cliente-page-shell .topbar h1 {
  color: rgba(247, 247, 255, 0.9);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 0 16px rgba(155, 67, 255, 0.12);
}

.novo_cliente-page-shell .eyebrow,
.editar_cliente-page-shell .eyebrow {
  color: rgba(20, 216, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: none;
}

.novo_cliente-page-shell .premium-form label,
.editar_cliente-page-shell .premium-form label {
  color: rgba(215, 212, 239, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: none;
}

.novo_cliente-page-shell .premium-form input,
.editar_cliente-page-shell .premium-form input {
  min-height: 50px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.novo_cliente-page-shell .form-button,
.editar_cliente-page-shell .form-button {
  min-height: 44px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(244, 215, 120, 0.22);
  background: linear-gradient(100deg, rgba(217, 170, 54, 0.72), rgba(158, 27, 103, 0.52), rgba(75, 52, 216, 0.64));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 14px rgba(158, 27, 103, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
}

.usuarios-page-shell .topbar h1,
.usuarios-page-shell .section-head h2 {
  color: rgba(247, 247, 255, 0.9);
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.05;
  text-transform: none;
}

.user-form {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr) auto;
  margin-bottom: 22px;
}

.usuarios-page-shell .premium-form label,
.usuarios-page-shell .form-button {
  text-transform: none;
}

.user-row {
  grid-template-columns: 1fr;
}

@keyframes border-flow {
  to { background-position: 240% 0; }
}

@keyframes cinematic-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.8%, 1%, 0); }
}

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

@keyframes ring-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.28); }
}

@keyframes float-dj {
  0%, 100% { transform: translateY(8%); }
  50% { transform: translateY(5%); }
}

@keyframes deck-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.42; }
  50% { transform: scale(1.04); opacity: 0.86; }
}

@keyframes eq {
  0% { height: 7px; }
  35% { height: calc(11px + var(--i) * 0.75px); }
  100% { height: calc(34px - var(--i) * 0.38px); }
}

@keyframes button-pulse {
  from { box-shadow: 0 0 32px rgba(255, 212, 0, 0.32), 0 0 42px rgba(155, 53, 255, 0.28); }
  to { box-shadow: 0 0 42px rgba(217, 170, 54, 0.38), 0 0 58px rgba(74, 87, 255, 0.42); }
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 92px minmax(180px, 1fr) 80px 120px;
  }

  .event-action {
    display: none;
  }

  .insight-grid,
  .client-grid,
  .contract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .agenda-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-form .field-client,
  .agenda-form .field-place,
  .agenda-form .field-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .brand-mark {
    font-size: 42px;
  }

  .nav-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .sound-card {
    display: none;
  }

  .main-content {
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
  }

  .hero {
    min-height: 720px;
  }

  .hero-bg {
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: min(920px, 165vw) auto;
    transform: scale(1);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 5, 14, 0.92) 0%, rgba(4, 6, 16, 0.72) 44%, rgba(6, 7, 18, 0.22) 100%),
      radial-gradient(circle at 44% 32%, rgba(255, 53, 212, 0.16), transparent 15rem),
      radial-gradient(circle at 50% 76%, rgba(20, 216, 255, 0.15), transparent 18rem);
  }

  .dj-stage {
    left: 50%;
    top: 58px;
    bottom: auto;
    width: min(56vw, 270px);
    transform: translateX(-50%);
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 352px 24px 0;
    text-align: center;
  }

  .hero-copy span {
    margin: 0 auto;
  }

  .deck-focus {
    right: 50%;
    bottom: 48px;
    width: min(66vw, 260px);
    transform: translateX(50%);
  }

  .equalizer {
    left: 24px;
    right: 24px;
    bottom: 12px;
    height: 38px;
  }

  .section-head,
  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    width: 100%;
  }

  .home-agenda-tools {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .premium-form,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-form .featured-field {
    grid-column: 1 / -1;
  }

  .contract-overview {
    grid-template-columns: 1fr;
  }

  .contract-overview-side {
    justify-items: start;
  }

  .agenda-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-form .field-client,
  .agenda-form .field-place,
  .agenda-form .field-submit {
    grid-column: 1 / -1;
  }

  .calendar-grid {
    gap: 8px;
  }

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

  .table-row {
    grid-template-columns: 1fr 1fr;
  }

  .section-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .event-strip {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .event-strip .strip-hour,
  .event-strip .row-actions {
    grid-column: 2;
  }

  .event-strip .row-actions {
    justify-content: flex-start;
  }

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

  .contract-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .client-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .contract-amount,
  .contract-actions,
  .client-contact,
  .client-actions {
    grid-column: 2;
    justify-items: start;
  }

  .contract-actions,
  .client-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .contract-pdf-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    min-height: 64px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 9px 10px;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }

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

  .metric-card {
    min-height: 128px;
  }

  .hero {
    min-height: 690px;
    border-radius: 18px;
  }

  .hero-bg {
    background-size: min(780px, 190vw) auto;
    background-position: center bottom;
  }

  .dj-stage {
    top: 50px;
    width: min(70vw, 245px);
  }

  .hero-copy {
    padding: 326px 18px 0;
  }

  .hero-copy p {
    font-size: clamp(30px, 11vw, 44px);
  }

  .hero-copy h2 {
    font-size: clamp(62px, 20vw, 88px);
  }

  .hero-copy span {
    font-size: 18px;
  }

  .equalizer {
    left: 16px;
    right: 16px;
    bottom: 12px;
    gap: 4px;
    opacity: 0.82;
  }

  .equalizer span {
    width: 4px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before,
  .event-card::before {
    display: none;
  }

  .event-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .event-card time {
    width: 70px;
    height: 74px;
  }

  .event-card time strong {
    font-size: 35px;
  }

  .event-hour,
  .status {
    grid-column: 2;
    justify-self: start;
  }

  .new-event {
    min-height: 72px;
    gap: 14px;
  }

  .premium-form,
  .premium-form.compact-form,
  .agenda-form,
  .quick-client-form,
  .user-form,
  .detail-grid,
  .contract-data-grid,
  .table-row,
  .insight-grid,
  .client-grid,
  .contract-grid,
  .finance-row {
    grid-template-columns: 1fr;
  }

  .contract-form .featured-field {
    grid-column: auto;
  }

  .contract-item {
    grid-template-columns: 1fr;
  }

  .client-item {
    grid-template-columns: 1fr;
  }

  .contract-date,
  .contract-amount,
  .contract-actions,
  .client-contact,
  .client-actions {
    grid-column: auto;
  }

  .contract-main h3,
  .client-main h3,
  .client-contact small {
    white-space: normal;
  }

  .agenda-form .field-client,
  .agenda-form .field-place,
  .agenda-form .field-submit {
    grid-column: auto;
  }

  .agenda-form-panel .section-head,
  .calendar-head {
    align-items: stretch;
  }

  .agenda-form-panel .small-action,
  .contract-pdf-panel .small-action,
  .home-agenda-tools .small-action,
  .calendar-actions .small-action {
    width: 100%;
  }

  .home-agenda-tools {
    grid-template-columns: 1fr;
  }

  .calendar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .calendar-weekday,
  .calendar-empty {
    display: none;
  }

  .calendar-day {
    min-height: auto;
  }

  .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section-hero h2 {
    font-size: clamp(34px, 13vw, 50px);
  }

  .insight-card {
    min-height: 116px;
  }

  .client-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 18px;
  }

  .client-avatar {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .client-card .row-actions {
    grid-column: 1 / -1;
  }

  .event-strip {
    grid-template-columns: 1fr;
  }

  .event-strip .strip-hour,
  .event-strip .row-actions {
    grid-column: auto;
  }
}

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

/* Global visual cleanup: calmer headings and no small blue pre-titles. */
.eyebrow {
  display: none !important;
}

.main-content *,
.quick-modal * {
  text-transform: none !important;
}

.topbar h1,
.section-head h2,
.contract-overview-main h2,
.section-hero h2,
.contract-main h3,
.client-main h3,
.table-row strong {
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 800;
  letter-spacing: 0 !important;
  line-height: 1.12;
}

.topbar h1,
.section-head h2,
.contract-overview-main h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.premium-form label,
.contract-data-grid span,
.detail-grid span,
.metric-card p,
.insight-card span {
  letter-spacing: 0 !important;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
  font-size: 16px;
  font-weight: 650;
}

.contract-form .featured-field select {
  font-size: 18px;
}

.contract-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.contract-detail-topbar > a {
  color: rgba(215, 212, 239, 0.86);
  font-size: 15px;
  font-weight: 700;
}

.contract-detail-page {
  display: grid;
  gap: 22px;
}

.contract-hero-panel,
.contract-info-card,
.contract-client-card {
  border: 1px solid rgba(139, 67, 255, 0.34);
  background:
    radial-gradient(circle at 16% 0%, rgba(155, 67, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(36, 92, 255, 0.12), transparent 24rem),
    linear-gradient(150deg, rgba(15, 8, 35, 0.96), rgba(5, 6, 18, 0.94));
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.32);
}

.contract-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: 330px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 22px;
}

.contract-hero-main {
  display: grid;
  gap: 16px;
}

.contract-hero-main h1 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 850;
  line-height: 1.04;
}

.contract-hero-main p {
  color: rgba(215, 212, 239, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 650;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-location span,
.contract-info-card h2 span,
.contract-client-card h2 span {
  color: var(--violet);
}

.contract-created {
  width: fit-content;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 67, 255, 0.34);
  border-radius: 9px;
  color: rgba(215, 212, 239, 0.82);
  background: rgba(44, 20, 86, 0.32);
  font-weight: 650;
}

.contract-hero-finance {
  display: grid;
  gap: 14px;
  padding-left: clamp(0px, 3vw, 56px);
  border-left: 1px solid rgba(179, 124, 255, 0.22);
}

.contract-hero-finance > small {
  color: rgba(215, 212, 239, 0.72);
  font-size: 15px;
  font-weight: 650;
}

.contract-hero-finance > strong {
  color: #fff;
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(44px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 0.95;
}

.contract-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(247, 247, 255, 0.9);
  font-size: 17px;
  font-weight: 800;
}

.contract-progress-head b,
.accent-money,
.accent-status {
  color: var(--gold);
}

.contract-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(139, 67, 255, 0.34);
}

.contract-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #ffbf2f);
}

.contract-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.contract-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1fr);
  gap: 22px;
}

.contract-info-card,
.contract-client-card {
  padding: 28px;
  border-radius: 18px;
}

.contract-info-card h2,
.contract-client-card h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.contract-info-card dl {
  display: grid;
  gap: 0;
}

.contract-info-card dl div {
  display: grid;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(179, 124, 255, 0.13);
}

.contract-info-card dl div:last-child {
  border-bottom: 0;
}

.contract-info-card dt,
.client-contract-strip span {
  color: rgba(215, 212, 239, 0.68);
  font-size: 14px;
  font-weight: 650;
}

.contract-info-card dd,
.client-contract-strip strong {
  color: #fff;
  font-size: 19px;
  font-weight: 780;
}

.contract-place-card {
  display: grid;
  align-content: start;
}

.contract-place-preview {
  min-height: 160px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(217, 170, 54, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(5, 6, 18, 0.08), rgba(5, 6, 18, 0.56)),
    radial-gradient(circle at 18% 35%, rgba(217, 170, 54, 0.62) 0 4px, transparent 5px),
    radial-gradient(circle at 34% 32%, rgba(255, 220, 120, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 30%, rgba(217, 170, 54, 0.58) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 34%, rgba(255, 220, 120, 0.7) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(27, 79, 64, 0.9), rgba(20, 13, 47, 0.96) 48%, rgba(85, 43, 97, 0.82));
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.45);
}

.contract-client-card {
  display: grid;
  gap: 4px;
}

.client-contract-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.client-contract-strip div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(179, 124, 255, 0.22);
}

.client-contract-strip div:first-child {
  padding-left: 0;
  border-left: 0;
}

.client-contract-strip strong {
  overflow-wrap: anywhere;
}

.contract-installments-panel {
  margin-top: 0;
}

.reports-metrics {
  margin-bottom: 24px;
}

.report-row {
  grid-template-columns: minmax(240px, 1fr) minmax(120px, auto) minmax(140px, auto) minmax(130px, auto) auto;
}

.finished-event-row {
  grid-template-columns: minmax(240px, 1fr) minmax(110px, auto) minmax(90px, auto) minmax(130px, auto);
}

.report-money {
  color: #f4d778;
  font-size: 18px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-shell {
  width: min(100%, 460px);
}

.login-panel {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid rgba(102, 91, 214, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 170, 54, 0.12), transparent 18rem),
    radial-gradient(circle at 86% 12%, rgba(75, 52, 216, 0.18), transparent 20rem),
    linear-gradient(150deg, rgba(9, 12, 31, 0.96), rgba(5, 7, 18, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.login-panel h1 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.08;
  text-align: center;
}

.login-panel p {
  margin-top: 8px;
  color: rgba(215, 212, 239, 0.72);
  text-align: center;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 95, 103, 0.3);
  border-radius: 12px;
  color: #ffd0d4 !important;
  background: rgba(255, 95, 103, 0.1);
  font-weight: 700;
}

.login-form {
  grid-template-columns: 1fr;
}

/* Agenda executive layout */
.agenda-page {
  display: grid;
  gap: 22px;
}

.agenda-page-shell {
  width: min(100%, 1500px);
}

.agenda-page .agenda-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.agenda-hero h2 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 850;
  line-height: 1.04;
}

.agenda-hero p {
  margin-top: 14px;
  color: rgba(215, 216, 239, 0.9);
  font-size: 18px;
  font-weight: 500;
}

.agenda-hero-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px;
  gap: 16px;
  align-items: center;
}

.agenda-search {
  position: relative;
  display: block;
  min-width: 0;
}

.agenda-search input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 20px;
  border: 1px solid rgba(102, 91, 214, 0.34);
  border-radius: 9px;
  color: #f7f7ff;
  outline: none;
  background: rgba(5, 8, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.agenda-search input:focus {
  border-color: rgba(155, 67, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 67, 255, 0.12);
}

.agenda-search span:last-child {
  position: absolute;
  right: 18px;
  top: 50%;
  color: rgba(215, 216, 239, 0.82);
  font-size: 23px;
  transform: translateY(-50%) rotate(-20deg);
}

.agenda-primary-action {
  justify-content: center;
  min-height: 54px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(120deg, rgba(217, 170, 54, 0.78), rgba(158, 27, 103, 0.74), rgba(75, 52, 216, 0.92));
  font-size: 16px;
}

.agenda-page .agenda-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.agenda-page .agenda-metrics .insight-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  place-items: initial;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 24px;
  text-align: left;
  border-color: rgba(102, 91, 214, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--card-accent), transparent 84%), transparent 16rem),
    linear-gradient(145deg, rgba(10, 13, 32, 0.92), rgba(5, 7, 20, 0.86));
  box-shadow: none;
}

.agenda-page .insight-card.green { --card-accent: #36f59b; }

.agenda-page .agenda-metrics .metric-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent), transparent 88%);
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 18px color-mix(in srgb, var(--card-accent), transparent 36%);
}

.agenda-page .agenda-metrics .insight-card span:not(.metric-symbol) {
  color: rgba(215, 216, 239, 0.92);
  font-size: 15px;
  font-weight: 650;
}

.agenda-page .agenda-metrics .insight-card strong {
  display: block;
  margin: 7px 0 4px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 34px;
  font-weight: 850;
}

.agenda-page .agenda-metrics .insight-card small {
  display: block;
  color: color-mix(in srgb, var(--card-accent), #fff 24%);
  font-size: 14px;
  font-weight: 650;
}

.agenda-page .event-board {
  padding: 0;
  border-color: rgba(102, 91, 214, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 100%, rgba(75, 52, 216, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(10, 13, 32, 0.92), rgba(5, 7, 20, 0.92));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.agenda-page .event-board::before {
  display: none;
}

.agenda-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px 0;
  border-bottom: 1px solid rgba(102, 91, 214, 0.24);
}

.agenda-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.agenda-tab-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  color: rgba(215, 216, 239, 0.86);
  font-weight: 750;
}

.agenda-tab-list a.active {
  color: #fff;
}

.agenda-tab-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #9b43ff, #4b34d8);
  box-shadow: 0 0 18px rgba(155, 67, 255, 0.48);
}

.agenda-tab-list span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(217, 170, 54, 0.52);
  border-radius: 7px;
  color: #f4d778;
  background: rgba(217, 170, 54, 0.13);
  font-size: 12px;
}

.agenda-view-link {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(102, 91, 214, 0.28);
  border-radius: 9px;
  color: rgba(215, 216, 239, 0.9);
  background: rgba(8, 10, 26, 0.62);
  font-weight: 750;
}

.agenda-table-head,
.agenda-page .event-strip {
  display: grid;
  grid-template-columns: 96px minmax(170px, 1.1fr) minmax(170px, 1fr) minmax(170px, 1fr) 110px 150px 118px;
  gap: 18px;
  align-items: center;
}

.agenda-table-head {
  padding: 28px 34px 12px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.agenda-page .agenda-table-list {
  display: grid;
  gap: 8px;
  padding: 0 20px 26px;
}

.agenda-page .event-strip {
  min-height: 104px;
  padding: 18px 22px;
  border-color: rgba(102, 91, 214, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--strip-accent), transparent 92%), transparent 20rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.9), rgba(7, 9, 24, 0.9));
  box-shadow: none;
}

.agenda-page .event-strip.confirmed { --strip-accent: #36f59b; }
.agenda-page .event-strip.pending { --strip-accent: var(--gold); }

.agenda-page .strip-date {
  width: auto;
  height: auto;
  place-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agenda-page .strip-date strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.agenda-page .strip-date span {
  color: #a866ff;
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.agenda-page .strip-main h3,
.strip-event strong,
.strip-place strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.agenda-page .strip-main p,
.strip-event span,
.strip-place span {
  display: block;
  margin-top: 5px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.strip-event span {
  color: #b77bff;
  font-weight: 700;
}

.agenda-page .event-strip.pending .strip-event span {
  color: #ffc733;
}

.agenda-page .strip-hour {
  justify-self: start;
  align-self: center;
  padding-top: 0;
  color: rgba(247, 247, 255, 0.92);
  font-size: 16px;
  font-weight: 800;
}

.agenda-page .strip-status .status {
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}

.agenda-page .strip-status .status.ok {
  color: #62ffac;
  border-color: rgba(54, 245, 155, 0.22);
  background: rgba(13, 112, 75, 0.28);
}

.agenda-page .strip-status .status.wait {
  color: #ffd94a;
  border-color: rgba(217, 170, 54, 0.32);
  background: rgba(217, 170, 54, 0.15);
}

.agenda-page .row-actions {
  justify-content: end;
  gap: 10px;
}

.agenda-page .row-actions a {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 44px;
  padding: 0 14px;
  border-color: rgba(102, 91, 214, 0.32);
  border-radius: 9px;
  color: #fff;
  background: rgba(14, 18, 44, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.agenda-page .row-actions a:last-child {
  min-width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(215, 216, 239, 0.86);
  font-size: 24px;
}

/* Phone layout: make the system feel like an app instead of stacked desktop panels. */
@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(75, 52, 216, 0.18), transparent 24rem),
      linear-gradient(180deg, #050814 0%, #03040c 100%);
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 12px;
    padding: 12px 12px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(102, 91, 214, 0.18);
    box-shadow: none;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
  }

  .brand-mark {
    font-size: 34px;
  }

  .brand-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .brand-name {
    font-size: 24px;
  }

  .nav-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 42px;
    max-height: 42px;
    gap: 0;
    padding: 8px 10px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  .nav-icon {
    display: none;
  }

  .nav-link span:last-child {
    font-size: 12px;
    line-height: 1.1;
  }

  .nav-group {
    flex: 0 0 auto;
    gap: 6px;
  }

  .nav-group-title {
    min-height: 42px;
    max-height: 42px;
  }

  .nav-submenu {
    display: none;
  }

  .nav-submenu a {
    min-height: 32px;
    padding: 8px 9px;
    font-size: 10px;
  }

  .main-content {
    width: 100%;
    padding: 16px 12px 28px;
  }

  .topbar {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  .topbar h1,
  .section-head h2,
  .contract-overview-main h2 {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.12;
  }

  .top-actions {
    gap: 8px;
  }

  .icon-button,
  .profile-button {
    width: 38px;
    height: 38px;
  }

  .hero {
    display: block;
    min-height: 178px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .hero::before,
  .particles,
  .dj-stage,
  .deck-focus,
  .equalizer {
    display: none;
  }

  .hero-bg {
    background-position: center 34%;
    background-size: cover;
    transform: none;
    animation: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 5, 14, 0.9), rgba(6, 7, 18, 0.52)),
      radial-gradient(circle at 88% 12%, rgba(255, 53, 212, 0.18), transparent 12rem);
  }

  .hero-copy {
    width: min(100%, 340px);
    margin: 0;
    padding: 22px 20px;
    text-align: left;
  }

  .hero-copy p {
    font-size: 24px;
  }

  .hero-copy h2 {
    margin: 6px 0 7px;
    font-size: 54px;
  }

  .hero-copy h2 small {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero-copy span {
    max-width: 280px;
    font-size: 15px;
    line-height: 1.25;
  }

  .page-panel,
  .agenda-panel,
  .contracts-panel,
  .clients-panel {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .metric-grid,
  .insight-grid,
  .contracts-page .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    margin: 0 0 16px;
  }

  .metric-card,
  .insight-card,
  .agenda-page .insight-card,
  .contracts-page .insight-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 16px;
  }

  .metric-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .metric-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .metric-card p,
  .insight-card span,
  .contracts-page .insight-card span {
    font-size: 12px;
    text-align: center;
  }

  .metric-card strong,
  .insight-card strong,
  .agenda-page .insight-card strong,
  .contracts-page .insight-card strong {
    font-size: clamp(26px, 8vw, 34px);
  }

  .metric-card small,
  .insight-card small,
  .agenda-page .insight-card small {
    font-size: 12px;
    line-height: 1.25;
  }

  .filters,
  .home-agenda-tools,
  .compact-filters,
  .agenda-list-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .agenda-list-actions {
    grid-template-columns: 1fr 1fr;
  }

  .agenda-list-actions label {
    grid-column: 1 / -1;
  }

  .filters input,
  .filters select,
  .premium-form input,
  .premium-form select,
  .premium-form textarea,
  .agenda-page .premium-form input,
  .agenda-page .premium-form select {
    min-height: 48px;
    font-size: 15px;
  }

  .premium-form,
  .agenda-form,
  .quick-client-form,
  .user-form,
  .detail-grid,
  .contract-data-grid,
  .table-row,
  .finance-row {
    grid-template-columns: 1fr !important;
  }

  .client-combo {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .quick-add-client {
    width: 52px;
    min-height: 52px;
  }

  .form-button,
  .small-action,
  .agenda-page .form-button,
  .agenda-page .small-action {
    width: 100%;
    min-height: 48px;
    font-size: 13px;
  }

  .timeline {
    gap: 12px;
    padding-left: 0;
  }

  .timeline::before,
  .event-card::before {
    display: none;
  }

  .event-card,
  .agenda-page .event-strip,
  .event-strip {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .event-card time,
  .strip-date,
  .agenda-page .strip-date {
    width: 58px;
    height: 62px;
    border-radius: 13px;
  }

  .event-card time strong,
  .strip-date strong,
  .agenda-page .strip-date strong {
    font-size: 28px;
  }

  .event-card time span,
  .strip-date span,
  .agenda-page .strip-date span {
    font-size: 11px;
  }

  .event-info,
  .strip-main {
    min-width: 0;
  }

  .event-info h3,
  .strip-main h3,
  .agenda-page .strip-main h3 {
    font-family: Inter, Arial, sans-serif !important;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
  }

  .event-info p,
  .strip-main p,
  .agenda-page .strip-main p {
    margin: 5px 0 8px;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
  }

  .event-hour,
  .agenda-page .strip-hour,
  .strip-hour {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    padding-top: 0;
    font-size: 18px;
    line-height: 1;
  }

  .event-card .status {
    grid-column: 2;
    justify-self: start;
  }

  .event-strip .row-actions,
  .agenda-page .event-strip .row-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }

  .row-actions a,
  .agenda-page .row-actions a {
    min-height: 38px;
    min-width: 96px;
    font-size: 12px;
  }

  .tag,
  .agenda-page .tag,
  .event-assignee {
    font-size: 12px;
    line-height: 1.25;
  }

  .new-event {
    min-height: 52px;
    margin-top: 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  .contract-list,
  .client-list {
    gap: 12px;
  }

  .contract-item,
  .client-item {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 12px;
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .contract-date,
  .compact-avatar {
    grid-column: 1;
    width: 58px;
    height: 58px;
  }

  .contract-main,
  .client-main {
    grid-column: 2;
  }

  .contract-main h3,
  .client-main h3 {
    font-size: 23px;
    line-height: 1.15;
    white-space: normal;
  }

  .contract-main p,
  .client-main p {
    font-size: 14px;
    line-height: 1.35;
  }

  .contract-meta {
    gap: 7px;
  }

  .contract-meta span {
    font-size: 12px;
    line-height: 1.2;
  }

  .contract-amount,
  .client-contact,
  .contract-actions,
  .client-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .contract-amount {
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
  }

  .contract-amount small {
    grid-column: 1;
  }

  .contract-amount strong {
    grid-column: 1;
    font-size: 30px;
  }

  .contract-amount .status {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .contract-actions,
  .client-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .client-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-actions a,
  .client-actions a {
    min-width: 0;
    width: 100%;
  }

  .contract-overview {
    gap: 16px;
  }

  .contract-overview-side {
    min-width: 0;
  }

  .contract-overview-side strong {
    font-size: 32px;
  }

  .contract-detail-topbar {
    margin-bottom: 14px;
  }

  .contract-detail-page {
    gap: 16px;
  }

  .contract-hero-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 20px;
    border-radius: 18px;
  }

  .contract-hero-main h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .contract-hero-main p {
    font-size: 16px;
  }

  .contract-created {
    margin-top: 6px;
    font-size: 13px;
  }

  .contract-hero-finance {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(179, 124, 255, 0.2);
    padding-top: 20px;
  }

  .contract-hero-finance > strong {
    font-size: clamp(34px, 11vw, 46px);
  }

  .contract-progress-head {
    font-size: 14px;
  }

  .contract-hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contract-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contract-info-card,
  .contract-client-card {
    padding: 18px;
    border-radius: 16px;
  }

  .contract-info-card h2,
  .contract-client-card h2 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .contract-info-card dl div {
    padding: 12px 0;
  }

  .contract-info-card dd,
  .client-contract-strip strong {
    font-size: 17px;
  }

  .contract-place-preview {
    min-height: 120px;
  }

  .client-contract-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .client-contract-strip div,
  .client-contract-strip div:first-child {
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(179, 124, 255, 0.14);
  }

  .client-contract-strip div:last-child {
    border-bottom: 0;
  }

  .contracts-page .insight-card strong {
    font-size: clamp(19px, 5.8vw, 24px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .contracts-page .insight-card {
    align-content: center;
  }

  .calendar-panel {
    padding: 14px;
  }

  .calendar-head {
    gap: 12px;
  }

  .calendar-head h2 {
    font-size: 34px;
  }

  .calendar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .calendar-actions .small-action {
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .calendar-weekday,
  .calendar-empty {
    display: block !important;
  }

  .calendar-weekday {
    padding: 0;
    color: rgba(215, 212, 239, 0.7);
    font-size: 10px;
    text-align: center;
  }

  .calendar-day {
    min-height: 54px !important;
    padding: 6px;
    border-radius: 10px;
  }

  .day-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 8px;
  }

  .calendar-events {
    gap: 3px;
    margin-top: 4px;
  }

  .calendar-event {
    padding: 3px 4px;
    border-radius: 6px;
  }

  .calendar-event strong {
    font-size: 9px;
  }

  .calendar-event span {
    display: none;
  }

  .calendar-events small {
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .metric-grid,
  .insight-grid,
  .contracts-page .insight-grid {
    grid-template-columns: 1fr !important;
  }

  .topbar h1,
  .section-head h2,
  .contract-overview-main h2 {
    font-size: 27px;
  }
}

@media (max-width: 1180px) {
  .agenda-page .agenda-hero {
    grid-template-columns: 1fr;
  }

  .agenda-hero-actions {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .agenda-page .agenda-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-table-head {
    display: none;
  }

  .agenda-page .event-strip {
    grid-template-columns: 76px minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(120px, auto);
  }

  .agenda-page .strip-place,
  .agenda-page .strip-status,
  .agenda-page .row-actions {
    grid-column: 2 / -1;
  }

  .agenda-page .strip-hour {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .agenda-page {
    gap: 16px;
  }

  .agenda-page .agenda-hero {
    gap: 14px;
  }

  .agenda-hero h2 {
    font-size: 32px;
  }

  .agenda-hero p {
    margin-top: 8px;
    font-size: 15px;
  }

  .agenda-hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agenda-page .agenda-metrics {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .agenda-page .agenda-metrics .insight-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 96px;
    padding: 16px;
  }

  .agenda-page .agenda-metrics .metric-symbol {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .agenda-tabs {
    display: grid;
    padding: 12px 12px 0;
  }

  .agenda-tab-list {
    gap: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .agenda-tab-list a {
    flex: 0 0 auto;
    min-height: 44px;
    font-size: 13px;
  }

  .agenda-view-link {
    justify-content: center;
    width: 100%;
  }

  .agenda-page .agenda-table-list {
    padding: 12px;
  }

  .agenda-page .event-strip {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .agenda-page .strip-date {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .agenda-page .strip-main,
  .agenda-page .strip-event,
  .agenda-page .strip-place,
  .agenda-page .strip-hour,
  .agenda-page .strip-status {
    grid-column: 2;
  }

  .agenda-page .row-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

/* Agenda card list: keeps the highlighted date tile from the original design. */
.agenda-page .agenda-card-board {
  padding: clamp(18px, 2.4vw, 30px);
  border-color: rgba(139, 67, 255, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 8%, rgba(155, 67, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 0%, rgba(36, 92, 255, 0.12), transparent 26rem),
    linear-gradient(150deg, rgba(15, 8, 35, 0.96), rgba(5, 6, 18, 0.94));
  box-shadow: 0 26px 84px rgba(0, 0, 0, 0.46), 0 0 34px rgba(76, 26, 130, 0.14);
}

.agenda-page .agenda-card-board::before {
  display: none;
}

.agenda-page .agenda-card-head {
  align-items: center;
  margin-bottom: 14px;
}

.agenda-page .agenda-card-head h2 {
  color: rgba(247, 247, 255, 0.94);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 850;
  line-height: 1.05;
}

.agenda-page .agenda-list-actions {
  width: min(100%, 520px);
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: stretch;
}

.agenda-page .agenda-list-actions input {
  height: 48px;
  border-color: rgba(139, 67, 255, 0.38);
  border-radius: 10px;
  background: rgba(8, 8, 24, 0.72);
}

.agenda-page .agenda-list-actions .small-action {
  min-height: 48px;
  border-radius: 9px;
}

.agenda-page .agenda-card-list {
  display: grid;
  gap: 12px;
  padding: 0;
}

.agenda-page .agenda-card-list .event-strip {
  --strip-accent: var(--violet);
  display: grid;
  grid-template-columns: 78px minmax(240px, 1fr) 90px minmax(250px, auto);
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--strip-accent), transparent 38%);
  border-radius: 12px;
  background:
    linear-gradient(100deg, rgba(14, 27, 43, 0.66), rgba(14, 9, 35, 0.94) 38%, rgba(5, 6, 18, 0.95)),
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--strip-accent), transparent 86%), transparent 22rem);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25), 0 0 14px color-mix(in srgb, var(--strip-accent), transparent 88%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.agenda-page .agenda-card-list .event-strip.confirmed {
  --strip-accent: var(--violet);
}

.agenda-page .agenda-card-list .event-strip.pending {
  --strip-accent: var(--gold);
}

.agenda-page .agenda-card-list .event-strip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--strip-accent), #fff 8%);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), 0 0 24px color-mix(in srgb, var(--strip-accent), transparent 78%);
}

.agenda-page .agenda-card-list .strip-date {
  display: grid;
  place-items: center;
  width: 58px;
  height: 62px;
  border: 1px solid rgba(244, 215, 120, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(145deg, #d9aa36, #9e1b67 54%, #4b34d8);
  box-shadow: 0 0 20px rgba(158, 27, 103, 0.26);
}

.agenda-page .agenda-card-list .strip-date strong {
  color: #fff;
  font-family: "Oswald", "Barlow Condensed", Inter, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.9;
}

.agenda-page .agenda-card-list .strip-date span {
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.agenda-page .agenda-card-list .strip-main h3 {
  color: rgba(255, 255, 255, 0.94);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
}

.agenda-page .agenda-card-list .strip-main p {
  margin: 4px 0;
  color: rgba(215, 212, 239, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.agenda-page .agenda-card-list .event-assignee {
  display: block;
  margin: 0 0 7px;
  color: #f4d778;
  font-size: 12px;
  font-weight: 800;
}

.agenda-page .agenda-card-list .pending-assignee {
  color: #f0d75f;
}

.agenda-page .agenda-card-list .tag {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
}

.agenda-page .agenda-card-list .strip-hour {
  justify-self: center;
  color: rgba(247, 247, 255, 0.92);
  font-size: 15px;
  font-weight: 850;
}

.agenda-page .agenda-card-list .row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.agenda-page .agenda-card-list .row-actions a {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(179, 124, 255, 0.26);
  border-radius: 9px;
  color: rgba(245, 241, 255, 0.9);
  background: linear-gradient(180deg, rgba(38, 23, 75, 0.78), rgba(16, 12, 38, 0.86));
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.agenda-page .agenda-card-list .row-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 215, 120, 0.42);
  background: linear-gradient(120deg, rgba(217, 170, 54, 0.36), rgba(158, 27, 103, 0.42), rgba(75, 52, 216, 0.62));
}

@media (max-width: 900px) {
  .agenda-page .agenda-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .agenda-page .agenda-list-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .agenda-page .agenda-list-actions label {
    grid-column: 1 / -1;
  }

  .agenda-page .agenda-card-list .event-strip {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
  }

  .agenda-page .agenda-card-list .strip-hour,
  .agenda-page .agenda-card-list .row-actions {
    grid-column: 2;
    justify-self: start;
  }

  .agenda-page .agenda-card-list .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .agenda-page .agenda-card-list .row-actions a {
    min-width: 0;
    flex: 1;
  }
}

/* Dashboard hero aligned with the contract screen palette. */
.dashboard-page-shell {
  width: min(100%, 1500px);
}

.dashboard-welcome {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-welcome h1 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.05;
}

.dashboard-welcome p {
  margin-top: 9px;
  color: rgba(215, 216, 239, 0.82);
  font-size: 16px;
  font-weight: 550;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 0.72fr) minmax(340px, 0.95fr);
  align-items: center;
  column-gap: clamp(18px, 3vw, 44px);
  margin-top: 8px;
  min-height: clamp(320px, 30vw, 420px);
  overflow: hidden;
  border-color: rgba(139, 67, 255, 0.46);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(15, 8, 35, 0.96), rgba(5, 6, 18, 0.94));
  box-shadow:
    0 0 0 1px rgba(217, 170, 54, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(155, 67, 255, 0.16);
}

.dashboard-hero::before {
  background: linear-gradient(90deg, var(--deep-magenta), var(--violet), var(--cyan), var(--gold));
  background-size: 220% 100%;
  opacity: 0.9;
}

.dashboard-hero .hero-bg {
  background-image: url("../images/controladora.jpg");
  background-position: center right;
  background-size: cover;
  filter: saturate(1.18) contrast(1.05) brightness(0.64);
  transform: none;
  animation: none;
}

.dashboard-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 18, 0.96) 0%, rgba(9, 7, 28, 0.86) 31%, rgba(8, 8, 24, 0.54) 62%, rgba(5, 6, 18, 0.28) 100%),
    radial-gradient(circle at 78% 28%, rgba(20, 216, 255, 0.22), transparent 16rem),
    radial-gradient(circle at 14% 18%, rgba(155, 67, 255, 0.22), transparent 18rem);
}

.dashboard-hero .particles,
.dashboard-hero .deck-focus {
  opacity: 0.55;
}

.dashboard-hero .dj-stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  left: auto;
  bottom: auto;
  width: min(100%, 390px);
  height: 390px;
  min-height: 0;
  overflow: hidden;
  align-self: end;
  justify-self: center;
  display: grid;
  place-items: start center;
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.58));
  z-index: 3;
  -webkit-mask-image: radial-gradient(ellipse at 50% 43%, #000 0 58%, rgba(0, 0, 0, 0.72) 70%, transparent 88%);
  mask-image: radial-gradient(ellipse at 50% 43%, #000 0 58%, rgba(0, 0, 0, 0.72) 70%, transparent 88%);
}

.dashboard-hero .dj-stage img {
  width: 490px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  transform: translate(2px, -38px);
  animation: none;
  opacity: 0.98;
}

.dashboard-hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 4;
  width: auto;
  max-width: 360px;
  margin: 0;
  padding: clamp(30px, 4vw, 54px) 0 clamp(30px, 4vw, 54px) clamp(34px, 5vw, 72px);
}

.dashboard-hero .hero-copy p {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 850;
  line-height: 1.05;
}

.dashboard-hero .hero-copy p strong {
  font-weight: 900;
  background: linear-gradient(100deg, var(--gold), #ff7a2f, var(--deep-magenta), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dashboard-hero .hero-copy span {
  display: block;
  max-width: 290px;
  margin-top: 24px;
  color: rgba(247, 247, 255, 0.82);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.45;
}

.hero-brand-lockup {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(30px, 4vw, 54px) clamp(34px, 5vw, 72px) clamp(30px, 4vw, 54px) 0;
}

.hero-brand-lockup small {
  display: block;
  color: #a866ff;
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-brand-lockup h2 {
  margin-top: 8px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 800;
  line-height: 0.82;
  background: linear-gradient(100deg, var(--gold) 0%, #ff8a22 24%, var(--deep-magenta) 52%, var(--violet) 74%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(155, 67, 255, 0.28));
}

.hero-brand-lockup span {
  display: block;
  max-width: 360px;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.22;
}

.hero-brand-lockup strong {
  color: var(--gold);
}

.hero-brand-lockup em {
  color: var(--cyan);
  font-style: normal;
}

.dashboard-hero .equalizer {
  left: auto;
  right: clamp(74px, 9vw, 150px);
  bottom: clamp(28px, 4vw, 46px);
  width: min(340px, 25vw);
  height: 34px;
}

.dashboard-page-shell .home-metrics {
  margin-top: 22px;
}

.dashboard-page-shell .home-metrics .metric-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 24px;
  border-color: rgba(139, 67, 255, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent), transparent 86%), transparent 16rem),
    linear-gradient(145deg, rgba(10, 13, 32, 0.92), rgba(5, 7, 20, 0.86));
  box-shadow: none;
  text-align: left;
}

.dashboard-page-shell .home-metrics .metric-card::after {
  display: none;
}

.dashboard-page-shell .home-metrics .metric-icon {
  width: 62px;
  height: 62px;
  border: 0;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 88%);
  box-shadow: none;
  font-size: 24px;
}

.dashboard-page-shell .home-metrics .metric-card p {
  color: rgba(215, 216, 239, 0.92);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 750;
  text-transform: none;
}

.dashboard-page-shell .home-metrics .metric-card strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 34px;
  font-weight: 850;
}

.dashboard-page-shell .home-metrics .metric-card small {
  display: block;
  color: color-mix(in srgb, var(--accent), #fff 24%);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-page-shell .agenda-panel {
  border-color: rgba(139, 67, 255, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 67, 255, 0.12), transparent 18rem),
    linear-gradient(150deg, rgba(15, 8, 35, 0.92), rgba(5, 6, 18, 0.9));
}

.dashboard-page-shell .agenda-panel .section-head {
  align-items: start;
}

.home-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 18px;
}

.home-event-tabs a {
  position: relative;
  color: rgba(215, 216, 239, 0.78);
  font-size: 16px;
  font-weight: 650;
}

.home-event-tabs a.active {
  color: #fff;
}

.home-event-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--deep-magenta));
}

.dashboard-page-shell .home-agenda-tools {
  grid-template-columns: minmax(260px, 1fr) 160px;
}

.dashboard-page-shell .home-agenda-tools input {
  border-radius: 10px;
  background: rgba(8, 10, 26, 0.62);
}

.dashboard-page-shell .calendar-shortcut {
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(69, 32, 138, 0.62), rgba(36, 22, 76, 0.9));
}

.dashboard-page-shell .timeline {
  gap: 10px;
  padding-left: 54px;
}

.dashboard-page-shell .timeline::before {
  left: 19px;
  top: 12px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--violet), var(--gold));
}

.dashboard-page-shell .event-card {
  grid-template-columns: 74px minmax(240px, 1fr) 92px 140px 64px;
  min-height: 86px;
  padding: 13px 18px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--event), transparent 90%), transparent 20rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.88), rgba(7, 8, 24, 0.92));
  box-shadow: none;
}

.dashboard-page-shell .event-card::after {
  display: none;
}

.dashboard-page-shell .event-card::before {
  left: -47px;
}

.dashboard-page-shell .event-card time {
  width: auto;
  height: auto;
  place-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page-shell .event-card time strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 850;
}

.dashboard-page-shell .event-card time span {
  color: #a866ff;
  font-size: 17px;
}

.dashboard-page-shell .event-info h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 850;
}

.dashboard-page-shell .event-info p {
  margin: 2px 0 4px;
  font-size: 13px;
}

.dashboard-page-shell .event-hour {
  font-size: 18px;
}

.dashboard-page-shell .event-action {
  min-width: 52px;
  height: 42px;
  border-radius: 8px;
  background: rgba(32, 24, 72, 0.78);
}

@media (max-width: 1160px) {
  .dashboard-hero {
    grid-template-columns: minmax(240px, 0.82fr) minmax(240px, 0.64fr) minmax(280px, 0.9fr);
    column-gap: 18px;
  }

  .dashboard-hero .hero-copy p {
    font-size: clamp(32px, 4vw, 46px);
  }

  .hero-brand-lockup h2 {
    font-size: clamp(64px, 8vw, 100px);
  }
}

@media (max-width: 860px) {
  .dashboard-welcome {
    align-items: flex-start;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dashboard-hero .hero-copy,
  .hero-brand-lockup {
    padding: 26px;
  }

  .hero-brand-lockup {
    padding-top: 0;
  }

  .dashboard-hero .dj-stage {
    grid-row: 2;
    justify-self: start;
    height: 300px;
  }

  .dashboard-hero .dj-stage img {
    width: 340px;
    transform: translateY(-28px);
  }

  .dashboard-hero .equalizer {
    display: none;
  }
}

@media (max-width: 560px) {
  .dashboard-welcome .top-actions {
    display: none;
  }

  .dashboard-hero .hero-copy p {
    font-size: 34px;
  }

  .hero-brand-lockup h2 {
    font-size: 70px;
  }
}

/* Dashboard hero v5: compact banner with portrait first and strong DJ FELPIZ lockup. */
.dashboard-hero {
  grid-template-columns: minmax(220px, 0.48fr) minmax(480px, 1fr);
  column-gap: clamp(18px, 3vw, 42px);
  min-height: clamp(250px, 24vw, 340px);
  max-height: 360px;
}

.dashboard-hero .hero-bg {
  background-position: center right;
  filter: saturate(1.22) contrast(1.08) brightness(0.58);
}

.dashboard-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 18, 0.94) 0%, rgba(6, 7, 20, 0.76) 35%, rgba(5, 6, 18, 0.18) 100%),
    radial-gradient(circle at 21% 50%, rgba(155, 67, 255, 0.18), transparent 14rem),
    radial-gradient(circle at 82% 30%, rgba(20, 216, 255, 0.2), transparent 16rem);
}

.dashboard-hero .dj-stage {
  grid-column: 1;
  grid-row: 1;
  width: clamp(190px, 22vw, 290px);
  height: clamp(210px, 23vw, 300px);
  align-self: center;
  justify-self: center;
  overflow: hidden;
  place-items: start center;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.55));
  border-radius: 18px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0 48%, rgba(0, 0, 0, 0.88) 62%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 0 48%, rgba(0, 0, 0, 0.88) 62%, transparent 82%);
}

.dashboard-hero .dj-stage::before {
  display: none;
}

.dashboard-hero .dj-stage img {
  width: clamp(270px, 31vw, 420px);
  max-width: none;
  transform: translate(-4px, -56px);
  object-fit: contain;
  opacity: 1;
}

.dashboard-hero .hero-copy {
  grid-column: 2;
  grid-row: 1;
  max-width: 680px;
  padding: clamp(28px, 4vw, 50px) clamp(28px, 5vw, 76px) clamp(28px, 4vw, 50px) 0;
}

.dashboard-hero .hero-copy p {
  color: #fff;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 850;
  line-height: 0.95;
}

.dashboard-hero .hero-copy h2 {
  margin: 4px 0 12px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(72px, 8.8vw, 132px);
  font-weight: 800;
  line-height: 0.86;
  background: linear-gradient(100deg, var(--gold) 0%, #ff8a22 24%, var(--deep-magenta) 52%, var(--violet) 76%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(155, 67, 255, 0.26));
}

.dashboard-hero .hero-copy > span {
  display: block;
  max-width: 350px;
  color: rgba(247, 247, 255, 0.88);
  font-size: clamp(16px, 1.65vw, 23px);
  font-weight: 750;
  line-height: 1.22;
}

.dashboard-hero .hero-copy > span strong {
  color: var(--gold);
}

.dashboard-hero .hero-copy > span em {
  color: var(--cyan);
  font-style: normal;
}

.dashboard-hero .hero-brand-lockup {
  display: none;
}

.dashboard-hero .equalizer {
  left: auto;
  right: clamp(150px, 16vw, 240px);
  bottom: 22px;
  width: min(330px, 25vw);
  height: 28px;
  opacity: 0.88;
}

@media (max-width: 900px) {
  .dashboard-hero {
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 250px;
  }

  .dashboard-hero .dj-stage {
    width: 180px;
    height: 240px;
  }

  .dashboard-hero .dj-stage img {
    width: 330px;
    transform: translate(-6px, -48px);
  }

  .dashboard-hero .hero-copy {
    padding: 26px 22px 26px 0;
  }

  .dashboard-hero .hero-copy h2 {
    font-size: clamp(54px, 10vw, 80px);
  }
}

@media (max-width: 620px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }

  .dashboard-hero .dj-stage {
    justify-self: start;
    margin-left: 18px;
    height: 166px;
    width: 160px;
  }

  .dashboard-hero .dj-stage::before {
    width: 150px;
  }

  .dashboard-hero .dj-stage img {
    width: 245px;
    transform: translate(-8px, -38px);
  }

  .dashboard-hero .hero-copy {
    grid-column: 1;
    padding: 0 22px 24px;
  }

  .dashboard-hero .hero-copy p {
    font-size: 30px;
  }

  .dashboard-hero .hero-copy h2 {
    font-size: 58px;
  }

  .dashboard-hero .equalizer {
    display: none;
  }
}

/* Global UI system: same visual language as the approved dashboard. */
.main-content {
  width: min(100%, 1500px);
}

.page-panel,
.agenda-panel,
.contracts-panel,
.clients-panel,
.calendar-panel,
.report-panel,
.contract-form-panel,
.agenda-form-panel,
.contract-installments-panel,
.contract-info-card,
.contract-client-card,
.contract-hero-panel,
.quick-modal,
.login-panel {
  border: 1px solid rgba(139, 67, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 67, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 86% 6%, rgba(20, 216, 255, 0.06), transparent 18rem),
    linear-gradient(150deg, rgba(15, 8, 35, 0.94), rgba(5, 6, 18, 0.92));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.section-head h2,
.topbar h1,
.calendar-head h2,
.contract-hero-main h1 {
  color: rgba(247, 247, 255, 0.95);
  font-family: Inter, Arial, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.topbar {
  margin-bottom: 24px;
}

.topbar h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.eyebrow {
  color: #a866ff;
  letter-spacing: 0.08em;
}

.insight-grid {
  gap: 18px;
}

.insight-card {
  --card-accent: var(--violet);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  place-items: initial;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 24px;
  border: 1px solid rgba(139, 67, 255, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--card-accent), transparent 84%), transparent 16rem),
    linear-gradient(145deg, rgba(10, 13, 32, 0.92), rgba(5, 7, 20, 0.86));
  box-shadow: none;
  text-align: left;
}

.insight-card::before {
  content: "";
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--card-accent), transparent 58%) 0 3px, transparent 4px),
    color-mix(in srgb, var(--card-accent), transparent 88%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent), transparent 78%);
}

.insight-card.gold { --card-accent: var(--gold); }
.insight-card.violet { --card-accent: var(--violet); }
.insight-card.wine { --card-accent: var(--deep-magenta); }
.insight-card.blue { --card-accent: var(--cyan); }
.insight-card.green { --card-accent: #36f59b; }

.insight-card span,
.insight-card small {
  color: rgba(215, 216, 239, 0.9);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.insight-card strong {
  margin: 5px 0 3px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 850;
}

.insight-card small {
  color: color-mix(in srgb, var(--card-accent), #fff 24%);
  font-size: 13px;
}

.agenda-page .agenda-metrics .insight-card::before,
.dashboard-page-shell .home-metrics .metric-card::before {
  display: none;
}

.agenda-page .agenda-metrics .insight-card {
  grid-template-columns: 70px minmax(0, 1fr);
}

.small-action,
.form-button,
.pdf-button,
.event-action,
.row-actions a,
.contract-actions a,
.client-actions a {
  border: 1px solid rgba(179, 124, 255, 0.28);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, rgba(42, 24, 84, 0.82), rgba(17, 12, 40, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.small-action:hover,
.form-button:hover,
.event-action:hover,
.row-actions a:hover,
.contract-actions a:hover,
.client-actions a:hover {
  border-color: rgba(244, 215, 120, 0.42);
  background: linear-gradient(120deg, rgba(217, 170, 54, 0.38), rgba(158, 27, 103, 0.44), rgba(75, 52, 216, 0.66));
  box-shadow: 0 0 20px rgba(155, 67, 255, 0.22);
}

.premium-form input,
.premium-form select,
.premium-form textarea,
.filters input,
.filters select {
  border-color: rgba(139, 67, 255, 0.34);
  border-radius: 10px;
  background: rgba(8, 10, 26, 0.66);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus,
.filters input:focus,
.filters select:focus {
  border-color: rgba(20, 216, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.1), 0 0 24px rgba(155, 67, 255, 0.16);
}

.table-row,
.finance-row,
.report-row,
.contract-item,
.client-item,
.agenda-page .agenda-card-list .event-strip {
  border-color: rgba(139, 67, 255, 0.38);
  border-radius: 11px;
  background:
    radial-gradient(circle at 0% 50%, rgba(155, 67, 255, 0.08), transparent 20rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.9), rgba(7, 8, 24, 0.92));
  box-shadow: none;
}

.contract-item:hover,
.client-item:hover,
.table-row:hover,
.agenda-page .agenda-card-list .event-strip:hover {
  transform: translateY(-1px);
  border-color: rgba(179, 124, 255, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 22px rgba(155, 67, 255, 0.18);
}

.contract-date,
.strip-date,
.compact-avatar,
.client-avatar {
  border: 1px solid rgba(244, 215, 120, 0.24);
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(145deg, #d9aa36, #9e1b67 54%, #4b34d8);
  box-shadow: 0 0 20px rgba(158, 27, 103, 0.22);
}

.status.ok {
  color: #62ffac;
  border-color: rgba(54, 245, 155, 0.28);
  background: rgba(13, 112, 75, 0.22);
}

.status.wait,
.status.partial {
  color: #ffd94a;
  border-color: rgba(217, 170, 54, 0.32);
  background: rgba(217, 170, 54, 0.15);
}

.status.no {
  color: #ffb5c8;
  border-color: rgba(255, 95, 125, 0.3);
  background: rgba(255, 95, 125, 0.12);
}

.tag.contract,
.tag.info {
  color: #d9b7ff;
  border-color: rgba(179, 124, 255, 0.38);
  background: rgba(75, 52, 216, 0.18);
}

.tag.checklist {
  color: #ffd94a;
  border-color: rgba(217, 170, 54, 0.42);
  background: rgba(217, 170, 54, 0.14);
}

.calendar-day {
  border-color: rgba(139, 67, 255, 0.25);
  background: rgba(8, 10, 26, 0.58);
}

.calendar-day.has-events {
  border-color: rgba(179, 124, 255, 0.48);
  background:
    radial-gradient(circle at 0% 0%, rgba(155, 67, 255, 0.14), transparent 12rem),
    rgba(8, 10, 26, 0.72);
}

.calendar-event {
  border-color: rgba(179, 124, 255, 0.26);
  background: rgba(42, 24, 84, 0.5);
}

.login-panel {
  border-radius: 18px;
}

@media (max-width: 700px) {
  .insight-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 96px;
    padding: 16px;
  }

  .insight-card::before {
    width: 48px;
    height: 48px;
  }

  .section-head h2,
  .topbar h1 {
    font-size: clamp(26px, 8vw, 36px);
  }
}

/* Final list/card unification pass: dashboard-style rows everywhere. */
.insight-card {
  grid-template-columns: 70px minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto;
  align-content: center;
  overflow: hidden;
}

.insight-card::before {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
}

.insight-card > span,
.insight-card > strong,
.insight-card > small {
  grid-column: 2;
  min-width: 0;
  text-align: left;
}

.insight-card > span {
  align-self: end;
}

.insight-card > strong {
  align-self: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2.25vw, 34px) !important;
  line-height: 1.02;
}

.insight-card > small {
  align-self: start;
}

.contracts-page .insight-card strong,
.finance-grid .insight-card strong,
.reports-metrics .insight-card strong {
  font-size: clamp(21px, 2vw, 30px) !important;
}

.contracts-page,
.clients-page {
  display: grid;
  gap: 22px;
}

.contract-list,
.client-list,
.report-list,
.finance-list {
  display: grid;
  gap: 10px;
}

.contract-item {
  display: grid;
  grid-template-columns: 74px minmax(260px, 1fr) minmax(150px, auto) 132px minmax(190px, auto);
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 13px 16px;
}

.client-item {
  display: grid;
  grid-template-columns: 74px minmax(280px, 1fr) minmax(230px, 0.8fr) minmax(150px, auto);
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 13px 16px;
}

.table-row.report-row,
.table-row.finance-row {
  min-height: 76px;
  padding: 14px 16px;
}

.contract-date,
.compact-avatar {
  width: 58px;
  height: 62px;
  border-radius: 10px;
}

.contract-date strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 850;
}

.contract-date span {
  font-size: 11px;
  font-weight: 850;
}

.contract-main h3,
.client-main h3 {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.14;
}

.contract-main p,
.client-main p {
  margin-top: 4px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
}

.contract-number,
.client-number {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
}

.contract-meta {
  gap: 7px;
  margin-top: 8px;
}

.contract-meta span,
.client-contact span,
.client-contact small {
  border: 1px solid rgba(179, 124, 255, 0.22);
  border-radius: 7px;
  color: rgba(215, 216, 239, 0.82);
  background: rgba(42, 24, 84, 0.32);
  font-size: 11px;
  font-weight: 750;
}

.contract-amount {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.contract-amount small {
  color: rgba(215, 216, 239, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.contract-amount strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.contract-amount .status {
  margin-top: 3px;
}

.contract-actions,
.client-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.contract-actions a,
.client-actions a {
  min-width: 58px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.contracts-panel .section-head,
.clients-panel .section-head,
.report-panel .section-head,
.page-panel .section-head {
  align-items: center;
}

.contracts-panel .small-action,
.clients-panel .small-action {
  min-height: 44px;
  padding: 0 18px;
}

@media (max-width: 1180px) {
  .contract-item {
    grid-template-columns: 74px minmax(220px, 1fr) minmax(130px, auto);
  }

  .contract-amount,
  .contract-actions {
    grid-column: 2 / -1;
    justify-self: start;
    justify-items: start;
  }

  .client-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .client-contact,
  .client-actions {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .insight-card {
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  .contract-item,
  .client-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .contract-date,
  .compact-avatar {
    width: 56px;
    height: 58px;
  }

  .contract-main h3,
  .client-main h3 {
    font-size: 19px;
  }

  .contract-amount,
  .contract-actions,
  .client-contact,
  .client-actions {
    grid-column: 1 / -1;
  }

  .contract-actions,
  .client-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .client-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Agenda screen pass: dashboard-sized metrics and table-style event list. */
.agenda-page {
  display: grid;
  gap: 22px;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.agenda-page .agenda-hero {
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.82fr);
  gap: 22px;
  align-items: end;
  width: 100%;
}

.agenda-page .agenda-hero h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
}

.agenda-page .agenda-hero p {
  margin-top: 10px;
  color: rgba(247, 247, 255, 0.86);
  font-weight: 700;
}

.agenda-page .agenda-hero-actions {
  grid-template-columns: minmax(260px, 1fr) 170px;
}

.agenda-page .agenda-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.agenda-page .agenda-metrics .insight-card {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 12px;
  text-align: left;
  place-items: initial;
  align-items: center;
}

.agenda-page .agenda-metrics .metric-symbol {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  width: 50px;
  height: 50px;
  font-size: 19px;
}

.agenda-page .agenda-metrics .insight-card > div {
  grid-column: 2;
  display: grid;
  justify-items: start;
  text-align: left;
}

.agenda-page .agenda-metrics .insight-card strong {
  font-size: 28px !important;
  margin: 3px 0 2px;
}

.agenda-page .agenda-metrics .insight-card span:not(.metric-symbol) {
  font-size: 13px;
}

.agenda-page .agenda-metrics .insight-card small {
  font-size: 12px;
  line-height: 1.15;
}

.agenda-page .agenda-table-board {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.agenda-page .agenda-table-board::before {
  display: none;
}

.agenda-page .agenda-table-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 0;
  border-bottom: 1px solid rgba(139, 67, 255, 0.22);
}

.agenda-page .agenda-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.agenda-page .agenda-tab-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  color: rgba(215, 216, 239, 0.8);
  font-weight: 800;
}

.agenda-page .agenda-tab-list a.active {
  color: #fff;
}

.agenda-page .agenda-tab-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--violet), var(--deep-magenta));
  box-shadow: 0 0 18px rgba(155, 67, 255, 0.48);
}

.agenda-page .agenda-tab-list span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(217, 170, 54, 0.46);
  border-radius: 7px;
  color: #ffd94a;
  background: rgba(217, 170, 54, 0.13);
  font-size: 12px;
}

.agenda-view-toggle {
  display: flex;
  gap: 8px;
}

.agenda-view-toggle a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 67, 255, 0.26);
  border-radius: 9px;
  color: rgba(215, 216, 239, 0.86);
  background: rgba(8, 10, 26, 0.55);
  font-weight: 800;
}

.agenda-view-toggle a.active {
  color: #fff;
  background: rgba(42, 24, 84, 0.78);
}

.agenda-column-head,
.agenda-page .agenda-table-list .event-strip {
  display: grid;
  grid-template-columns: 82px minmax(150px, 1fr) minmax(150px, 1fr) minmax(160px, 1fr) 90px 136px 194px;
  gap: 18px;
  align-items: center;
}

.agenda-column-head {
  padding: 24px 20px 10px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  text-align: center;
}

.agenda-column-head span {
  position: relative;
  justify-self: center;
  width: fit-content;
}

.agenda-column-head span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-magenta), var(--cyan));
  transform: translateX(-50%);
}

.agenda-page .agenda-table-list {
  display: grid;
  gap: 8px;
  padding: 8px 20px 24px;
}

.agenda-page .agenda-table-list .event-strip {
  min-height: 86px;
  padding: 13px 16px;
  border-color: rgba(139, 67, 255, 0.36);
  border-radius: 11px;
  background:
    radial-gradient(circle at 0% 50%, rgba(155, 67, 255, 0.08), transparent 20rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.9), rgba(7, 8, 24, 0.92));
  box-shadow: none;
}

.agenda-page .agenda-table-list .strip-date {
  width: auto;
  height: auto;
  place-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agenda-page .agenda-table-list .strip-date strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.agenda-page .agenda-table-list .strip-date span {
  color: #a866ff;
  font-size: 16px;
  font-weight: 850;
}

.agenda-page .agenda-table-list h3,
.agenda-page .agenda-table-list .strip-event strong,
.agenda-page .agenda-table-list .strip-place strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 850;
}

.agenda-page .agenda-table-list p,
.agenda-page .agenda-table-list .strip-event span,
.agenda-page .agenda-table-list .strip-place span {
  display: block;
  margin-top: 4px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
}

.agenda-page .agenda-table-list .strip-event span {
  color: #b77bff;
  font-weight: 750;
}

.agenda-page .agenda-table-list .event-strip.pending .strip-event span {
  color: #ffd94a;
}

.agenda-page .agenda-table-list .strip-hour {
  color: rgba(247, 247, 255, 0.92);
  font-size: 16px;
  font-weight: 850;
}

.agenda-page .agenda-table-list .strip-status .status {
  width: fit-content;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
}

.agenda-page .agenda-table-list .row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.agenda-page .agenda-table-list .row-actions a {
  min-width: 62px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(179, 124, 255, 0.28) !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: linear-gradient(180deg, rgba(42, 24, 84, 0.82), rgba(17, 12, 40, 0.88)) !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.agenda-page .agenda-table-list .row-actions a:last-child {
  min-width: 78px;
  padding: 0 12px;
  border: 1px solid rgba(179, 124, 255, 0.28) !important;
  background: linear-gradient(180deg, rgba(42, 24, 84, 0.82), rgba(17, 12, 40, 0.88)) !important;
  color: #fff !important;
  font-size: 12px;
}

.agenda-page .agenda-table-list .row-actions a:hover {
  border-color: rgba(244, 215, 120, 0.42) !important;
  background: linear-gradient(120deg, rgba(217, 170, 54, 0.38), rgba(158, 27, 103, 0.44), rgba(75, 52, 216, 0.66)) !important;
}

@media (max-width: 1180px) {
  .agenda-page .agenda-hero,
  .agenda-page .agenda-hero-actions {
    grid-template-columns: 1fr;
  }

  .agenda-page .agenda-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-column-head {
    display: none;
  }

  .agenda-page .agenda-table-list .event-strip {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .agenda-page .agenda-table-list .strip-event,
  .agenda-page .agenda-table-list .strip-place,
  .agenda-page .agenda-table-list .strip-status,
  .agenda-page .agenda-table-list .row-actions {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .agenda-page .agenda-metrics {
    grid-template-columns: 1fr !important;
  }

  .agenda-page .agenda-table-tabs {
    display: grid;
  }

  .agenda-page .agenda-tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
  }

  .agenda-page .agenda-tab-list a {
    flex: 0 0 auto;
  }

  .agenda-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .agenda-page .agenda-table-list {
    padding: 12px;
  }

  .agenda-page .agenda-table-list .event-strip {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .agenda-page .agenda-table-list .strip-hour,
  .agenda-page .agenda-table-list .strip-event,
  .agenda-page .agenda-table-list .strip-place,
  .agenda-page .agenda-table-list .strip-status {
    grid-column: 2;
  }

  .agenda-page .agenda-table-list .row-actions {
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
  }
}

/* Contracts screen pass: same metrics and table rhythm as Agenda. */
.contracts-page {
  width: min(100%, 1320px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.contracts-page .contracts-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.contracts-page .contracts-metrics .insight-card {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  min-height: 104px;
  padding: 16px 18px;
  align-items: center;
}

.contracts-page .contracts-metrics .insight-card::before {
  width: 50px;
  height: 50px;
}

.contracts-page .contracts-metrics .insight-card strong {
  font-size: clamp(23px, 2.2vw, 30px) !important;
  margin: 3px 0 2px;
  white-space: normal;
}

.contracts-page .contracts-metrics .insight-card span {
  font-size: 13px;
}

.contracts-page .contracts-metrics .insight-card small {
  font-size: 12px;
}

.contracts-page .contracts-panel {
  padding: 0;
  overflow: hidden;
}

.contracts-page .contract-tabs {
  margin-bottom: 0;
  padding: 14px 18px 0;
  border-bottom-color: rgba(139, 67, 255, 0.22);
}

.contracts-page .contract-tab-list {
  gap: 24px;
}

.contracts-page .contract-tab-list a {
  min-height: 52px;
}

.contracts-page .contract-primary-action {
  align-self: center;
  min-width: 150px;
  justify-content: center;
}

.contracts-list-actions > div:empty {
  display: none;
}

.contract-column-head,
.contracts-page .contract-item {
  display: grid;
  grid-template-columns: 82px minmax(180px, 1fr) minmax(190px, 1fr) minmax(190px, 0.95fr) 130px 188px;
  gap: 18px;
  align-items: center;
}

.contract-column-head {
  padding: 24px 20px 10px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.contract-column-head span {
  position: relative;
  justify-self: center;
  width: fit-content;
}

.contract-column-head span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-magenta), var(--cyan));
  transform: translateX(-50%);
}

.contracts-page .contract-list {
  gap: 8px;
  padding: 8px 20px 24px;
}

.contracts-page .contract-item {
  min-height: 86px;
  padding: 13px 16px;
  border-color: rgba(139, 67, 255, 0.36);
  border-radius: 11px;
}

.contracts-page .contract-date {
  width: auto;
  height: auto;
  place-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contracts-page .contract-date strong {
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.contracts-page .contract-date span {
  color: #a866ff;
  font-size: 14px;
  font-weight: 850;
}

.contracts-page .contract-main h3 {
  font-size: 16px;
}

.contracts-page .contract-main p,
.contracts-page .contract-service span,
.contracts-page .contract-amount span {
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
}

.contracts-page .contract-number {
  color: var(--cyan);
}

.contracts-page .contract-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.contracts-page .contract-meta span {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(215, 216, 239, 0.78);
}

.contracts-page .contract-amount {
  justify-items: start;
  gap: 4px;
}

.contracts-page .contract-amount small {
  color: rgba(215, 216, 239, 0.64);
  font-size: 11px;
  font-weight: 850;
}

.contracts-page .contract-amount strong {
  font-size: clamp(20px, 1.8vw, 27px);
}

.contracts-page .contract-status .status {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
}

.contracts-page .contract-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.contracts-page .contract-actions a {
  min-width: 56px;
  min-height: 36px;
  padding: 0 12px;
}

@media (max-width: 1180px) {
  .contracts-page .contracts-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-column-head {
    display: none;
  }

  .contracts-page .contract-item {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .contracts-page .contract-service,
  .contracts-page .contract-amount,
  .contracts-page .contract-status,
  .contracts-page .contract-actions {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .contracts-page .contracts-metrics {
    grid-template-columns: 1fr !important;
  }

  .contracts-page .contracts-panel {
    padding: 16px;
  }

  .contracts-page .contract-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .contracts-page .contract-service,
  .contracts-page .contract-amount,
  .contracts-page .contract-status,
  .contracts-page .contract-actions {
    grid-column: 1 / -1;
  }

  .contracts-page .contract-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
}

/* Clients CRM pass: same premium rhythm as Agenda, with denser relationship data. */
.crm-page {
  display: grid;
  gap: 22px;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.crm-page .clients-hero {
  grid-template-columns: minmax(280px, 1fr) minmax(430px, 0.82fr);
  gap: 22px;
  align-items: end;
  width: 100%;
}

.crm-page .clients-hero h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
}

.crm-page .clients-hero p {
  margin-top: 10px;
  color: rgba(247, 247, 255, 0.86);
  font-weight: 700;
}

.crm-page .clients-hero-actions {
  grid-template-columns: minmax(260px, 1fr) 170px;
}

.crm-page .clients-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.crm-page .clients-metrics .insight-card {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 12px;
  align-items: center;
}

.crm-page .clients-metrics .insight-card::before {
  display: none;
}

.crm-page .clients-metrics .metric-symbol {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid color-mix(in srgb, var(--card-accent), transparent 42%);
  border-radius: 50%;
  color: color-mix(in srgb, var(--card-accent), #fff 18%);
  background: color-mix(in srgb, var(--card-accent), transparent 88%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent), transparent 78%);
  font-size: 19px;
  font-weight: 850;
}

.crm-page .clients-metrics .insight-card > div {
  grid-column: 2;
  display: grid;
  justify-items: start;
  text-align: left;
}

.crm-page .clients-metrics .insight-card strong {
  margin: 3px 0 2px;
  font-size: clamp(23px, 2.2vw, 30px) !important;
  white-space: normal;
}

.crm-page .clients-metrics .insight-card span:not(.metric-symbol) {
  font-size: 13px;
}

.crm-page .clients-metrics .insight-card small {
  font-size: 12px;
}

.crm-board {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.crm-board::before {
  display: none;
}

.clients-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 0;
  border-bottom: 1px solid rgba(139, 67, 255, 0.22);
}

.client-column-head,
.crm-client-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, 0.95fr) 92px minmax(145px, 0.82fr) minmax(155px, 1fr) 116px 210px;
  gap: 18px;
  align-items: center;
}

.client-column-head {
  padding: 24px 20px 10px;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.client-column-head span {
  position: relative;
  justify-self: center;
  width: fit-content;
}

.client-column-head span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep-magenta), var(--cyan));
  transform: translateX(-50%);
}

.crm-client-list {
  display: grid;
  gap: 8px;
  padding: 8px 20px 24px;
}

.crm-client-row {
  min-height: 86px;
  padding: 13px 16px;
  border-color: rgba(139, 67, 255, 0.36);
  border-radius: 11px;
  background:
    radial-gradient(circle at 0% 50%, rgba(155, 67, 255, 0.08), transparent 20rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.9), rgba(7, 8, 24, 0.92));
  box-shadow: none;
}

.crm-client-row[hidden] {
  display: none;
}

.client-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.crm-client-row .compact-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(179, 124, 255, 0.44);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(155, 67, 255, 0.84), rgba(44, 20, 86, 0.88));
  box-shadow: 0 0 18px rgba(155, 67, 255, 0.26);
  font-family: Inter, Arial, sans-serif;
  font-size: 19px;
  font-weight: 850;
}

.crm-client-row .client-number {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
}

.crm-client-row .client-main h3,
.client-last-event strong {
  overflow: hidden;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-client-row .client-main p,
.crm-client-row .client-contact small,
.client-events span,
.client-revenue span,
.client-last-event span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(215, 216, 239, 0.72);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-client-row .client-contact {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.crm-client-row .client-contact span,
.client-events strong,
.client-revenue strong {
  color: rgba(247, 247, 255, 0.94);
  font-size: 15px;
  font-weight: 850;
}

.client-events,
.client-revenue,
.client-last-event,
.client-status {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-events strong {
  font-size: 22px;
  line-height: 1;
}

.client-events a {
  width: fit-content;
  color: #b77bff;
  font-size: 12px;
  font-weight: 850;
}

.client-revenue strong {
  white-space: nowrap;
}

.client-status .status {
  width: fit-content;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
}

.client-status small {
  width: fit-content;
  color: #ffd94a;
  font-size: 11px;
  font-weight: 850;
}

.crm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.crm-actions a {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.crm-actions a.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .crm-page .clients-hero,
  .crm-page .clients-hero-actions {
    grid-template-columns: 1fr;
  }

  .crm-page .clients-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-column-head {
    display: none;
  }

  .crm-client-row {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.7fr) auto;
  }

  .client-events,
  .client-revenue,
  .client-last-event,
  .client-status,
  .crm-actions {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .crm-page .clients-metrics {
    grid-template-columns: 1fr !important;
  }

  .clients-tabs {
    display: grid;
  }

  .clients-tabs .agenda-tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
  }

  .clients-tabs .agenda-tab-list a {
    flex: 0 0 auto;
  }

  .crm-client-list {
    padding: 12px;
  }

  .crm-client-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .client-events,
  .client-revenue,
  .client-last-event,
  .client-status,
  .crm-actions {
    grid-column: 1;
  }

  .crm-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
}

/* Client page compatibility: keep the pre-CRM list readable if an older template is rendered. */
.clients-page:not(.crm-page) .client-contact span,
.clients-page:not(.crm-page) .client-contact small {
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: rgba(215, 216, 239, 0.74);
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clients-page:not(.crm-page) .client-contact span {
  color: rgba(247, 247, 255, 0.92);
  font-size: 14px;
  font-weight: 850;
}

/* Contract builder */
.contract-builder-page {
  display: grid;
  gap: 22px;
  width: min(100%, 1160px);
}

.contract-builder-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(139, 67, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 216, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 100% 0%, rgba(155, 67, 255, 0.16), transparent 28rem),
    linear-gradient(115deg, rgba(10, 14, 35, 0.92), rgba(11, 7, 27, 0.9));
}

.contract-builder-hero h2 {
  margin-top: 6px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 850;
  line-height: 1.05;
}

.contract-builder-hero p {
  margin-top: 10px;
  max-width: 620px;
  color: rgba(215, 216, 239, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.contract-builder-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contract-builder-form .form-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(139, 67, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(155, 67, 255, 0.07), transparent 22rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.88), rgba(7, 8, 24, 0.92));
}

.contract-builder-form .form-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contract-builder-form .form-section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 215, 120, 0.34);
  border-radius: 10px;
  color: #ffd94a;
  background: rgba(217, 170, 54, 0.11);
  font-size: 13px;
  font-weight: 900;
}

.contract-builder-form .form-section-head h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
}

.contract-builder-form .form-section-head p {
  margin-top: 3px;
  color: rgba(215, 216, 239, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.contract-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.contract-choice-grid label,
.money-grid label,
.contract-notes-section label {
  min-width: 0;
}

.contract-choice-grid .field-event,
.contract-choice-grid .field-client,
.contract-choice-grid .field-type {
  grid-column: span 2;
}

.contract-choice-grid .field-service {
  grid-column: span 4;
}

.contract-choice-grid .field-date,
.contract-choice-grid .field-duration {
  grid-column: span 1;
}

.contract-choice-grid .field-contractor {
  grid-column: span 4;
}

.contract-builder-form label {
  color: rgba(215, 216, 239, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.contract-builder-form input,
.contract-builder-form select,
.contract-builder-form textarea {
  min-height: 52px;
  border-color: rgba(139, 67, 255, 0.42);
  border-radius: 10px;
  background: rgba(6, 8, 24, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.contract-builder-form textarea {
  min-height: 124px;
}

.contract-builder-form .select-field select {
  padding-right: 40px;
  border-color: rgba(20, 216, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 216, 255, 0.08), transparent 38%),
    rgba(6, 8, 24, 0.78);
}

.contract-builder-form .select-field select:focus {
  border-color: rgba(20, 216, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.1), 0 0 24px rgba(155, 67, 255, 0.18);
}

.contract-builder-form .featured-field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contract-builder-form .featured-field select {
  min-height: 58px;
  border-color: rgba(244, 215, 120, 0.42);
  background:
    linear-gradient(135deg, rgba(217, 170, 54, 0.14), transparent 40%),
    rgba(6, 8, 24, 0.78);
  font-size: 17px;
}

.money-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.45fr) minmax(160px, 0.34fr);
  gap: 14px;
}

.contract-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  padding: 14px 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 16, 0.92) 32%);
}

.contract-form-actions .form-button {
  min-width: 170px;
}

.contract-form-actions .pdf-button {
  border-color: rgba(139, 67, 255, 0.42);
  background: linear-gradient(180deg, rgba(42, 24, 84, 0.82), rgba(17, 12, 40, 0.9));
}

.whatsapp-button {
  border-color: rgba(56, 213, 112, 0.42);
  background: linear-gradient(180deg, rgba(21, 105, 55, 0.86), rgba(9, 44, 29, 0.92));
}

@media (max-width: 920px) {
  .contract-builder-hero {
    display: grid;
  }

  .contract-choice-grid,
  .money-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contract-choice-grid .field-event,
  .contract-choice-grid .field-client,
  .contract-choice-grid .field-type,
  .contract-choice-grid .field-service,
  .contract-choice-grid .field-date,
  .contract-choice-grid .field-duration,
  .contract-choice-grid .field-contractor {
    grid-column: auto;
  }

  .contract-choice-grid .field-service,
  .contract-choice-grid .field-contractor {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .contract-builder-hero,
  .contract-builder-form .form-section {
    padding: 18px;
  }

  .contract-choice-grid,
  .money-grid {
    grid-template-columns: 1fr;
  }

  .contract-choice-grid .field-service,
  .contract-choice-grid .field-contractor {
    grid-column: auto;
  }

  .contract-form-actions {
    display: grid;
  }

  .contract-form-actions .form-button {
    width: 100%;
  }
}

/* Event builder */
.event-builder-page {
  display: grid;
  gap: 22px;
  width: min(100%, 1160px);
}

.event-builder-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(139, 67, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 216, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 100% 0%, rgba(155, 67, 255, 0.16), transparent 28rem),
    linear-gradient(115deg, rgba(10, 14, 35, 0.92), rgba(11, 7, 27, 0.9));
}

.event-builder-hero h2 {
  margin-top: 6px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 850;
  line-height: 1.05;
}

.event-builder-hero p {
  margin-top: 10px;
  max-width: 620px;
  color: rgba(215, 216, 239, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.event-builder-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.event-builder-form .form-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(139, 67, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(155, 67, 255, 0.07), transparent 22rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.88), rgba(7, 8, 24, 0.92));
}

.event-builder-form .form-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-builder-form .form-section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 215, 120, 0.34);
  border-radius: 10px;
  color: #ffd94a;
  background: rgba(217, 170, 54, 0.11);
  font-size: 13px;
  font-weight: 900;
}

.event-builder-form .form-section-head h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
}

.event-builder-form .form-section-head p {
  margin-top: 3px;
  color: rgba(215, 216, 239, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.event-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.event-choice-grid label {
  min-width: 0;
}

.event-choice-grid .field-date,
.event-choice-grid .field-hour {
  grid-column: span 1;
}

.event-choice-grid .field-client,
.event-choice-grid .field-type,
.event-choice-grid .field-place {
  grid-column: span 2;
}

.event-builder-form label {
  color: rgba(215, 216, 239, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.event-builder-form input,
.event-builder-form select {
  min-height: 52px;
  border-color: rgba(139, 67, 255, 0.42);
  border-radius: 10px;
  background: rgba(6, 8, 24, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.event-builder-form .client-combo {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.event-builder-form .quick-add-client {
  width: 52px;
  min-height: 52px;
  border-radius: 10px;
}

.event-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.event-form-actions .form-button {
  min-width: 170px;
}

@media (max-width: 920px) {
  .event-builder-hero {
    display: grid;
  }

  .event-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .event-choice-grid .field-date,
  .event-choice-grid .field-hour,
  .event-choice-grid .field-client,
  .event-choice-grid .field-type,
  .event-choice-grid .field-place {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .event-builder-hero,
  .event-builder-form .form-section {
    padding: 18px;
  }

  .event-choice-grid {
    grid-template-columns: 1fr;
  }

  .event-form-actions {
    display: grid;
  }

  .event-form-actions .form-button {
    width: 100%;
  }
}

/* Client builder */
.client-builder-page {
  display: grid;
  gap: 22px;
  width: min(100%, 1160px);
}

.client-builder-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(139, 67, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 216, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 100% 0%, rgba(155, 67, 255, 0.16), transparent 28rem),
    linear-gradient(115deg, rgba(10, 14, 35, 0.92), rgba(11, 7, 27, 0.9));
}

.client-builder-hero h2 {
  margin-top: 6px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 850;
  line-height: 1.05;
}

.client-builder-hero p {
  margin-top: 10px;
  max-width: 620px;
  color: rgba(215, 216, 239, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.client-builder-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.client-builder-form .form-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(139, 67, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(155, 67, 255, 0.07), transparent 22rem),
    linear-gradient(100deg, rgba(10, 14, 35, 0.88), rgba(7, 8, 24, 0.92));
}

.client-builder-form .form-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-builder-form .form-section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 215, 120, 0.34);
  border-radius: 10px;
  color: #ffd94a;
  background: rgba(217, 170, 54, 0.11);
  font-size: 13px;
  font-weight: 900;
}

.client-builder-form .form-section-head h3 {
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
}

.client-builder-form .form-section-head p {
  margin-top: 3px;
  color: rgba(215, 216, 239, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.client-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.client-choice-grid label {
  min-width: 0;
}

.client-identity-grid .field-name,
.client-contact-grid .field-email {
  grid-column: span 4;
}

.client-identity-grid .field-cpf,
.client-contact-grid .field-phone {
  grid-column: span 2;
}

.client-address-grid .field-address {
  grid-column: 1 / -1;
}

.client-address-grid .field-city {
  grid-column: span 4;
}

.client-address-grid .field-state {
  grid-column: span 2;
}

.client-builder-form label {
  color: rgba(215, 216, 239, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.client-builder-form input,
.client-builder-form select {
  min-height: 52px;
  border-color: rgba(139, 67, 255, 0.42);
  border-radius: 10px;
  background: rgba(6, 8, 24, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.client-builder-form .select-field select {
  border-color: rgba(20, 216, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(20, 216, 255, 0.08), transparent 38%),
    rgba(6, 8, 24, 0.78);
}

.client-builder-form .select-field select:focus {
  border-color: rgba(20, 216, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(20, 216, 255, 0.1), 0 0 24px rgba(155, 67, 255, 0.18);
}

.client-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.client-form-actions .form-button {
  min-width: 170px;
}

@media (max-width: 920px) {
  .client-builder-hero {
    display: grid;
  }

  .client-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .client-identity-grid .field-name,
  .client-identity-grid .field-cpf,
  .client-contact-grid .field-email,
  .client-contact-grid .field-phone,
  .client-address-grid .field-address,
  .client-address-grid .field-city,
  .client-address-grid .field-state {
    grid-column: auto;
  }

  .client-address-grid .field-address {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .client-builder-hero,
  .client-builder-form .form-section {
    padding: 18px;
  }

  .client-choice-grid {
    grid-template-columns: 1fr;
  }

  .client-address-grid .field-address {
    grid-column: auto;
  }

  .client-form-actions {
    display: grid;
  }

  .client-form-actions .form-button {
    width: 100%;
  }
}

/* Mobile polish from real phone testing: keep dashboard, events and CRM rows inside the viewport. */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 12px 28px !important;
  }

  .dashboard-page-shell,
  .agenda-page,
  .contracts-page,
  .clients-page,
  .contract-detail-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .dashboard-hero {
    display: block !important;
    min-height: 214px !important;
    max-height: none !important;
    margin-top: 4px !important;
    border-radius: 14px !important;
  }

  .dashboard-hero .hero-bg {
    background-position: 60% center !important;
    filter: saturate(1.12) contrast(1.05) brightness(0.54) !important;
  }

  .dashboard-hero .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 5, 16, 0.94), rgba(5, 7, 20, 0.74) 58%, rgba(5, 7, 20, 0.24)),
      radial-gradient(circle at 18% 18%, rgba(155, 67, 255, 0.22), transparent 12rem) !important;
  }

  .dashboard-hero .dj-stage,
  .dashboard-hero .deck-focus,
  .dashboard-hero .equalizer {
    display: none !important;
  }

  .dashboard-hero .hero-copy {
    position: relative !important;
    z-index: 3 !important;
    width: min(100%, 310px) !important;
    max-width: 310px !important;
    padding: 24px 22px !important;
  }

  .dashboard-hero .hero-copy p {
    font-size: 28px !important;
    line-height: 1 !important;
  }

  .dashboard-hero .hero-copy h2 {
    margin: 5px 0 11px !important;
    font-size: 58px !important;
    line-height: 0.9 !important;
  }

  .dashboard-hero .hero-copy > span {
    max-width: 245px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .dashboard-page-shell .home-metrics,
  .metric-grid.home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 14px 0 !important;
  }

  .dashboard-page-shell .home-metrics .metric-card,
  .home-metrics .metric-card {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    min-width: 0 !important;
    min-height: 106px !important;
    gap: 9px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  .dashboard-page-shell .home-metrics .metric-icon,
  .home-metrics .metric-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }

  .dashboard-page-shell .home-metrics .metric-card > div,
  .home-metrics .metric-card > div {
    min-width: 0 !important;
    justify-items: start !important;
    text-align: left !important;
  }

  .dashboard-page-shell .home-metrics .metric-card p,
  .home-metrics .metric-card p {
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }

  .dashboard-page-shell .home-metrics .metric-card strong,
  .home-metrics .metric-card strong {
    font-size: 31px !important;
    line-height: 0.98 !important;
  }

  .dashboard-page-shell .home-metrics .metric-card small,
  .home-metrics .metric-card small {
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  .agenda-panel,
  .dashboard-page-shell .agenda-panel,
  .clients-panel,
  .contracts-panel {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .agenda-panel .section-head,
  .dashboard-page-shell .agenda-panel .section-head {
    display: grid !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
  }

  .dashboard-page-shell .agenda-panel .section-head h2,
  .section-head h2 {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  .home-event-tabs {
    gap: 18px !important;
    margin-top: 14px !important;
  }

  .home-event-tabs a {
    font-size: 15px !important;
  }

  .dashboard-page-shell .home-agenda-tools,
  .home-agenda-tools,
  .agenda-hero-actions,
  .crm-page .clients-hero-actions {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .dashboard-page-shell .calendar-shortcut,
  .calendar-shortcut {
    min-width: 0 !important;
    width: 100% !important;
  }

  .dashboard-page-shell .timeline,
  .timeline {
    padding-left: 0 !important;
    gap: 12px !important;
  }

  .dashboard-page-shell .timeline::before,
  .timeline::before,
  .dashboard-page-shell .event-card::before,
  .event-card::before {
    display: none !important;
  }

  .dashboard-page-shell .event-card,
  .event-card,
  .agenda-page .agenda-table-list .event-strip {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 14px !important;
    border-radius: 13px !important;
  }

  .dashboard-page-shell .event-card time,
  .event-card time,
  .agenda-page .agenda-table-list .strip-date {
    grid-column: 1 !important;
    grid-row: 1 / span 4 !important;
    width: 48px !important;
    min-width: 48px !important;
    height: auto !important;
    place-items: start center !important;
  }

  .dashboard-page-shell .event-card time strong,
  .event-card time strong,
  .agenda-page .agenda-table-list .strip-date strong {
    font-size: 28px !important;
  }

  .event-info,
  .strip-main,
  .strip-event,
  .strip-place {
    min-width: 0 !important;
  }

  .dashboard-page-shell .event-info h3,
  .event-info h3,
  .agenda-page .agenda-table-list .strip-main h3 {
    overflow: visible !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .dashboard-page-shell .event-info p,
  .event-info p,
  .agenda-page .agenda-table-list .strip-main p,
  .agenda-page .agenda-table-list .strip-event span,
  .agenda-page .agenda-table-list .strip-place span {
    max-width: 100% !important;
    overflow: visible !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .dashboard-page-shell .event-hour,
  .event-hour,
  .agenda-page .agenda-table-list .strip-hour,
  .agenda-page .agenda-table-list .strip-event,
  .agenda-page .agenda-table-list .strip-place,
  .agenda-page .agenda-table-list .strip-status {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .dashboard-page-shell .event-card .status,
  .event-card .status {
    grid-column: 2 !important;
    justify-self: start !important;
    min-height: 36px !important;
    padding: 0 12px !important;
  }

  .dashboard-page-shell .event-action,
  .event-action {
    display: none !important;
  }

  .agenda-page .agenda-table-board,
  .crm-board {
    padding: 0 !important;
  }

  .agenda-page .agenda-table-tabs,
  .clients-tabs {
    display: grid !important;
    padding: 12px !important;
  }

  .agenda-page .agenda-tab-list,
  .clients-tabs .agenda-tab-list {
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .agenda-page .agenda-table-list,
  .crm-client-list {
    padding: 12px !important;
  }

  .agenda-page .agenda-table-list .row-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .agenda-page .agenda-table-list .row-actions a {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 8px !important;
  }

  .crm-page .clients-metrics {
    grid-template-columns: 1fr !important;
  }

  .crm-page .clients-metrics .insight-card {
    min-height: 98px !important;
    padding: 14px !important;
  }

  .client-column-head,
  .agenda-column-head {
    display: none !important;
  }

  .crm-client-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 13px !important;
  }

  .client-profile {
    grid-template-columns: 52px minmax(0, 1fr) !important;
  }

  .crm-client-row .client-main h3,
  .client-last-event strong {
    overflow: visible !important;
    font-size: 18px !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .crm-client-row .client-contact span,
  .crm-client-row .client-contact small,
  .client-revenue strong,
  .client-revenue span,
  .client-events span,
  .client-last-event span {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .client-events,
  .client-revenue,
  .client-last-event,
  .client-status,
  .crm-actions {
    grid-column: 1 !important;
  }

  .client-events,
  .client-revenue,
  .client-last-event,
  .client-status {
    padding-top: 8px !important;
    border-top: 1px solid rgba(139, 67, 255, 0.16) !important;
  }

  .crm-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .crm-actions a {
    min-width: 0 !important;
    width: 100% !important;
  }

  .contract-hero-panel {
    padding: 20px !important;
  }

  .contract-hero-main h1 {
    font-size: 40px !important;
  }

  .contract-hero-finance > strong {
    font-size: 42px !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 380px) {
  .dashboard-page-shell .home-metrics,
  .metric-grid.home-metrics {
    grid-template-columns: 1fr !important;
  }

  .dashboard-hero .hero-copy h2 {
    font-size: 50px !important;
  }
}

/* Match the dashboard metric cards across mobile Agenda, Contracts and Clients. */
@media (max-width: 700px) {
  .agenda-page .agenda-metrics,
  .contracts-page .contracts-metrics,
  .crm-page .clients-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 14px 0 !important;
  }

  .agenda-page .agenda-metrics .insight-card,
  .contracts-page .contracts-metrics .insight-card,
  .crm-page .clients-metrics .insight-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 106px !important;
    gap: 9px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-align: left !important;
    place-items: initial !important;
  }

  .agenda-page .agenda-metrics .insight-card::before,
  .crm-page .clients-metrics .insight-card::before {
    display: none !important;
  }

  .contracts-page .contracts-metrics .insight-card::before {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    width: 42px !important;
    height: 42px !important;
    align-self: center !important;
    justify-self: center !important;
  }

  .agenda-page .agenda-metrics .metric-symbol,
  .crm-page .clients-metrics .metric-symbol {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    place-items: center !important;
    align-self: center !important;
    justify-self: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    color: var(--card-accent) !important;
    background: color-mix(in srgb, var(--card-accent), transparent 88%) !important;
    box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent), transparent 80%) !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .agenda-page .agenda-metrics .insight-card > div,
  .crm-page .clients-metrics .insight-card > div {
    grid-column: 2 !important;
    min-width: 0 !important;
    display: grid !important;
    justify-items: start !important;
    text-align: left !important;
  }

  .contracts-page .contracts-metrics .insight-card > span,
  .contracts-page .contracts-metrics .insight-card > strong,
  .contracts-page .contracts-metrics .insight-card > small {
    grid-column: 2 !important;
    min-width: 0 !important;
    justify-self: start !important;
    text-align: left !important;
  }

  .agenda-page .agenda-metrics .insight-card span:not(.metric-symbol),
  .contracts-page .contracts-metrics .insight-card span,
  .crm-page .clients-metrics .insight-card span:not(.metric-symbol) {
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }

  .agenda-page .agenda-metrics .insight-card strong,
  .contracts-page .contracts-metrics .insight-card strong,
  .crm-page .clients-metrics .insight-card strong {
    margin: 2px 0 !important;
    font-size: 31px !important;
    line-height: 0.98 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .agenda-page .agenda-metrics .insight-card small,
  .contracts-page .contracts-metrics .insight-card small,
  .crm-page .clients-metrics .insight-card small {
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  .agenda-page .agenda-hero h2 {
    font-size: 40px !important;
    line-height: 1.02 !important;
  }
}

@media (max-width: 380px) {
  .agenda-page .agenda-metrics,
  .contracts-page .contracts-metrics,
  .crm-page .clients-metrics {
    grid-template-columns: 1fr !important;
  }
}

/* Money metric cards need a smaller type scale on phones. */
@media (max-width: 700px) {
  .contracts-page .contracts-metrics .insight-card.gold strong,
  .contracts-page .contracts-metrics .insight-card.blue strong,
  .contracts-page .contracts-metrics .insight-card.wine strong,
  .crm-page .clients-metrics .insight-card.blue strong {
    font-size: 24px !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .contracts-page .contracts-metrics .insight-card.gold,
  .contracts-page .contracts-metrics .insight-card.blue,
  .contracts-page .contracts-metrics .insight-card.wine,
  .crm-page .clients-metrics .insight-card.blue {
    min-height: 106px !important;
    align-content: center !important;
  }
}

@media (max-width: 430px) {
  .contracts-page .contracts-metrics .insight-card.gold strong,
  .contracts-page .contracts-metrics .insight-card.blue strong,
  .contracts-page .contracts-metrics .insight-card.wine strong,
  .crm-page .clients-metrics .insight-card.blue strong {
    font-size: 21px !important;
  }
}

@media (max-width: 380px) {
  .contracts-page .contracts-metrics .insight-card.gold strong,
  .contracts-page .contracts-metrics .insight-card.blue strong,
  .contracts-page .contracts-metrics .insight-card.wine strong,
  .crm-page .clients-metrics .insight-card.blue strong {
    font-size: 24px !important;
  }
}

/* Clean metric cards: title uses the card accent and secondary captions stay hidden. */
.metric-card p,
.dashboard-page-shell .home-metrics .metric-card p {
  color: color-mix(in srgb, var(--accent), #fff 24%) !important;
}

.insight-card > span,
.insight-card span:not(.metric-symbol),
.agenda-page .agenda-metrics .insight-card span:not(.metric-symbol),
.contracts-page .contracts-metrics .insight-card span,
.crm-page .clients-metrics .insight-card span:not(.metric-symbol) {
  color: color-mix(in srgb, var(--card-accent), #fff 24%) !important;
}

.metric-card small,
.dashboard-page-shell .home-metrics .metric-card small,
.insight-card small,
.agenda-page .agenda-metrics .insight-card small,
.contracts-page .contracts-metrics .insight-card small,
.crm-page .clients-metrics .insight-card small {
  display: none !important;
}

/* Clients page: no KPI cards, more breathing room before search. */
.crm-page .clients-hero {
  row-gap: 18px;
}

.crm-page .clients-hero p {
  margin-bottom: 14px;
}

.crm-page .clients-hero-actions {
  align-self: end;
}

@media (max-width: 700px) {
  .crm-page .clients-hero p {
    margin-bottom: 10px;
    line-height: 1.35;
  }
}
