   :root {
    --primary-blue: #1B4965;
    --secondary-blue: #5FA8D3;
    --white: #fdfaeb;
    --black: #000000;
    --red: #E63946;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

  body {
    background-color: var(--white);
    min-height: 100vh;
  }

  header {
    background-color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 7px 22px -5px rgba(0, 0, 0, 0.271);
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo-img {
    width: 90px;
    object-fit: cover;
  }

  .saldo {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
  }

  /* ==========================================================================
     !Loading Styles
     ========================================================================== */
  .loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 2rem;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  .loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
  }

  .loading-text {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  /* ==========================================================================
     !Modal Styles
     ========================================================================== */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 500px;
  }

  /* Money Modal */
  .money-modal-content {
    animation: slideIn 0.3s ease-out;
  }

  .check-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    color: var(--primary-blue);
  }

  .money-text {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--primary-blue);
  }

  .amount {
    color: var(--red);
    font-weight: bold;
  }

  /* Welcome Modal */
  .welcome-image {
    width: 200px;
    margin-bottom: 1rem;
  }

  .modal-content h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .modal-content p {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .bonus-amount {
    color: var(--red);
    font-size: 3rem;
    font-weight: bold;
    margin: 1.5rem 0;
  }

  .instructions {
    color: var(--primary-blue);
    font-weight: bold;
  }

  .btn-start {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    margin-top: 1.5rem;
  }

  .btn-start.iniciando {
    background-color: #333;
    cursor: not-allowed;
  }

  /* ==========================================================================
     !Confetti Canvas
     ========================================================================== */
  #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
  }

  /* ==========================================================================
    ! Main Content & Company Card
     ========================================================================== */
  main {
    max-width: 500px;
    margin: 1rem auto;
    padding: 0 1rem;
    width: 100%;
  }

  .company-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  .company-name {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--primary-blue);
    text-align: center;
    font-weight: bold;
  }

  .evaluation {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    display: block;
    margin: 1.5rem auto;
    text-align: center;
    width: fit-content;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .question {
    font-size: 1.8rem;
    margin: 2rem 0;
    text-align: center;
    color: #333;
    font-weight: 500;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 2rem 0;
  }

  .btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
  }

  .btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .btn-yes {
    background-color: var(--primary-blue);
    color: white;
  }

  .btn-maybe {
    background-color: var(--red);
    color: white;
  }

  .btn-no {
    background-color: var(--black);
    color: white;
  }

  .progress {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .progress-text {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
  }

  .progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
  }

  /* ==========================================================================
     !Completion Screen
     ========================================================================== */
  .completion-card {
    text-align: center;
    padding: 2rem;
  }

  .completion-title {
    color: var(--red);
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .completion-text {
    color: var(--primary-blue);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .completion-balance {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 2rem 0;
  }

  .btn-pix {
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.5rem;
  }

  /* ==========================================================================
     !PIX Registration
     ========================================================================== */
  .pix-registration-card {
    text-align: center;
    padding: 2rem !important;
  }

  .pix-title {
    color: #E63946;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .pix-subtitle {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .pix-info-box {
    background-color: #f8f9fe;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
  }

  .pix-info-box p {
    color: var(--primary-blue);
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .pix-info-box p:last-child {
    margin-bottom: 0;
  }

  .pix-register-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 2rem 0;
  }

  .pix-select-text {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .pix-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .pix-option {
    background-color: #fff;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .pix-option svg {
    opacity: 0;
    transition: opacity 0.2s;
  }

  .pix-option.active {
    background-color: var(--primary-blue);
    color: white;
  }

  .pix-option.active svg {
    opacity: 1;
  }

  .pix-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .btn-validate-pix {
    background-color: #ccc;
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: not-allowed;
  }

  /* ==========================================================================
     !Exchange Page
     ========================================================================== */
  .exchange-page {
    max-width: 500px;
    width: 100%;
    border-radius: 20px;
    padding: 2rem;
  }

  .exchange-title {
    color: var(--red);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .exchange-subtitle {
    color: var(--primary-blue);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
  }

  .exchange-center {
    padding: 1rem;
  }

  .exchange-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
  }

  .exchange-rate {
    background-color: var(--primary-blue);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
  }

  .exchange-rate h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .rate {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
  }

  .update-time {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .balance-box {
    background-color: white;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .balance-box.converted-value {
    border-color: var(--red);
    animation: fadeIn 0.5s ease-out;
  }

  .balance-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  .converted-value .balance-header {
    color: var(--red);
  }

  .flag-icon {
    width: 24px;
    height: auto;
  }

  .currency {
    margin-left: auto;
    background: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
  }

  .balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
  }

  .balance-amount.converted {
    color: var(--red);
  }

  .btn-convert {
    background-color: var(--primary-blue);
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }

  .btn-withdraw {
    background-color: var(--red);
    animation: fadeIn 0.5s ease-out;
  }

  .convert-instruction {
    text-align: center;
    color: var(--text-gray);
    font-size: 1rem;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideIn {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* ==========================================================================
     !Responsive Styles
     ========================================================================== */

  /* Até 768px */
  @media (max-width: 768px) {
    header {
      padding: 1rem;
    }
    .logo-img {
      width: 100px;
    }
    .saldo {
      font-size: 1rem;
      padding: 0.6rem 1.2rem;
    }
    .company-name {
      font-size: 2rem;
    }
    .question {
      font-size: 1.3rem;
    }
    .btn {
      font-size: 1.1rem;
    }
    .modal-content h1 {
      font-size: 1.8rem;
    }
    .modal-content p {
      font-size: 1.1rem;
    }
    .bonus-amount {
      font-size: 2.5rem;
    }
    .loading-text {
      font-size: 1.2rem;
    }
    .money-text {
      font-size: 1.3rem;
    }
    .completion-title {
      font-size: 2.5rem;
    }
    .completion-text {
      font-size: 1.3rem;
    }
    .btn-pix {
      font-size: 1.3rem;
    }
    .exchange-title {
      font-size: 1.8rem;
    }
    .exchange-subtitle {
      font-size: 1.3rem;
    }
    .exchange-icon {
      font-size: 1.5rem;
    }
    .rate {
      font-size: 1.8rem;
    }
    .balance-amount {
      font-size: 2rem;
    }
    .btn-convert {
      font-size: 1.2rem;
    }
  }

  /* Até 480px */
  @media (max-width: 480px) {
    .company-card {
      padding: 1rem;
    }
    .evaluation {
      font-size: 1rem;
      padding: 0.6rem 1.5rem;
    }
    .progress-text {
      font-size: 1rem;
    }
    .money-text {
      font-size: 1.1rem;
    }
    .completion-text {
      font-size: 1.1rem;
    }
    .btn-pix {
      font-size: 1.2rem;
    }
    .exchange-page {
      padding: 0.3rem;
    }
    .exchange-title {
      font-size: 1.5rem;
    }
    .exchange-subtitle {
      font-size: 1rem;
    }
    .exchange-icon {
      font-size: 1.3rem;
    }
    .rate {
      font-size: 1.5rem;
    }
    .balance-amount {
      font-size: 1.8rem;
    }
    .btn-convert {
      font-size: 1.1rem;
    }
  }

  /* PIX Registration Responsive */
  @media (max-width: 768px) {
    .pix-title {
      font-size: 2rem;
    }
    .pix-subtitle,
    .pix-select-text {
      font-size: 1.3rem;
    }
    .pix-register-title {
      font-size: 1.5rem;
    }
    .pix-info-box p {
      font-size: 1.1rem;
    }
    .pix-option {
      padding: 0.8rem 1.5rem;
      font-size: 1.1rem;
    }
  }

  @media (max-width: 480px) {
    .pix-registration-card {
      padding: 1rem !important;
    }
    .pix-title {
      font-size: 1.8rem;
    }
    .pix-subtitle,
    .pix-select-text {
      font-size: 1.2rem;
    }
    .pix-register-title {
      font-size: 1.3rem;
    }
    .pix-info-box {
      padding: 1rem;
    }
    .pix-info-box p {
      font-size: 1rem;
    }
    .pix-option {
      padding: 0.7rem 1.2rem;
      font-size: 1rem;
    }
  }

  #pix-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  #pix-success-modal .modal-content {
    background-color: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 90%;
    width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
  }

  #pix-success-modal .check-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background-color: #1B4965;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #pix-success-modal .check-icon svg {
    width: 60px;
    height: 60px;
    color: white;
  }

  #pix-success-modal h1 {
    color: #1B4965;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
  }

  #pix-success-modal .loading-text {
    color: #1B4965;
    font-size: 1.5rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .red-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #ffefef;
    border-top: 3px solid #E63946;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes modalSlideIn {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    #pix-success-modal .modal-content {
      padding: 2rem;
    }

    #pix-success-modal h1 {
      font-size: 1.8rem;
    }

    #pix-success-modal .loading-text {
      font-size: 1.3rem;
    }

    #pix-success-modal .check-icon {
      width: 100px;
      height: 100px;
    }

    #pix-success-modal .check-icon svg {
      width: 50px;
      height: 50px;
    }
  }