.divCookie{position: fixed;min-width: 100%;z-index: 100000;font-size: 13px;letter-spacing: 0px;text-align: center;background-color: #00034c;bottom: 0;left: 0;}.spanTexto{color: #FFF;text-align: center;vertical-align: middle;display: inline-block;padding: 15px 20px;}.spanButton{display: inline-block;padding: 15px 0px;}.btn-ok{background-color:#86ad1a;color:#000;}.divChat{margin:0; padding:0; text-align: center;height:70px;width:70px;position:fixed;bottom:20px;right:20px;border-radius: 50%;cursor: pointer;z-index: 10;}.divChat img{border: 0px; vertical-align: baseline;height:60px;width:60px;margin-top: 10px;}.rotate{-webkit-transition-duration: 0.8s;-moz-transition-duration: 0.8s;-o-transition-duration: 0.8s;transition-duration: 0.8s;-webkit-transition-property: -webkit-transform;-moz-transition-property: -moz-transform;-o-transition-property: -o-transform;transition-property: transform;overflow:hidden;-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg); -o-transform:rotate(360deg);} *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --surface: #111318;
    --surface2: #181c24;
    --border: #1e2330;
    --accent: #95c11f;
    --accent2: #608510;
    --text: #282828;
    --muted: #6b7280;
    --gold: #749810;
    --silver: #b0b8c8;
    --bronze: #5a7511;
  }

  body {
    background-image: url(https://www.federalonline.com.br/imagemsite/3950/Background.jpg);
    background-size: 100%;
    background-attachment: fixed;
    color: var(--text);
    font-family: 'degular', sans-serif;
    min-height: 80vh;
  }
  
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,200,66,0.12) 0%, transparent 70%),
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        rgba(255,255,255,0.02) 40px
      ),
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 39px,
        rgba(255,255,255,0.02) 40px
      );
    pointer-events: none;
  }

  .hero-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  max-width: 860px;
  }

  .hero-topic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(95, 95, 95, 0.318);
    backdrop-filter: blur(8px);
  }

  .hero-topic.is-active {
    background: #95c11f;
    color: #282828;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  .hero-topic.is-active:hover {
    background: #86ad1c;
    transform: translateY(-2px);
    text-decoration: none;
  }

  .hero-topic.is-locked {
    background: rgba(255, 255, 255, 0.378);
    color: #6464648a;
    border-color: rgba(40, 40, 40, 0.08);
    cursor: not-allowed;
    pointer-events: none;
  }

  .hero .heroButton{
    background-color: #0026ff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0px 16px rgba(45, 45, 45, 0.475);
    animation: fadeInUp 1s ease 0.6s forwards, buttonFloat 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    margin-top: 3%;
  }

  .hero .heroButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
  }

  .hero .heroButton:hover::before {
    left: 100%;
  }

  @keyframes buttonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }

  .hero-content a:hover{
    background-color: #051a91;
    transform: scale(1.05);
    box-shadow: 0 0px 40px rgb(0, 34, 206);
  }

  @keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-200px) translateX(-50px);
    }
    75% {
        transform: translateY(-100px) translateX(-100px);
    }
  }

  .buttonDoc{
        font-family: 'degular', sans-serif;
      padding: 14px 28px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      animation: fadeInUp 1s ease 0.6s forwards, buttonFloat 3.1s ease-in-out infinite;
      background: #0026ff;
      color: white;
      cursor: pointer;
      transition: 0.3s;
  }
  
  .buttonDoc:hover{
      background: #1677e6;
  }

  .btn-video {
    font-family: 'degular', sans-serif;
      padding: 14px 28px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      animation: fadeInUp 1s ease 0.6s forwards, buttonFloat 3s ease-in-out infinite;
      background: #0026ff;
      color: white;
      cursor: pointer;
      transition: 0.3s;
    }

    .btn-video:hover {
      background: #1677e6;
    }

    .modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      justify-content: center;
      align-items: center;
      z-index: 999;
      padding: 20px;
    }

    .modal-content {
      position: relative;
      width: 100%;
      max-width: 800px;
      background: #000;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }

    .modal-content video,
    .modal-content iframe {
      width: 100%;
      height: 450px;
      display: block;
      border: none;
    }

    .close {
      position: absolute;
      top: 20px;
      right: 15px;
      font-size: 28px;
      color: white;
      background: rgba(0, 0, 0, 0.729);
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      cursor: pointer;
      z-index: 2;
    }

    @media (max-width: 768px) {
      .modal-content video,
      .modal-content iframe {
        height: 220px;
      }
    }
    
  .hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #51720a;
    border: 1px solid #51720a;
    padding: 5px 16px;
    border-radius: 2px;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
  }

  .hero img {
    width: 40vw;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  .hero h1 span {
    color: var(--accent);
    display: block;
  }

  .hero-sub {
    margin-top: 24px;
    font-size: 16px;
    color: var(--muted);
    font-weight: 300;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeUp 0.6s 0.2s ease both;
  }

  .cursos-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
    animation: fadeUp 0.6s 0.3s ease both;
  }

  .cursos-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
  }

  .cursos-grid {
    display: none;
  }

  .cursos-select-wrap {
    display: block;
    position: relative;
  }

  .cursos-select {
    width: 55%;
    appearance: none;
    -webkit-appearance: none;
    font-family: 'degular', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #f1f1f1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 44px 14px 16px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.18s;
  }

  .cursos-select:focus {
    border-color: var(--accent);
  }

  .cursos-select option {
    background: var(--surface);
    color: #f1f1f1;
  }

  .cursos-select-arrow {
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 20px;
    color: var(--accent);
    pointer-events: none;
    line-height: 1;
  }

  .curso-btn {
    font-family: 'degular';
    background: var(--surface);
    border: 1px solid var(--border);
    color: #f1f1f1;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .curso-btn:hover {
    border-color: #486b10e9;
    color: #486b10e9;
    background: rgba(231, 231, 231, 0.748);
  }

  .curso-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #282828;
    font-weight: 600;
  }

  .divider {
    max-width: 1100px;
    margin: 0 auto 48px;
    padding: 0 24px;
  }

  .divider hr {
    border: none;
    height: 1px;
    background: var(--border);
  }

   .table-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 100px;
    display: none;
    animation: fadeUp 0.4s ease both;
  }

  .table-section.visible {
    display: block;
  }

  .table-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
  }

  .table-title {
    font-weight: 800;
    font-size: 36px;
    color: var(--text);
  }

  .table-title span {
    color: var(--accent);
  }

  .table-count {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    margin-bottom: 4px;
  }

  .table-wrap {
    overflow-x: auto;
    border: 1px solid #28282883;
    border-radius: 6px;
    background-color: #f1f1f18a;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    backdrop-filter: blur(10px);
  }

  thead tr {
    background: #282828;
    border-bottom: 1px solid var(--border);
  }

  thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f1f1f1;
    white-space: nowrap;
  }

  thead th:last-child { 
    text-align: right; 
    }

  thead th:first-child { 
    width: 64px; 
    text-align: center; 
    }

  thead th:nth-child(2) { 
    width: 100px; 
    }

  tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
  }

  tbody tr:last-child { 
    border-bottom: none; 
}

  tbody tr:hover { 
    background: rgba(255,255,255,0.025); 
}

  tbody td {
    padding: 14px 20px;
    color: var(--text);
    font-weight: 400;
  }

  tbody td:first-child {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.05em;
  }

  tbody td:last-child {
    text-align: right;
    font-weight: 600;
    font-size: 15px;
  }

  .pos-1 { 
    color: var(--gold); 
}

  .pos-2 { 
    color: var(--silver); 
}

  .pos-3 { 
    color: var(--bronze); 
}

  .pos-other { 
    font-size: 14px;
    color: var(--muted); 
}

  .medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
  }

  .medal-1 { 
    background: #79a71cca; 
    border: 1px solid #adf54244; 
    color: #f1f1f1; 
  }

  .medal-2 { 
    background: #97c53b85; 
    border: 1px solid #b0b8c84d; 
    color: #5a7511; 
  }

  .medal-3 { 
    background: #91a0726e; 
    border: 1px solid #b0b8c84d; 
    color: var(--bronze); 
  }

  .id-chip {
    display: inline-block;
    background: #cfcfcf7a;
    border: 1px solid #28282836;
    border-radius: 3px;
    padding: 3px 9px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #282828;
  }

  .nota {
    font-size: 16px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
  }

  .score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
  }

  .score-val {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    min-width: 52px;
    text-align: right;
    color: #282828;
  }

  .score-bar {
    display: none;
    width: 80px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .score-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    transition: width 0.6s ease;
  }

  /* ADD ROW */
  .add-row-wrap {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn-add {
    background: transparent;
    font-family: 'degular';
    border: 1px dashed rgba(88, 105, 5, 0.35);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.18s;
  }

  .btn-add:hover {
    background: rgba(240, 240, 240, 0.07);
    border-style: solid;
  }

  .btn-clear {
    background: #f1f1f1;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.18s;
  }

  .btn-clear:hover {
    background-color: #95c11f;
    border-color: #353733;
    color: #a3e02a;
  }

  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
  }

  .modal-overlay.open { 
    display: flex; 
  }

  .modal {
    background: #28282842;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px;
    width: 100%;
    animation: fadeUp 0.25s ease;
    max-height: 100vh;
    overflow-y: auto;
  }

  .modal h3 {
    font-size: 18px;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    color: #f1f1f1;
  }

  .modal p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .modal p strong {
    color: var(--accent);
    font-weight: 600;
  }

  .format-hint {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    font-size: 12px;
  }

  .hint-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
  }

  .hint-row:last-child { 
    border-bottom: none; 
}

  .hint-header {
    background: var(--surface2);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .hint-row:not(.hint-header) { 
    color: #f1f1f1a0;     
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
  }

  .form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 4px;
    outline: none;
    resize: vertical;
    transition: border-color 0.15s;
    line-height: 1.6;
  }

  .form-group textarea:focus {
    border-color: rgba(144, 245, 66, 0.5);
  }

  .form-group textarea::placeholder {
    color: var(--muted);
    opacity: 0.5;
  }

  /* PREVIEW */
  .parse-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .preview-error { color: #417110; }

  .preview-rows {
    max-height: 140px;
    overflow-y: auto;
    font-size: 12px;
 }

  .preview-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr;
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    align-items: center;
  }

  .preview-row:last-child { border-bottom: none; }

  .preview-row.ok { color: var(--text); }
  .preview-row.err { color: #e05c2a; background: rgba(224,92,42,0.05); }

  .preview-row .badge-ok {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #54de4a;
    margin-right: 6px;
  }

  .preview-row .badge-err {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #a6e02a;
    margin-right: 6px;
  }

  .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }

  .btn-confirm {
    flex: 1;
    background: var(--accent);
    border: none;
    color: #0a0c10;
    font-size: 14px;
    font-weight: 600;
    padding: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
  }

  .btn-confirm:hover { 
    opacity: 0.88; 
}

  .btn-confirm:disabled { 
    opacity: 0.35; 
    cursor: not-allowed; 
}

  .btn-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    padding: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .btn-cancel:hover {
    border-color: var(--text);
    color: var(--text);
  }

  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 14px;
  }

  .empty-state svg {
    display: block;
    margin: 0 auto 16px;
    opacity: 0.3;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .atenção{
    display: flex;
    justify-content: center;
    padding: 5%;
    margin-top: -10%;
    font-size: 16px;
    font-weight: 500;
  }

@media (max-width: 768px) {

    body {
      background-image: url(https://www.federalonline.com.br/imagemsite/3970/Background-Responsivo.jpg);
      background-size: 130%;
      background-attachment: fixed;
    }

    .hero img {
      width: 75vw;
      margin-top: 10%;
      margin-bottom: 10%;
    }

    .hero-sub {
      line-height: 1.4;
    }

    .cursos-select-wrap {
      display: block;
    }

    .cursos-grid {
      display: none;
    }

    .hero-topics {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 22px;
      width: 80%;
    }

    .hero-topic {
      min-width: calc(50% - 8px);
      padding: 9px 12px;
      font-size: 12px;
    }

    .table-title {
      font-size: 24px;
    }

    .hero-button{
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  }