/* ============================================================
   SeuJet Piçarras — Identidade visual
   Azul principal #1AABE0 · Azul escuro #1C1C3A · Branco #FFF
   ============================================================ */
:root {
  --azul: #1AABE0;
  --azul-esc: #138bb8;
  --navy: #1C1C3A;
  --navy-soft: #2a2a52;
  --branco: #ffffff;
  --cinza: #f4f6f8;
  --cinza-borda: #e2e8ef;
  --texto: #1C1C3A;
  --texto-mut: #5f6b7a;
  --ok: #1d9e75;
  --erro: #e24b4a;
  --radius: 14px;
  --sombra: 0 6px 24px rgba(28, 28, 58, 0.10);
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
}
a { color: var(--azul); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- VIEWS ---------- */
.view { display: none; }
.view--active { display: block; }

/* ---------- BOTÕES ---------- */
.btn {
  font-family: var(--font);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: var(--azul-esc); box-shadow: 0 4px 14px rgba(26,171,224,.4); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28,28,58,.96);
  backdrop-filter: blur(8px);
}
.nav__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 42px; height: 42px; border-radius: 50%; }
.nav__name { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.nav__name strong { color: var(--azul); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: #dfe6ee; font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--azul); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(28,28,58,.78), rgba(28,28,58,.92)),
    radial-gradient(circle at 70% 20%, rgba(26,171,224,.35), transparent 55%),
    var(--navy);
  color: #fff;
  padding: 90px 20px 100px;
}
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(28,28,58,.68), rgba(28,28,58,.86));
}
.hero__content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.hero__kicker { color: var(--azul); font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; text-transform: uppercase; font-size: 14px; }
.hero__title { font-size: clamp(34px, 6vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -1px; }
.hero__title span { color: var(--azul); }
.hero__sub { font-size: 18px; color: #cfd8e2; margin: 22px auto 34px; max-width: 600px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- SECTIONS ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 20px; }
.section--dark {
  max-width: none;
  background: var(--navy);
  color: #fff;
}
.section--dark .section__title { color: #fff; }
.section__title {
  text-align: center; font-size: clamp(26px, 4vw, 38px);
  font-weight: 800; margin-bottom: 44px; color: var(--navy);
}
.section__cta { text-align: center; margin-top: 44px; }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.card {
  background: #fff; border: 1px solid var(--cinza-borda);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--sombra); text-align: center;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon { font-size: 38px; margin-bottom: 12px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--texto-mut); font-size: 15px; }
.card--model { text-align: left; }
.card__price { color: var(--azul); font-weight: 800; font-size: 26px; margin: 8px 0; }
.card__price span { font-size: 13px; color: var(--texto-mut); font-weight: 600; }
.card__cotas {
  display: inline-block; background: #eaf7fc; color: var(--azul-esc);
  font-size: 12.5px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; margin-bottom: 12px;
}
.card__cotas--out { background: #fbe9e9; color: var(--erro); }

/* ---------- BENEFITS ---------- */
.benefits {
  list-style: none; max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px;
}
.benefits li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #e6edf4; }
.benefits li span {
  background: var(--azul); color: #fff; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}

/* ---------- AUTH (login boxes) ---------- */
.auth {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 40px 20px;
  background:
    linear-gradient(180deg, rgba(28,28,58,.85), rgba(28,28,58,.95)),
    radial-gradient(circle at 30% 20%, rgba(26,171,224,.4), transparent 55%),
    var(--navy);
}
.auth.view--active { display: grid; }
.auth__box {
  background: #fff; border-radius: 20px; padding: 38px 32px;
  width: 100%; max-width: 410px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  text-align: center;
}
.auth__logo { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; box-shadow: var(--sombra); }
.auth__box h2 { color: var(--navy); font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.auth__hint { color: var(--texto-mut); font-size: 14px; margin-bottom: 24px; }
.auth__box form { text-align: left; }
.auth__box label {
  display: block; font-weight: 600; font-size: 13px; color: var(--navy);
  margin-bottom: 14px;
}
.auth__box input, .auth__box select, .admin__form-card input, .admin__form-card select {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--cinza-borda); border-radius: 10px;
  font-family: var(--font); font-size: 15px; color: var(--navy);
  transition: border-color .15s ease;
  background: #fff;
}
.auth__box input:focus, .auth__box select:focus,
.admin__form-card input:focus, .admin__form-card select:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(26,171,224,.15);
}
.auth__error { color: var(--erro); font-size: 13.5px; font-weight: 600; min-height: 18px; margin: 2px 0 12px; }
.auth--admin .auth__box { border-top: 5px solid var(--azul); }
.link-back {
  background: none; border: none; color: var(--texto-mut); cursor: pointer;
  font-family: var(--font); font-size: 14px; margin-top: 18px; font-weight: 600;
}
.link-back:hover { color: var(--azul); }

/* ---------- DASHBOARD ---------- */
.dash { display: none; min-height: 100vh; background: var(--cinza); }
.dash.view--active { display: block; }
.dash__bar {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
}
.dash__id { display: flex; align-items: center; gap: 12px; }
.dash__logo { width: 44px; height: 44px; border-radius: 50%; }
.dash__id strong { display: block; font-size: 16px; font-weight: 700; }
.dash__id small { color: var(--azul); font-size: 13px; font-weight: 600; }
.dash__body { max-width: 1000px; margin: 0 auto; padding: 26px 20px 60px; }

/* stats */
.dash__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--sombra); }
.stat__label { display: block; font-size: 12.5px; color: var(--texto-mut); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat__value { display: block; font-size: 30px; font-weight: 800; color: var(--navy); margin-top: 4px; }

/* calendar */
.cal { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--sombra); margin-bottom: 26px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal__head h3 { font-size: 19px; font-weight: 800; color: var(--navy); text-transform: capitalize; }
.cal__nav {
  background: var(--cinza); border: none; width: 40px; height: 40px; border-radius: 10px;
  font-size: 22px; color: var(--navy); cursor: pointer; font-weight: 700;
}
.cal__nav:hover { background: var(--azul); color: #fff; }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__weekdays { margin-bottom: 8px; }
.cal__weekdays span { text-align: center; font-size: 12px; font-weight: 700; color: var(--texto-mut); text-transform: uppercase; }
.cal__cell {
  aspect-ratio: 1 / 1; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--cinza-borda); background: #fff; cursor: pointer;
  transition: all .12s ease; position: relative;
}
.cal__cell--empty { border: none; background: transparent; cursor: default; }
.cal__cell--free:hover { border-color: var(--azul); background: #eaf7fc; transform: scale(1.04); }
.cal__cell--mine { background: var(--azul); color: #fff; border-color: var(--azul); }
.cal__cell--taken { background: #fbe9e9; color: #b14; border-color: #f3c9c9; cursor: not-allowed; }
.cal__cell--past { background: var(--cinza); color: #aab4c0; border-color: transparent; cursor: not-allowed; }
.cal__cell--locked { background: #f7f8fa; border: 1.5px dashed #cdd6e0; color: #9aa6b4; cursor: not-allowed; }
.cal__cell--locked small { color: #b9770f; font-weight: 700; }
.cal__cell--locked-mine { cursor: not-allowed; }
.cal__cell--locked-mine small { opacity: .95; }
.cal__cell small { font-size: 9px; font-weight: 600; opacity: .85; line-height: 1; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: 13px; color: var(--texto-mut); }
.cal__legend span { display: flex; align-items: center; gap: 6px; }
.cal__rule { margin-top: 12px; font-size: 13px; color: var(--texto-mut); background: #fff8ec; border-left: 3px solid #e6a23c; padding: 9px 12px; border-radius: 8px; }
.res-lock { color: #b9770f; font-weight: 700; font-size: 13px; background: #fff4e0; padding: 6px 12px; border-radius: 8px; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot--free { background: #fff; border: 1.5px solid var(--cinza-borda); }
.dot--mine { background: var(--azul); }
.dot--taken { background: #fbe9e9; border: 1.5px solid #f3c9c9; }
.dot--locked { background: #f7f8fa; border: 1.5px dashed #cdd6e0; }
.dot--past { background: var(--cinza); }

/* reservation list */
.dash__list { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--sombra); }
.dash__list h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.dash__list ul { list-style: none; }
.dash__list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--cinza-borda); border-radius: 10px; margin-bottom: 8px;
  font-weight: 600;
}
.dash__list li button {
  background: #fbe9e9; color: var(--erro); border: none; border-radius: 8px;
  padding: 6px 12px; font-weight: 700; cursor: pointer; font-family: var(--font); font-size: 13px;
}
.dash__list li button:hover { background: var(--erro); color: #fff; }
.dash__list .empty { color: var(--texto-mut); font-weight: 500; padding: 6px 0; }

/* ---------- ADMIN ---------- */
.dash--admin .dash__bar { border-bottom: 4px solid var(--azul); }
.admin__tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.admin__tab {
  background: #fff; border: 1px solid var(--cinza-borda); border-radius: 999px;
  padding: 9px 20px; font-family: var(--font); font-weight: 700; font-size: 14px;
  color: var(--texto-mut); cursor: pointer;
}
.admin__tab--active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin__panel { display: none; }
.admin__panel--active { display: block; }
.admin__form-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--sombra); margin-bottom: 22px; }
.admin__form-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 16px; }
.admin__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 6px; }
.admin__row label { font-size: 13px; font-weight: 600; color: var(--navy); }
.admin__note { color: var(--texto-mut); font-size: 13px; margin-top: 10px; }
.model-edit__actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hist-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hist-chip {
  background: #eaf7fc; color: var(--azul-esc); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
}
.hist-chip b { background: var(--azul); color: #fff; border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-size: 12.5px; }
.hist-month { margin-bottom: 20px; }
.hist-month h4 { color: var(--navy); font-size: 15px; margin: 0 0 8px; text-transform: capitalize; }
.hist-export { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn--navy { background: #fff; color: var(--navy); border: 1.5px solid var(--cinza-borda); }
.btn--navy:hover { border-color: var(--navy); background: #f7f8fa; box-shadow: none; }
.hist-tag { background: #eef2f6; color: var(--texto-mut); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 8px; }
.admin__table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra);
}
.admin__table th, .admin__table td { padding: 13px 16px; text-align: left; font-size: 14px; }
.admin__table th { background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; }
.admin__table tr:nth-child(even) td { background: #fafbfc; }
.admin__table td { border-bottom: 1px solid var(--cinza-borda); color: var(--navy); }
.admin__table .badge { background: #eaf7fc; color: var(--azul-esc); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12.5px; }
.admin__table .badge--pend { background: #fff4e0; color: #b9770f; }
.tbtn {
  border: none; border-radius: 8px; padding: 6px 11px; font-weight: 700; cursor: pointer;
  font-family: var(--font); font-size: 12.5px; margin-right: 6px;
}
.tbtn--reset { background: #fff4e0; color: #b9770f; }
.tbtn--reset:hover { background: #b9770f; color: #fff; }
.tbtn--del { background: #fbe9e9; color: var(--erro); }
.tbtn--del:hover { background: var(--erro); color: #fff; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: #cdd6e0; padding: 48px 20px 24px; }
.footer__inner {
  max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer strong { color: #fff; font-size: 18px; }
.footer p { font-size: 14px; margin-top: 4px; }
.footer a { color: var(--azul); }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__admin {
  background: none; border: 1px solid rgba(255,255,255,.25); color: #9aa6b4;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-family: var(--font);
  font-size: 13px; font-weight: 600;
}
.footer__admin:hover { border-color: var(--azul); color: var(--azul); }
.footer__copy { text-align: center; font-size: 13px; margin-top: 20px; color: #8b97a6; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; box-shadow: 0 10px 40px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
  border-left: 4px solid var(--azul); max-width: 90%;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--ok { border-left-color: var(--ok); }
.toast--err { border-left-color: var(--erro); }

/* ============================================================
   ReactBits — Star Border (porte vanilla CSS)
   Estrela de luz que percorre a borda do botão.
   ============================================================ */
.star-border {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 999px;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  vertical-align: middle;
}
.star-border__g {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: .7;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle, var(--azul), transparent 10%);
  pointer-events: none;
}
.star-border__g--bottom { bottom: -11px; right: -250%; animation: star-bottom 6s linear infinite alternate; }
.star-border__g--top    { top: -11px;    left: -250%;  animation: star-top 6s linear infinite alternate; }
.star-border__inner {
  position: relative;
  z-index: 1;
  display: block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
  transition: background .15s ease;
}
.star-border:hover .star-border__inner { background: #232352; }
.star-border:active { transform: scale(.98); }
@keyframes star-top {
  0%   { transform: translate(0%, 0%);   opacity: 1; }
  100% { transform: translate(100%, 0%); opacity: 0; }
}
@keyframes star-bottom {
  0%   { transform: translate(0%, 0%);    opacity: 1; }
  100% { transform: translate(-100%, 0%); opacity: 0; }
}

/* ============================================================
   ReactBits — Blur Text (porte vanilla)
   Palavras surgem desfocadas e entram em foco, em sequência.
   ============================================================ */
.bt-word {
  display: inline-block;
  filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  animation: btIn 1.2s cubic-bezier(.2, .7, .2, 1) forwards;
  will-change: filter, opacity, transform;
}
@keyframes btIn {
  to { filter: blur(0); opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bt-word { animation: none; filter: none; opacity: 1; transform: none; }
  .star-border__g { animation: none; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 640px) {
  .nav__links a { display: none; }
  .dash__info { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__links { align-items: flex-start; }
  .admin__table { font-size: 12.5px; display: block; overflow-x: auto; white-space: nowrap; }
}

/* Edição inline de cotista (admin) */
.tbtn--edit { background: #e6f4fb; color: #1280ad; }
.tbtn--edit:hover { background: #1AABE0; color: #fff; }
.tinput { padding: 6px 8px; border: 1px solid #c9d3de; border-radius: 6px; font: inherit; width: 130px; }
.tinput--sm { width: 64px; }

/* Filtros da aba Reservas (admin) */
.admin__filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 4px 0 14px; }
.admin__filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.admin__filters select { padding: 8px 10px; border: 1px solid #c9d3de; border-radius: 8px; font: inherit; min-width: 150px; }
.admin__count { font-size: .85rem; color: #5f6b7a; margin-left: auto; }

/* E-mail do cotista + e-mail na lista do admin */
.mail-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: #f1f8fc; border: 1px solid #cfe6f3; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.mail-card--pending { background: #fff8e8; border-color: #f1d9a0; }
.mail-card p { margin: 4px 0 0; font-size: .85rem; color: #5f6b7a; }
.mail-card__form { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-card__form input { padding: 9px 10px; border: 1px solid #c9d3de; border-radius: 8px; font: inherit; min-width: 220px; }
.u-mail { color: #5f6b7a; font-weight: 400; }
.u-mail--none { color: #b9770f; }
.tinput--wide { width: 210px; margin-top: 4px; }
