/* ==========================================================================
   RotaAlt - Estilos do projeto
   Consome as variáveis de tokens.css (carregado antes deste arquivo).
   ========================================================================== */

/* ---- Ponte com o Bootstrap 5 ---- */
:root {
  --bs-body-font-family: var(--ra-font);
  --bs-body-font-size: var(--ra-fs-body);
  --bs-body-color: var(--ra-ink);
  --bs-body-bg: var(--ra-bg-page);
  --bs-primary: var(--ra-red-600);
  --bs-primary-rgb: 200, 56, 48;
  --bs-primary-text-emphasis: var(--ra-red-700);
  --bs-primary-bg-subtle: var(--ra-red-50);
  --bs-primary-border-subtle: var(--ra-red-100);
  --bs-link-color: var(--ra-red-600);
  --bs-link-color-rgb: 200, 56, 48;
  --bs-link-hover-color: var(--ra-red-700);
  --bs-border-color: var(--ra-border);
  --bs-border-radius: var(--ra-radius-sm);
  --bs-border-radius-lg: var(--ra-radius-lg);
  --bs-secondary-color: var(--ra-text-muted);
  --bs-success: var(--ra-green-700);
  --bs-success-rgb: 32, 96, 80;
  --bs-success-text-emphasis: var(--ra-green-700);
  --bs-success-bg-subtle: var(--ra-green-50);
  --bs-warning-text-emphasis: var(--ra-orange-700);
  --bs-warning-bg-subtle: var(--ra-orange-50);
  --bs-danger: var(--ra-red-600);
  --bs-danger-rgb: 200, 56, 48;
  --bs-danger-text-emphasis: var(--ra-red-700);
  --bs-danger-bg-subtle: var(--ra-red-50);
  --bs-info-text-emphasis: var(--ra-blue-700);
  --bs-info-bg-subtle: var(--ra-blue-50);
}

/* ---- Base global ---- */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ra-bg-page);
  font-family: var(--ra-font);
  color: var(--ra-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: var(--ra-fw-bold);
  letter-spacing: var(--ra-tracking-title);
  color: var(--ra-ink);
}

.text-muted { color: var(--ra-text-muted) !important; }
.text-dark  { color: var(--ra-ink) !important; }
.text-rotaalt { color: var(--ra-red-600) !important; }
.bg-rotaalt-soft { background-color: var(--ra-red-50) !important; }

h1.text-secondary, h2.text-secondary, h3.text-secondary,
h4.text-secondary, h5.text-secondary, .h4.text-secondary, .h5.text-secondary {
  color: var(--ra-ink) !important;
}

.ra-tabular {
  font-variant-numeric: tabular-nums;
}

/* ---- Botões ---- */
.btn {
  border-radius: var(--ra-radius-sm);
  font-weight: var(--ra-fw-semibold);
  transition: transform var(--ra-transition), box-shadow var(--ra-transition),
              background-color var(--ra-transition), border-color var(--ra-transition),
              color var(--ra-transition);
}

.btn:active {
  transform: translateY(0);
}

.btn-rotaalt,
.btn-primary {
  --bs-btn-bg: var(--ra-red-600);
  --bs-btn-border-color: var(--ra-red-600);
  --bs-btn-hover-bg: var(--ra-red-700);
  --bs-btn-hover-border-color: var(--ra-red-700);
  --bs-btn-active-bg: var(--ra-red-700);
  --bs-btn-active-border-color: var(--ra-red-700);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  background-color: var(--ra-red-600);
  border: 1px solid var(--ra-red-600);
  color: #fff;
  box-shadow: 0 2px 6px rgba(200, 56, 48, .20);
}

.btn-rotaalt:hover, .btn-primary:hover,
.btn-rotaalt:focus-visible, .btn-primary:focus-visible {
  background-color: var(--ra-red-700);
  border-color: var(--ra-red-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(200, 56, 48, .26);
}

.btn-outline-rotaalt {
  border: 1px solid var(--ra-red-600);
  color: var(--ra-red-600);
  background: transparent;
}

.btn-outline-rotaalt:hover,
.btn-outline-rotaalt:focus-visible {
  background-color: var(--ra-red-600);
  border-color: var(--ra-red-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-ink {
  background: var(--ra-surface);
  border: 1px solid var(--ra-border-brand);
  color: var(--ra-ink);
}

.btn-outline-ink:hover,
.btn-outline-ink:focus-visible {
  border-color: var(--ra-red-600);
  color: var(--ra-red-600);
  background: var(--ra-red-50);
}

/* ---- Navbar ---- */
.navbar-rotaalt {
  background-color: rgba(253, 253, 253, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ra-border-subtle);
  box-shadow: var(--ra-shadow-xs);
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.navbar-rotaalt .navbar-brand {
  color: var(--ra-ink);
  font-weight: var(--ra-fw-extrabold);
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

.ra-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ra-red-600) 0%, var(--ra-red-700) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(200, 56, 48, .25);
  font-size: 1.1rem;
  transition: transform var(--ra-transition);
}

.navbar-brand:hover .ra-brand-mark {
  transform: scale(1.04);
}

.ra-brand-word span {
  color: var(--ra-red-600);
}

.navbar-rotaalt .nav-link {
  color: var(--ra-text-muted);
  font-size: var(--ra-fs-nav);
  font-weight: var(--ra-fw-semibold);
  padding: .45rem .85rem;
  border-radius: var(--ra-radius-sm);
  transition: color var(--ra-transition), background-color var(--ra-transition);
}

.navbar-rotaalt .nav-link:hover,
.navbar-rotaalt .nav-link:focus {
  color: var(--ra-red-600);
  background-color: var(--ra-red-50);
}

.navbar-rotaalt .nav-link.active {
  color: var(--ra-red-700);
  background-color: var(--ra-red-50);
}

.ra-user-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .75rem;
  border-radius: var(--ra-radius-pill);
  background-color: var(--ra-surface-muted);
  border: 1px solid var(--ra-border-subtle);
  color: var(--ra-ink-soft);
  font-size: var(--ra-fs-label);
  font-weight: var(--ra-fw-medium);
}

/* ---- Flash Messages ---- */
.ra-alert {
  border-radius: var(--ra-radius-md);
  border: 1px solid var(--ra-border-subtle);
  background-color: var(--ra-surface);
  color: var(--ra-ink);
  box-shadow: var(--ra-shadow-sm);
}

.ra-alert.alert-success {
  background-color: var(--ra-green-50);
  border-color: rgba(32, 96, 80, .2);
  color: var(--ra-green-700);
}

.ra-alert.alert-danger {
  background-color: var(--ra-red-50);
  border-color: var(--ra-red-100);
  color: var(--ra-red-700);
}

.ra-alert.alert-warning {
  background-color: var(--ra-orange-50);
  border-color: rgba(248, 144, 80, .35);
  color: var(--ra-orange-700);
}

.ra-alert.alert-info {
  background-color: var(--ra-blue-50);
  border-color: var(--ra-blue-100);
  color: var(--ra-blue-700);
}

/* ---- Hero da página inicial ---- */
.hero-rotaalt {
  position: relative;
  overflow: hidden;
  border-radius: var(--ra-radius-xl);
  background: linear-gradient(135deg, var(--ra-blue-50) 0%, #D9EEF6 55%, var(--ra-blue-100) 100%);
  color: var(--ra-ink);
  box-shadow: var(--ra-shadow-sm);
  border: 1px solid rgba(200, 224, 232, .8);
}

.hero-rotaalt::before,
.hero-rotaalt::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-rotaalt::before {
  width: 280px;
  height: 280px;
  right: -70px;
  bottom: -110px;
  background: var(--ra-orange-500);
  opacity: .85;
}

.hero-rotaalt::after {
  width: 340px;
  height: 340px;
  right: 80px;
  top: -175px;
  background: rgba(253, 253, 253, .55);
}

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

.hero-rotaalt h1 {
  font-size: var(--ra-fs-hero);
  font-weight: var(--ra-fw-extrabold);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-rotaalt .lead {
  font-size: var(--ra-fs-lead);
  color: var(--ra-ink-soft);
  line-height: 1.55;
}

.ra-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  border-radius: var(--ra-radius-pill);
  background: rgba(253, 253, 253, .85);
  border: 1px solid rgba(20, 13, 9, .08);
  color: var(--ra-ink);
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-bold);
  letter-spacing: .01em;
}

.ra-eyebrow i {
  color: var(--ra-red-600);
}

.ra-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  font-size: var(--ra-fs-label);
  font-weight: var(--ra-fw-medium);
  color: var(--ra-ink-soft);
}

.ra-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.ra-hero-trust i {
  color: var(--ra-green-700);
}

/* ---- Cartão do bilhete verde no Hero (referência Super Troika) ---- */
.ra-hero-ticket {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(145deg, var(--ra-green-700) 0%, var(--ra-green-800) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(20, 13, 9, .18);
  transform: rotate(-1.5deg);
  transition: transform var(--ra-transition), box-shadow var(--ra-transition);
  position: relative;
}

.ra-hero-ticket:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 24px 48px rgba(20, 13, 9, .22);
}

.ra-ticket-badge {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: var(--ra-radius-pill);
  padding: .25rem .65rem;
  font-size: .7rem;
  font-weight: var(--ra-fw-semibold);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ra-ticket-accent {
  background: var(--ra-orange-500);
  color: var(--ra-ink);
  border-radius: var(--ra-radius-pill);
  padding: .22rem .6rem;
  font-size: .7rem;
  font-weight: var(--ra-fw-bold);
}

.ra-ticket-divider {
  position: relative;
  border-top: 1px dashed rgba(255, 255, 255, .28);
  margin: 1rem 0;
}

.ra-ticket-divider::before,
.ra-ticket-divider::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ra-blue-100);
}

.ra-ticket-divider::before { left: -28px; }
.ra-ticket-divider::after  { right: -28px; }

.ra-ticket-route {
  font-size: 1.05rem;
  font-weight: var(--ra-fw-bold);
  letter-spacing: -0.02em;
}

.ra-ticket-sub {
  font-size: .75rem;
  color: rgba(255, 255, 255, .75);
}

/* ---- Card flutuante de busca ---- */
.search-float {
  background: var(--ra-surface);
  border-radius: var(--ra-radius-lg);
  box-shadow: var(--ra-shadow-lg);
  border: 1px solid rgba(20, 13, 9, .06);
}

.ra-input-icon {
  position: relative;
}

.ra-input-icon > i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ra-text-muted);
  pointer-events: none;
  font-size: .95rem;
  z-index: 2;
}

.ra-input-icon .form-control {
  padding-left: 2.35rem;
}

.ra-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.ra-chip-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .7rem;
  border-radius: var(--ra-radius-pill);
  background: rgba(253, 253, 253, .82);
  border: 1px solid rgba(20, 13, 9, .1);
  color: var(--ra-ink-soft);
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-semibold);
  text-decoration: none;
  transition: all var(--ra-transition);
}

.ra-chip-link:hover {
  background: var(--ra-surface);
  border-color: var(--ra-red-600);
  color: var(--ra-red-600);
  transform: translateY(-1px);
}

/* ---- Cartões e superfícies ---- */
.card {
  background: var(--ra-surface);
  border-radius: var(--ra-radius-lg);
  border: 1px solid var(--ra-border-subtle);
}

.shadow-sm { box-shadow: var(--ra-shadow-sm) !important; }
.shadow    { box-shadow: var(--ra-shadow-md) !important; }

.card-header {
  background: var(--ra-surface);
  border-bottom: 1px solid var(--ra-border-subtle);
}

/* Card de viagem */
.ra-trip-card {
  transition: transform var(--ra-transition), box-shadow var(--ra-transition), border-color var(--ra-transition);
  border: 1px solid var(--ra-border-subtle) !important;
  box-shadow: var(--ra-shadow-sm);
}

.ra-trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ra-shadow-hover);
  border-color: rgba(200, 56, 48, .28) !important;
}

.ra-trip-title {
  font-size: 1.05rem;
  font-weight: var(--ra-fw-bold);
  color: var(--ra-ink);
  line-height: 1.32;
}

.ra-trip-meta {
  background-color: var(--ra-surface-muted);
  border: 1px solid var(--ra-border-subtle);
  border-radius: var(--ra-radius-md);
  padding: .65rem .8rem;
}

.ra-time-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border-radius: var(--ra-radius-xs);
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  color: var(--ra-ink);
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-bold);
  font-variant-numeric: tabular-nums;
}

.ra-price-caption {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ra-text-muted);
  font-weight: var(--ra-fw-semibold);
}

.ra-price-value {
  font-size: 1.25rem;
  font-weight: var(--ra-fw-extrabold);
  color: var(--ra-ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Card clicável de rota */
.ra-route-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.05rem;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border-subtle);
  border-radius: var(--ra-radius-lg);
  box-shadow: var(--ra-shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: transform var(--ra-transition), box-shadow var(--ra-transition), border-color var(--ra-transition);
}

.ra-route-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ra-shadow-md);
  border-color: rgba(200, 56, 48, .3);
  color: inherit;
}

.ra-route-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ra-red-50);
  color: var(--ra-red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ra-route-arrow {
  color: var(--ra-ink-muted);
  transition: transform var(--ra-transition), color var(--ra-transition);
}

.ra-route-card:hover .ra-route-arrow {
  transform: translateX(3px);
  color: var(--ra-red-600);
}

/* Faixa "Como funciona" */
.ra-step-card {
  background: var(--ra-surface);
  border: 1px solid var(--ra-border-subtle);
  border-radius: var(--ra-radius-lg);
  padding: 1.25rem;
  height: 100%;
  box-shadow: var(--ra-shadow-xs);
}

.ra-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.ra-step-icon--red    { background: var(--ra-red-50);    color: var(--ra-red-600); }
.ra-step-icon--orange { background: var(--ra-orange-50); color: var(--ra-orange-700); }
.ra-step-icon--green  { background: var(--ra-green-50);  color: var(--ra-green-700); }

/* ---- Chips e Badges semânticos ---- */
.badge.bg-secondary {
  background: var(--ra-surface-muted) !important;
  color: var(--ra-ink-soft) !important;
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius-sm);
  font-weight: var(--ra-fw-semibold);
}

.ra-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .62rem;
  border-radius: var(--ra-radius-pill);
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-semibold);
  line-height: 1.1;
}

.ra-badge-coop {
  background: var(--ra-surface-muted);
  color: var(--ra-ink-soft);
  border: 1px solid var(--ra-border);
}

.ra-badge-vehicle {
  background: var(--ra-blue-50);
  color: var(--ra-blue-700);
  border: 1px solid var(--ra-blue-100);
}

.ra-badge-success {
  background: var(--ra-green-50);
  color: var(--ra-green-700);
  border: 1px solid rgba(32, 96, 80, .18);
}

.ra-badge-warning {
  background: var(--ra-orange-50);
  color: var(--ra-orange-700);
  border: 1px solid rgba(248, 144, 80, .35);
}

.ra-badge-danger {
  background: var(--ra-red-50);
  color: var(--ra-red-700);
  border: 1px solid var(--ra-red-100);
}

.ra-badge-info {
  background: var(--ra-blue-50);
  color: var(--ra-blue-700);
  border: 1px solid var(--ra-blue-100);
}

.ra-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ---- Cabeçalhos de página e Breadcrumbs ---- */
.ra-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  margin-bottom: .75rem;
}

.breadcrumb-item a {
  color: var(--ra-text-muted);
  text-decoration: none;
  font-weight: var(--ra-fw-medium);
}

.breadcrumb-item a:hover {
  color: var(--ra-red-600);
}

.breadcrumb-item.active {
  color: var(--ra-ink);
  font-weight: var(--ra-fw-semibold);
}

/* ---- Formulários ---- */
.form-label {
  font-size: var(--ra-fs-label);
  font-weight: var(--ra-fw-semibold);
  color: var(--ra-ink-soft);
  margin-bottom: .35rem;
}

.form-control,
.form-select {
  background-color: var(--ra-surface);
  border: 1px solid var(--ra-border-input);
  border-radius: var(--ra-radius-md);
  color: var(--ra-ink);
  padding: .58rem .85rem;
  font-size: var(--ra-fs-body);
  transition: border-color var(--ra-transition), box-shadow var(--ra-transition);
}

.form-control-sm,
.form-select-sm {
  padding: .42rem .7rem;
  font-size: var(--ra-fs-label);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--ra-ink-muted);
}

.form-control::placeholder {
  color: var(--ra-ink-faint);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ra-red-600);
  box-shadow: 0 0 0 .22rem rgba(200, 56, 48, .14);
}

.search-float .form-control {
  border-color: var(--ra-border-input);
}

.search-float .form-control:focus {
  border-color: var(--ra-red-600);
}

/* ---- Tabelas ---- */
.ra-table-card {
  background: var(--ra-surface);
  border: 1px solid var(--ra-border-subtle);
  border-radius: var(--ra-radius-lg);
  box-shadow: var(--ra-shadow-sm);
  overflow: hidden;
}

.table-responsive {
  border-radius: var(--ra-radius-lg);
}

.table {
  --bs-table-bg: var(--ra-surface);
  --bs-table-hover-bg: #F9FAFC;
  margin-bottom: 0;
}

.table > thead.table-light > tr > th,
.ra-table > thead > tr > th {
  background: var(--ra-surface-muted);
  color: var(--ra-text-muted);
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-bold);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--ra-border);
}

.ra-table > tbody > tr > td {
  padding: 1rem;
  border-bottom-color: var(--ra-border-subtle);
  vertical-align: middle;
}

.ra-table > tbody > tr:last-child > td {
  border-bottom: 0;
}

/* ---- Timeline vertical de paradas (detalhe_viagem) ---- */
.ra-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.ra-timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.ra-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1.25rem + 15px);
  top: 2.85rem;
  bottom: -0.25rem;
  width: 2px;
  background: var(--ra-border);
}

.ra-timeline-marker {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-bold);
  background: var(--ra-surface);
  border: 2px solid var(--ra-border-input);
  color: var(--ra-ink);
  position: relative;
  z-index: 1;
}

.ra-timeline-item:first-child .ra-timeline-marker {
  background: var(--ra-red-600);
  border-color: var(--ra-red-600);
  color: #fff;
}

.ra-timeline-item:last-child .ra-timeline-marker {
  background: var(--ra-green-700);
  border-color: var(--ra-green-700);
  color: #fff;
}

.ra-timeline-item:not(:last-child) {
  border-bottom: 1px solid var(--ra-border-subtle);
}

/* ---- Detalhes da Viagem e Reserva ---- */
.ra-detail-hero {
  background: linear-gradient(135deg, var(--ra-blue-50) 0%, #E2F1F7 100%);
  border-bottom: 1px solid var(--ra-blue-100);
  padding: 1.5rem;
  border-top-left-radius: var(--ra-radius-lg);
  border-top-right-radius: var(--ra-radius-lg);
}

.ra-info-tile {
  background: var(--ra-surface-muted);
  border: 1px solid var(--ra-border-subtle);
  border-radius: var(--ra-radius-md);
  padding: .95rem 1rem;
  height: 100%;
}

.ra-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border-subtle);
  color: var(--ra-red-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ra-booking-card {
  border-top: 4px solid var(--ra-green-700) !important;
  box-shadow: var(--ra-shadow-md);
}

.ra-booking-card--soldout {
  border-top-color: var(--ra-red-600) !important;
}

.ra-qty-stepper {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}

.ra-qty-btn {
  width: 44px;
  border-radius: var(--ra-radius-md);
  border: 1px solid var(--ra-border-input);
  background: var(--ra-surface);
  color: var(--ra-ink);
  font-weight: var(--ra-fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ra-transition);
}

.ra-qty-btn:hover {
  border-color: var(--ra-red-600);
  color: var(--ra-red-600);
  background: var(--ra-red-50);
}

.ra-total-box {
  background: var(--ra-green-50);
  border: 1px solid rgba(32, 96, 80, .2);
  border-radius: var(--ra-radius-md);
  padding: 1rem 1.15rem;
}

/* ---- Avaliação com estrelas interativas ---- */
.ra-star-picker {
  display: inline-flex;
  gap: .35rem;
  padding: .35rem .5rem;
  background: var(--ra-surface-muted);
  border: 1px solid var(--ra-border-subtle);
  border-radius: var(--ra-radius-md);
}

.ra-star-btn {
  border: 0;
  background: transparent;
  padding: .25rem .35rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ra-ink-faint);
  cursor: pointer;
  transition: transform var(--ra-transition), color var(--ra-transition);
}

.ra-star-btn:hover,
.ra-star-btn.is-active {
  color: var(--ra-orange-500);
  transform: scale(1.1);
}

/* ---- Autenticação ---- */
.ra-auth-card {
  border-radius: var(--ra-radius-xl);
  border: 1px solid var(--ra-border-subtle);
  box-shadow: var(--ra-shadow-md);
  overflow: hidden;
}

.ra-auth-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: .85rem;
}

.ra-auth-icon--brand {
  background: var(--ra-red-50);
  color: var(--ra-red-600);
}

.ra-auth-icon--success {
  background: var(--ra-green-50);
  color: var(--ra-green-700);
}

.ra-auth-icon--danger {
  background: var(--ra-red-50);
  color: var(--ra-red-700);
}

.ra-demo-box {
  background: var(--ra-orange-50);
  border: 1px solid rgba(248, 144, 80, .38);
  border-radius: var(--ra-radius-lg);
  padding: 1rem 1.15rem;
}

.ra-demo-fill {
  border: 1px solid rgba(20, 13, 9, .12);
  background: var(--ra-surface);
  color: var(--ra-ink);
  border-radius: var(--ra-radius-pill);
  padding: .25rem .65rem;
  font-size: var(--ra-fs-xs);
  font-weight: var(--ra-fw-semibold);
  cursor: pointer;
  transition: all var(--ra-transition);
}

.ra-demo-fill:hover {
  border-color: var(--ra-red-600);
  color: var(--ra-red-600);
  background: var(--ra-red-50);
}

/* ---- Rodapé ---- */
footer.ra-footer,
footer.bg-dark {
  margin-top: auto;
  background-color: var(--ra-ink) !important;
  color: rgba(255, 255, 255, .68);
}

.ra-footer a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: var(--ra-fs-label);
  font-weight: var(--ra-fw-medium);
  transition: color var(--ra-transition);
}

.ra-footer a:hover {
  color: #fff;
}

/* ---- Acessibilidade: reduzir animações quando solicitado ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Ajustes responsivos ---- */
@media (max-width: 767.98px) {
  .hero-rotaalt::before {
    width: 170px;
    height: 170px;
    right: -60px;
    bottom: -80px;
  }
  .hero-rotaalt::after {
    width: 200px;
    height: 200px;
    right: 20px;
    top: -115px;
  }
}
