:root {
  --bg: #0E111A;
  --bg-2: #0E111A;
  --panel: rgba(11, 16, 32, 0.72);
  --panel-solid: #0f172a;
  --text: #f8fafc;
  --muted: #a8b3cf;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d10000;
  --accent-2: #ffb347;
  --good: #39d98a;
  --bad: #ff6b6b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 56px;
}

.hero {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  margin-bottom: 26px;
}

.hero-copy {
  padding-top: 12px;
  width: min(760px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
}

.backoffice-hero {
  justify-items: center;
}

.backoffice-brand {
  margin-bottom: 14px;
  justify-self: center;
}

.backoffice-brand img {
  display: block;
  width: auto;
  height: 34px;
}

.backoffice-lead {
  max-width: 68ch;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  width: min(760px, 100%);
}

.surface-hero {
  position: relative;
}

.surface-hero::before {
  content: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand-large {
  padding: 0;
  margin-bottom: 18px;
  width: fit-content;
}

.brand img {
  height: auto;
  width: auto;
  display: block;
}

.brand-large img {
  max-width: 260px;
}

.hero-lead {
  max-width: 28ch;
  font-size: 17px;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}

h1, h2 { margin: 10px 0 0; line-height: 0.98; }
h1 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.82);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
  max-width: 100%;
}

.countdown-item {
  min-width: 0;
  padding: 14px 10px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}

.countdown-item span {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(209, 0, 0, 0.22);
}

.countdown-item small {
  display: block;
  color: rgba(248, 250, 252, 0.68);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 700;
}

.countdown-item::before {
  content: none;
}

.agenda-card {
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 179, 71, 0.16);
  background: var(--bg);
  width: min(760px, 100%);
}

.access-card {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.agenda-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  width: min(1240px, 100%);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: center;
}

.btn-calendar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  justify-self: center;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.btn-calendar span {
  display: block;
}

.btn-calendar strong {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.1;
  text-wrap: balance;
  text-align: left;
}

.btn-ico {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 900;
  font-size: 16px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}

.btn-calendar .btn-ico {
  flex: 0 0 44px;
  align-self: center;
  justify-self: center;
  margin: 0;
}

.btn-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-ico-download,
.btn-ico-google,
.btn-ico-outlook,
.btn-ico-apple {
  color: #fff;
}

.btn-calendar:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.surface-flat {
  background: var(--bg);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 16px 38px rgba(0,0,0,0.10);
}

.card-compact { padding: 18px 20px; }

.meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row:last-child { border-bottom: 0; }

.label { color: var(--muted); font-size: 13px; }
.value { font-weight: 650; text-align: right; }

.actions { display: grid; gap: 12px; margin-top: 18px; }

.action-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

button, .btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
}

button:hover, .btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: #AF1313;
  box-shadow: 0 14px 30px rgba(175, 19, 19, 0.28);
}

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

.btn-danger { background: var(--bad); color: #fff; }
.btn:disabled, button:disabled { opacity: .55; cursor: not-allowed; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-confirmed { background: rgba(57, 217, 138, .14); color: #8ff0c1; }
.status-pending { background: rgba(168, 179, 207, .12); color: var(--muted); }
.status-declined { background: rgba(255, 107, 107, .14); color: #ffb3b3; }
.status-replaced { background: rgba(120, 153, 255, .14); color: #b9cbff; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.stat strong { display: block; font-size: 30px; margin-top: 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

tr:last-child td { border-bottom: 0; }
.row-muted { color: var(--muted); }

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.18);
  color: #ffd08a;
  margin-bottom: 16px;
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.error {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.18);
  color: #ffb3b3;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 220px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(209, 0, 0, 0.92), rgba(112, 0, 0, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  filter: blur(4px);
}

.hero-visual::before {
  width: 180px;
  height: 180px;
  top: -52px;
  right: -42px;
}

.hero-visual::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -100px;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .2));
}

.hero-visual .tag {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.90);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-schedule {
  padding: 0 2px;
  text-align: center;
}

.schedule-title {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}

.schedule-value {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 650;
}

.schedule-time {
  display: inline;
  margin-left: 4px;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
}

.schedule-location {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.hero-schedule,
.countdown {
  width: 100%;
}

@media (max-width: 960px) {
  .hero, .grid, .stats { grid-template-columns: 1fr; }
  .value { text-align: left; }
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .agenda-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(860px, 100%);
  }
}

@media (max-width: 640px) {
  .hero-panel { gap: 10px; }
  .hero-panel { padding: 18px; border-radius: 24px; }
  .hero-copy { padding-top: 4px; }
  .backoffice-lead {
    max-width: 100%;
  }
  #confirmation-form > .card:first-child {
    order: 2;
  }
  #confirmation-form > .card:last-child {
    order: 1;
  }
  .schedule-value { font-size: 15px; }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-response {
    flex-direction: column;
    align-items: stretch;
  }
  .agenda-card {
    margin-top: 8px;
  }
  .agenda-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
  }
  .btn-calendar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 62px;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 16px;
  }
  .btn-calendar strong {
    flex: 1 1 auto;
    text-align: left;
  }
  .btn-calendar strong {
    font-size: 12px;
    line-height: 1.05;
  }
  .btn-ico {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 14px;
    place-self: center;
    margin: 0;
  }
  .btn-ico svg {
    width: 22px;
    height: 22px;
  }
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .countdown-item span {
    font-size: clamp(22px, 7vw, 34px);
  }
  .countdown-item small {
    font-size: 9px;
    letter-spacing: .14em;
  }
}
