/* ── Layout base ────────────────────────────────── */
    body {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── Logo ───────────────────────────────────────── */
    /* Largura explícita necessária: div vazio dentro de flex colapsaria para 0 */
    #logo {
      width: 320px;
      height: 100px;
      flex-shrink: 0;
      margin-bottom: 0.25rem;
    }

    /* ── Hero ───────────────────────────────────────── */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 2.5rem 1rem 3rem;
      animation: fadeInUp 0.6s ease both;
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .hero-tagline {
      font-size: 1.5rem;
      color: rgba(255, 255, 255, 0.92);
      margin-bottom: 0.3rem;
      text-align: center;
      letter-spacing: 0.01em;
    }

    .hero-sub {
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.55);
      margin-bottom: 2.5rem;
      text-align: center;
    }

    /* ── Glass menu (lista principal) ───────────────── */
    .glass-menu {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 20px;
      overflow: hidden;
      width: 100%;
      max-width: 400px;
      animation: fadeInUp 0.5s ease both;
      animation-delay: 0.15s;
    }

    .gmi {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.1rem 1.25rem;
      color: white;
      text-decoration: none;
      transition: background 0.2s;
    }

    .gmi:hover  { background: rgba(255, 255, 255, 0.10); color: white; text-decoration: none; }
    .gmi:active { background: rgba(255, 255, 255, 0.15); }

    .gmi-icon {
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .gmi-primary .gmi-icon { background: rgba(238, 198, 137, 0.18); color: #EEC689; }
    .gmi-search  .gmi-icon { background: rgba(147, 197, 253, 0.18); color: #93c5fd; }
    .gmi-team    .gmi-icon { background: rgba(134, 239, 172, 0.18); color: #86efac; }

    .gmi-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
    }

    .gmi-label {
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    .gmi-desc {
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.5);
      line-height: 1.4;
    }

    .gmi-arrow {
      color: rgba(255, 255, 255, 0.25);
      font-size: 0.85rem;
      transition: transform 0.2s, color 0.2s;
    }

    .gmi:hover .gmi-arrow {
      transform: translateX(4px);
      color: rgba(255, 255, 255, 0.55);
    }

    .gmi-divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.07);
      margin: 0 1.25rem;
      border: none;
    }

    /* ── Modais: efeito glass ───────────────────────── */
    .modal-content {
      background: rgba(18, 4, 4, 0.6);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 18px;
      overflow: hidden;
      color: white;
    }

    .modal-header-brand {
      background: rgba(0, 0, 0, 0.25);
      border-bottom: 1px solid rgba(238, 198, 137, 0.2);
      padding: 1.25rem 1.5rem 1rem;
    }

    .modal-header-brand .modal-title { color: #EEC689; }

    .modal-header-brand .btn-close {
      filter: invert(1) grayscale(1) brightness(1.5);
    }

    .modal-subtitle {
      color: rgba(238, 198, 137, 0.6);
      font-size: 0.75rem;
    }

    .modal-body   { padding: 1.25rem 1.5rem 0.5rem; background: transparent; }
    .modal-footer { padding: 0.75rem 1.5rem 1.25rem; background: transparent; border-top: 1px solid rgba(255, 255, 255, 0.08); }

    /* text-muted sobre fundo escuro */
    .modal-content .text-muted { color: rgba(255, 255, 255, 0.45) !important; }

    /* ── Formulários sobre fundo escuro ─────────────── */
    .form-control,
    .form-select {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.18);
      color: white;
    }

    .form-control::placeholder { color: rgba(255, 255, 255, 0.35); }

    .form-control:focus,
    .form-select:focus {
      background: rgba(255, 255, 255, 0.15);
      border-color: #EEC689;
      color: white;
      box-shadow: 0 0 0 0.2rem rgba(238, 198, 137, 0.18);
    }

    .form-floating > label {
      color: rgba(255, 255, 255, 0.5);
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
      color: #EEC689;
    }

    .input-group-text {
      min-width: 108px;
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.18);
      color: rgba(255, 255, 255, 0.75);
      font-weight: 500;
    }

    .form-section-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255, 255, 255, 0.4);
      margin-bottom: 0.65rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #descricao { height: 115px; resize: vertical; }

    .char-counter {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.4);
      text-align: right;
      margin-bottom: 0.75rem;
    }

    /* ── Upload de arquivo ──────────────────────────── */
    .file-upload-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      padding: 1.1rem 1rem;
      background: rgba(255, 255, 255, 0.06);
      border: 2px dashed rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      text-align: center;
    }

    .file-upload-area:hover {
      border-color: #EEC689;
      background: rgba(238, 198, 137, 0.08);
    }

    .file-upload-area input[type="file"] { display: none; }

    .upload-icon {
      font-size: 1.75rem;
      color: rgba(255, 255, 255, 0.4);
      transition: color 0.2s;
    }

    .file-upload-area:hover .upload-icon { color: #c8963a; }

    #file-name-display {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.75);
      word-break: break-all;
    }

    .file-upload-area .text-muted { color: rgba(255, 255, 255, 0.35) !important; }

    /* ── Botões ─────────────────────────────────────── */
    .btn-brand {
      background: linear-gradient(135deg, #EEC689, #c8963a);
      border: none;
      color: #1a0000;
      font-weight: 600;
      transition: filter 0.2s, transform 0.15s;
    }

    .btn-brand:hover {
      filter: brightness(1.1);
      color: #1a0000;
      transform: translateY(-1px);
    }

    .btn-brand:disabled { opacity: 0.65; transform: none; }

    .btn-outline-secondary {
      border-color: rgba(255, 255, 255, 0.25);
      color: rgba(255, 255, 255, 0.7);
    }

    .btn-outline-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.4);
      color: white;
    }

    /* ── Modal Sucesso ──────────────────────────────── */
    .success-gif { width: 80px; margin-bottom: 1rem; }

    .success-number-box {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 0.75rem;
      padding: 0.75rem 1.5rem;
      display: inline-block;
    }

    .success-ticket-number {
      font-size: 2rem;
      font-weight: 800;
      color: #EEC689;
      letter-spacing: 0.05em;
    }

    /* ── Modal Equipe — cards ──────────────────────── */
    .team-card {
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 1.5rem 1.25rem 1.25rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      height: 100%;
      transition: background 0.2s, border-color 0.2s;
    }

    .team-card:hover {
      background: rgba(255, 255, 255, 0.11);
    }

    .team-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top;
      margin-bottom: 0.75rem;
      border: 2px solid rgba(255, 255, 255, 0.15);
    }

    .team-name {
      font-size: 1rem;
      font-weight: 700;
      color: white;
      margin-bottom: 0.4rem;
    }

    .team-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      padding: 0.2rem 0.65rem;
      border-radius: 20px;
      margin-bottom: 0.75rem;
    }

    .team-desc {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.55);
      line-height: 1.5;
      margin: 0;
    }

    /* Variantes de cor por função */
    .team-coordenador { border-top: 3px solid #EEC689; }
    .badge-coordenador { background: rgba(238, 198, 137, 0.18); color: #EEC689; }

    .team-seguranca { border-top: 3px solid #f87171; }
    .badge-seguranca { background: rgba(248, 113, 113, 0.18); color: #f87171; }

    .team-sistemas { border-top: 3px solid #93c5fd; }
    .badge-sistemas { background: rgba(147, 197, 253, 0.18); color: #93c5fd; }

    .team-atendimento { border-top: 3px solid #86efac; }
    .badge-atendimento { background: rgba(134, 239, 172, 0.18); color: #86efac; }

    /* ── Inline error ───────────────────────────────── */
    #erro-consultar       { display: none; }
    #erro-consultar.show  { display: block; }

    /* ── Responsivo mobile ──────────────────────────── */
    @media (max-width: 640px) {
      #logo {
        width: 220px;
        height: 75px;
        background-size: 200px !important;
      }

      .hero         { padding: 1.5rem 1rem 2rem; }
      .hero-tagline { font-size: 1.2rem; }
      .hero-sub     { font-size: 0.85rem; margin-bottom: 1.75rem; }

      .glass-menu { max-width: 100%; }
      .gmi-desc   { display: none; }

      .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
      }

      .input-group-text { min-width: 90px; font-size: 0.85rem; }
    }

    @media (max-width: 400px) {
      #logo {
        width: 180px;
        height: 65px;
        background-size: 160px !important;
      }
    }