:root {
      --night: #11163a;
      --night-card: #1c2358;
      --dawn: #ff6f3c;
      --sun: #ffbe3d;
      --sand: #f5ecdc;
      --ink: #191c2e;
      --card: #fffdfa;
      --border: #dfd5c2;
      --muted: #575249;
      --muted-foreground: #6b665c;
      --disp: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
      --gradient-dawn-sky: linear-gradient(180deg, #11163a 0%, #252b66 45%, #b34a2e 78%, #ff6f3c 90%, #ffbe3d 100%);
      --shadow-glow: 0 18px 40px -16px rgba(255, 190, 61, 0.65);
      color-scheme: light;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--sand);
      color: var(--ink);
      font-family: var(--disp);
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    .wrap {
      max-width: 1140px;
      margin: 0 auto;
      padding-left: max(16px, env(safe-area-inset-left, 0px));
      padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    /* TYPOGRAPHY UTILS */
    .font-display {
      font-family: var(--disp);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.015em;
      line-height: 1.05;
    }
    .label-mono {
      font-family: var(--mono);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 600;
      display: inline-block;
    }

    .text-sun { color: var(--sun); }
    .text-dawn { color: var(--dawn); }
    .text-sand { color: var(--sand); }
    .text-ink { color: var(--ink); }
    .text-sand\/80 { color: rgba(245, 236, 220, 0.8); }
    .text-sand\/75 { color: rgba(245, 236, 220, 0.75); }
    .text-sand\/50 { color: rgba(245, 236, 220, 0.5); }
    .text-muted-foreground { color: var(--muted-foreground); }

    /* ANIMATIONS & KEYFRAMES */
    @keyframes rise {
      0% { opacity: 0; transform: translateY(32px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .animate-rise { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
    .animate-rise-delay-1 { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
    .animate-rise-delay-2 { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    [data-view]:not([hidden]) {
      animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    /* HEADER */
    .top {
      position: sticky;
      top: 0;
      z-index: 40;
      border-bottom: 1px solid rgba(245, 236, 220, 0.12);
      background: rgba(17, 22, 58, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: var(--sand);
    }
    .top .wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-top: 12px;
      padding-bottom: 12px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--sand);
    }
    .brand-icon {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 8px;
      background: var(--sun);
      color: var(--ink);
    }
    .brand-text {
      font-family: var(--disp);
      font-weight: 900;
      font-size: 0.95rem;
      line-height: 1.1;
      text-transform: uppercase;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    nav a {
      font-family: var(--mono);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 8px 12px;
      border-radius: 6px;
      color: rgba(245, 236, 220, 0.8);
      text-decoration: none;
      transition: color 0.15s, background 0.15s;
    }
    nav a:hover { color: var(--sun); }
    nav a[aria-current="page"] {
      color: var(--sun);
      font-weight: 700;
    }

    /* BUTTONS */
    .btn-glow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 6px;
      padding: 13px 22px;
      font-family: var(--disp);
      font-weight: 800;
      font-size: 0.88rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      text-decoration: none;
      background: var(--sun);
      color: var(--ink);
      border: 0;
      box-shadow: var(--shadow-glow);
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-glow:hover {
      transform: translateY(-2px);
      box-shadow: 0 22px 45px -14px rgba(255, 190, 61, 0.85);
    }
    .btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 6px;
      padding: 12px 20px;
      font-family: var(--disp);
      font-weight: 800;
      font-size: 0.88rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      text-decoration: none;
      background: transparent;
      color: var(--sand);
      border: 2px solid rgba(245, 236, 220, 0.4);
      transition: all 0.2s;
    }
    .btn-outline:hover {
      border-color: var(--sun);
      color: var(--sun);
      transform: translateY(-2px);
    }

    /* HERO SECTION */
    .hero {
      position: relative;
      overflow: hidden;
      background: var(--gradient-dawn-sky);
      color: var(--sand);
    }
    .sun-blur {
      position: absolute;
      left: 50%;
      top: 52%;
      width: 180px;
      height: 180px;
      transform: translateX(-50%);
      border-radius: 9999px;
      background: rgba(255, 190, 61, 0.7);
      filter: blur(44px);
      pointer-events: none;
    }
    .hero-silhouette {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 45%;
      pointer-events: none;
    }
    .hero .wrap {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 85vh;
      padding-top: 56px;
      padding-bottom: 160px;
    }
    .hero h1 {
      font-size: clamp(3.2rem, 9vw, 5.8rem);
      margin-top: 16px;
      margin-bottom: 0;
      color: #fff;
    }

    /* PLACA HERO */
    .plate-card {
      display: inline-flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 8px;
      border: 3px solid var(--ink);
      background: var(--card);
      color: var(--ink);
      box-shadow: var(--shadow-glow);
      width: 230px;
      margin-top: 40px;
      align-self: flex-start;
    }
    .plate-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--night-card);
      padding: 5px 12px;
      color: var(--sand);
    }
    .plate-top .label-mono { font-size: 0.65rem; }
    .plate-content {
      padding: 12px 14px;
      text-align: center;
    }
    .plate-number {
      font-family: var(--disp);
      font-weight: 900;
      font-size: 2.2rem;
      line-height: 1;
      letter-spacing: 0.05em;
    }
    .plate-sub {
      margin-top: 4px;
      font-size: 0.68rem;
      color: var(--muted-foreground);
    }

    /* ROAD STRIPE */
    .road-stripe {
      height: 10px;
      background: repeating-linear-gradient(90deg, var(--sun) 0 48px, transparent 48px 84px);
    }

    /* STATS / NUMEROS */
    .nums-row {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      background: var(--night);
      color: var(--sand);
      padding-block: 40px;
    }
    .nums-item {
      padding: 8px 16px;
      border-right: 1px solid rgba(245, 236, 220, 0.1);
    }
    .nums-item:last-child { border-right: none; }
    .nums-item .val {
      font-family: var(--disp);
      font-weight: 900;
      font-size: clamp(1.8rem, 3.5vw, 2.5rem);
      color: var(--sun);
      line-height: 1;
    }

    /* CARDS */
    section { padding-block: 80px; }
    .card-interactive {
      border: 2px solid var(--border);
      background: var(--card);
      border-radius: 12px;
      padding: 24px;
      transition: all 0.25s ease;
      display: flex;
      flex-direction: column;
    }
    .card-interactive:hover {
      border-color: var(--dawn);
      transform: translateY(-3px);
      box-shadow: 0 12px 28px -8px rgba(17, 22, 58, 0.08);
    }
    .card-icon-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .card-title {
      font-size: 1.25rem;
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    /* PASSOS (COMO FUNCIONA) */
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 16px;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .step-card {
      background: var(--night-card);
      border: 1px solid rgba(245, 236, 220, 0.15);
      border-radius: 10px;
      padding: 24px 18px;
      position: relative;
    }
    .step-num {
      font-family: var(--disp);
      font-weight: 900;
      font-size: 3rem;
      line-height: 1;
      color: var(--dawn);
    }
    .step-title {
      font-size: 1.05rem;
      font-weight: 800;
      text-transform: uppercase;
      margin-top: 12px;
      margin-bottom: 6px;
      color: #fff;
    }
    .step-card p {
      color: rgba(245, 236, 220, 0.75);
      font-size: 0.92rem;
    }

    /* FORMULÁRIO */
    .form-box {
      border: 2px solid var(--border);
      border-radius: 14px;
      background: var(--card);
      padding: 24px;
      display: grid;
      gap: 16px;
    }
    .input-field {
      width: 100%;
      border-radius: 8px;
      border: 2px solid var(--border);
      background: var(--card);
      padding: 12px 14px;
      font-size: 1rem;
      color: var(--ink);
      transition: border-color 0.2s;
    }
    .input-field:focus {
      outline: none;
      border-color: var(--dawn);
    }
    .row2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    /* SELETOR DE INTERESSE EM CARDS (SEM EMOJIS) */
    .interest-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-top: 6px;
    }
    .interest-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      border: 2px solid var(--border);
      border-radius: 8px;
      padding: 12px 6px;
      cursor: pointer;
      background: var(--card);
      transition: all 0.15s ease;
      user-select: none;
    }
    .interest-card:hover { border-color: var(--dawn); }
    .interest-card svg {
      width: 28px;
      height: 28px;
      color: var(--ink);
      transition: color 0.15s;
    }
    .interest-card span {
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .interest-card:has(input:checked) {
      border-color: var(--dawn);
      background: rgba(255, 111, 60, 0.08);
    }
    .interest-card:has(input:checked) svg {
      color: var(--dawn);
    }

    /* MAPA ARQUITETONICO */
    .map-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
      border: 2px solid var(--ink);
      border-radius: 14px;
      background: var(--card);
      padding: 12px;
    }
    .map-cell {
      border-radius: 6px;
      padding: 14px 10px;
      font-size: 0.82rem;
      font-weight: 800;
      text-transform: uppercase;
      text-align: center;
      display: grid;
      place-items: center;
      letter-spacing: 0.02em;
    }

    /* FAQ ACCORDION */
    details {
      border-bottom: 2px solid var(--border);
      padding: 18px 0;
    }
    summary {
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1.15rem;
      font-weight: 800;
      user-select: none;
    }
    summary::-webkit-details-marker { display: none; }
    summary span.icon {
      font-family: var(--mono);
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--dawn);
      transition: transform 0.2s;
    }
    details[open] summary span.icon { transform: rotate(45deg); }
    details p {
      margin-top: 10px;
      color: var(--muted-foreground);
      font-size: 1rem;
      line-height: 1.55;
    }

    /* TICKET DIGITAL PASS - CARD PREMIUM */
    .pass-card {
      background: linear-gradient(165deg, #161c4a 0%, #11163a 50%, #0d1130 100%);
      color: var(--sand);
      border-radius: 18px;
      border: 1.5px solid rgba(255, 190, 61, 0.45);
      box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.65), 0 0 30px -10px rgba(255, 111, 60, 0.2);
      overflow: hidden;
      max-width: 560px;
      margin: 0 auto;
    }
    .pass-header {
      background: rgba(10, 14, 38, 0.6);
      padding: 16px 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255, 190, 61, 0.25);
    }
    .pass-sparkle-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--sun);
      box-shadow: 0 0 8px var(--sun);
      display: inline-block;
    }
    .pass-body {
      padding: 24px 22px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: center;
    }
    .pass-greeting {
      font-size: 1.35rem;
      font-weight: 800;
      color: #fff;
      margin: 0 0 4px 0;
      line-height: 1.2;
    }
    .pass-sub {
      font-size: 0.88rem;
      color: rgba(245, 236, 220, 0.75);
      margin: 0 0 16px 0;
    }
    .pass-code-box {
      background: rgba(10, 14, 38, 0.75);
      border: 1.5px dashed var(--sun);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }
    .pass-code-label {
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(245, 236, 220, 0.8);
      width: 100%;
    }
    .pass-code-val {
      font-family: var(--mono);
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--sun);
      letter-spacing: 0.06em;
    }
    .btn-copy {
      background: rgba(255, 190, 61, 0.15);
      color: var(--sun);
      border: 1px solid rgba(255, 190, 61, 0.6);
      border-radius: 6px;
      padding: 5px 10px;
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      transition: all 0.15s ease;
    }
    .btn-copy:hover {
      background: var(--dawn);
      color: #fff;
      border-color: var(--dawn);
    }
    .pass-meta {
      display: grid;
      gap: 6px;
      font-size: 0.88rem;
      color: rgba(245, 236, 220, 0.85);
      margin-bottom: 14px;
    }
    .meta-label {
      font-family: var(--mono);
      font-size: 0.72rem;
      text-transform: uppercase;
      color: rgba(245, 236, 220, 0.55);
      margin-right: 4px;
    }
    .pass-privacy-pill {
      font-size: 0.75rem;
      color: rgba(245, 236, 220, 0.7);
      padding: 4px 10px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      display: inline-block;
    }
    .pass-qr-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .pass-qr-frame {
      background: #ffffff;
      padding: 8px;
      border-radius: 12px;
      border: 2px solid rgba(255, 190, 61, 0.4);
      display: grid;
      place-items: center;
      box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
    }
    .pass-qr-img {
      display: block;
      width: 150px;
      height: 150px;
    }
    .pass-qr-caption {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: rgba(245, 236, 220, 0.7);
      text-align: center;
    }
    .pass-perforation {
      position: relative;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .perf-line {
      width: 100%;
      border-top: 2px dashed rgba(255, 190, 61, 0.3);
    }
    .perf-notch {
      position: absolute;
      width: 24px;
      height: 24px;
      background: #fffdfa;
      border-radius: 50%;
      top: 50%;
      transform: translateY(-50%);
    }
    .notch-left { left: -12px; }
    .notch-right { right: -12px; }
    .pass-footer {
      padding: 18px 22px 22px;
      background: rgba(10, 14, 38, 0.4);
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      display: grid;
      gap: 12px;
    }
    .pass-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .pass-btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      font-weight: 700;
      font-size: 0.88rem;
      border-radius: 10px;
      cursor: pointer;
      flex: 1 1 180px;
    }
    .pass-btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 11px 16px;
      font-weight: 600;
      font-size: 0.85rem;
      border-radius: 10px;
      cursor: pointer;
      flex: 1 1 110px;
    }
    .pass-notice {
      font-size: 0.78rem;
      color: rgba(245, 236, 220, 0.65);
      line-height: 1.4;
      margin: 0;
    }

    @media (max-width: 640px) {
      .pass-body { grid-template-columns: 1fr; }
      .pass-qr-wrap { justify-self: center; }
    }

    /* Print uses the exact same card DOM and colors as the approved screen. */
    .pass-info { min-width: 0; }
    .pass-meta strong, .pass-greeting { overflow-wrap: anywhere; }
    #printTicketRoot { display: none; }
    @media print {
      @page { size: A4 portrait; margin: 12mm; }
      body.printing-ticket { margin:0!important; padding:0!important; height:auto!important; min-height:0!important; overflow:visible!important; background:#fff!important; }
      body.printing-ticket > * { display:none!important; }
      body.printing-ticket > #printTicketRoot { display:block!important; width:100%; margin:0; padding:0; }
      #printTicketRoot, #printTicketRoot * { -webkit-print-color-adjust:exact!important; print-color-adjust:exact!important; }
      #printTicketRoot .pass-card { width:100%; max-width:184mm; margin:0 auto; box-shadow:none; break-inside:avoid; page-break-inside:avoid; }
      #printTicketRoot .pass-body { grid-template-columns:minmax(0,1fr) auto; }
      #printTicketRoot .pass-actions, #printTicketRoot .btn-copy { display:none!important; }
    }
  
    /* ================= MODAL FLUTUANTE DE INGRESSO ================= */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: rgba(10, 14, 38, 0.78);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
    }

    .modal-overlay.is-open {
      opacity: 1;
      visibility: visible;
    }

    .modal-backdrop {
      position: absolute;
      inset: 0;
      cursor: pointer;
    }

    .modal-dialog {
      position: relative;
      background: #fffdfa;
      color: var(--ink);
      border-radius: 24px;
      border: 1px solid rgba(255, 190, 61, 0.35);
      box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 0 0 35px -10px rgba(255, 111, 60, 0.25);
      width: 100%;
      max-width: 620px;
      max-height: calc(100vh - 40px);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: scale(0.92) translateY(16px);
      opacity: 0;
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
      z-index: 1;
    }

    .modal-overlay.is-open .modal-dialog {
      transform: scale(1) translateY(0);
      opacity: 1;
    }

    .modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid rgba(223, 213, 194, 0.8);
      background: #f7f2e8;
      color: var(--muted-foreground);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      transition: all 0.2s ease;
    }

    .modal-close:hover {
      background: var(--sand);
      color: var(--ink);
      transform: scale(1.08) rotate(90deg);
    }

    .modal-body {
      padding: 36px 32px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .modal-header {
      margin-bottom: 24px;
      padding-right: 32px;
    }

    .modal-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 111, 60, 0.1);
      color: var(--dawn);
      font-family: var(--mono);
      font-size: 0.76rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 5px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 111, 60, 0.25);
      margin-bottom: 10px;
    }

    .modal-title {
      font-size: clamp(1.8rem, 4vw, 2.3rem);
      color: var(--ink);
      line-height: 1.15;
    }

    .modal-subtitle {
      color: var(--muted-foreground);
      font-size: 0.95rem;
      margin-top: 8px;
      line-height: 1.45;
    }

    /* Floating bottom bar for mobile / quick access */
    .mobile-floating-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 999;
      background: rgba(17, 22, 58, 0.94);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-top: 1px solid rgba(255, 190, 61, 0.25);
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }

    @media (min-width: 768px) {
      .mobile-floating-bar {
        display: none;
      }
    }

.sponsor-contact-message { font-size:.85rem;line-height:1.6;max-width:30rem;margin:10px 0; }
