  :root {
    --primary-color: #058ed9;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --bs-primary: #1c75bc;
    --bs-primary-rgb: 16, 188, 105;
    --bs-secondary: #2b2b2b;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success: #28a745 !important;
    --bs-success-rgb: 40, 167, 69;
    --bs-info: #17a2b8;
    --bs-info-rgb: 23, 162, 184;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light: #f8f9fa;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark: #343a40;
    --bs-dark-rgb: 52, 58, 64;
    --bs-custom-color1: #ff6b6b;
    --bs-custom-color1-rgb: 255, 107, 107;
    --bs-custom-color2: #4ecdc4;
    --bs-custom-color2-rgb: 78, 205, 196;
  }

  body {
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
  }

  .survey-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    min-height: 100vh;
  }

  .bg-primary {
    background-color: var(--bs-primary) !important;
  }

  .text-primary {
    color: var(--bs-primary) !important;
  }

  .btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
  }

  .btn-primary:hover {
    background-color: #0ea458 !important;
    border-color: #0c8d4b !important;
  }

  .btn-outline-primary {
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
  }

  .bg-custom-color1 {
    background-color: var(--bs-custom-color1) !important;
  }

  .text-custom-color1 {
    color: var(--bs-custom-color1) !important;
  }

  .btn-custom-color1 {
    background-color: var(--bs-custom-color1) !important;
    border-color: var(--bs-custom-color1) !important;
    color: white !important;
  }

  .btn-custom-color1:hover {
    background-color: #ff5252 !important;
    border-color: #ff3939 !important;
  }

  .bg-custom-color2 {
    background-color: var(--bs-custom-color2) !important;
  }

  .text-custom-color2 {
    color: var(--bs-custom-color2) !important;
  }

  .btn-custom-color2 {
    background-color: var(--bs-custom-color2) !important;
    border-color: var(--bs-custom-color2) !important;
    color: white !important;
  }

  .btn-custom-color2:hover {
    background-color: #3dbeb6 !important;
    border-color: #36b1a9 !important;
  }

  .text-blue {
    color: #0000FF !important;
  }


  footer a {
    color: var(--primary-color);
    transition: color 0.3s ease;
  }

  footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
  }

  .connect-container {
    max-width: 440px;
    margin: 0 auto;
  }

  .firm-logo {
    width: 150px;
    object-fit: contain;
    max-height: 100px;
    max-width: 100%;
    transition: transform 0.3s ease;
  }

  .firm-logo:hover {
    transform: scale(1.05);
  }

  .connect-footer {
    background-color: rgba(0, 0, 0, 0.03);
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
  }

  .connect-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .device-badge {
    font-size: 0.65rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .method-button {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  .method-button:hover,
  .method-button.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
  }

  .input-group {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
  }

  .connect-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #6c757d;
  }

  .alert {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .alert-success {
    color: var(--bs-success);
  }

  .alert-danger {
    color: var(--bs-danger);
  }

  .form-control {
    border-left: none;
    padding: 0.6rem 0.75rem;
  }

  .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }

  .btn-connect {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
  }

  .btn-connect:hover {
    color: white;
    transform: translateY(-2px);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .connect-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6c757d;
    margin: 20px 0;
  }

  .connect-divider::before,
  .connect-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
  }

  .connect-divider::before {
    margin-right: 10px;
  }

  .connect-divider::after {
    margin-left: 10px;
  }

  /* Login method buttons */
  .btn-outline-primary {
    border-width: 2px;
    transition: all 0.3s ease;
  }

  .btn-outline-primary:hover {
    background-color: rgba(123, 252, 1, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .btn-outline-secondary {
    border-width: 2px;
    color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
  }

  .btn-outline-secondary:hover {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .btn-success {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    transition: all 0.3s ease;
  }

  .btn-success:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .method-button.active {
    color: white !important;
    background-color: var(--bs-primary);
    font-weight: bold;
  }

  .form-input-sm {
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  @media (min-width: 576px) {
    .container {
      max-width: 540px;
    }
  }

  @media (min-width: 768px) {
    .container {
      max-width: 720px;
    }
  }

  .btn.active,
  .btn:active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.18);
  }

  .go_back_button {
    position: absolute;
    top: 10px;
    left: 5px;
    cursor: pointer;
    border: 1px solid var(--bs-secondary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }

  .go_back_button:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .go_back_button i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
  }

  /*  Survey Modal */
  .survey-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 30, 0.92);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
  }

  .survey-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    max-width: 680px;
    width: 95vw;
    max-height: 95vh;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: surveyModalIn 0.25s cubic-bezier(.4, 2, .6, 1) both;
  }

  @keyframes surveyModalIn {
    from {
      transform: scale(0.95) translateY(40px);
      opacity: 0;
    }

    to {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }

  .survey-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1200;
    transition: background 0.2s;
  }

  .survey-modal-close:hover {
    background: #d32f2f;
  }

  .survey-modal-scroll {
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem 2rem;
    max-height: 95vh;
  }



  .emoji-selected,
  .emoji-btn:focus {
    outline: none;
    border: 3px solid var(--bs-primary) !important;
    background: var(--bs-primary-light) !important;
    box-shadow: 0 0 0 0.12rem rgba(34, 197, 94, 0.13);
    transform: scale(1.20);
    border-radius: 50%;
  }

  .emoji-selected.negative,
  .emoji-btn.negative:focus {
    border: 3px solid var(--bs-danger) !important;
    background: var(--bs-danger-light) !important;
    box-shadow: 0 0 0 0.12rem rgba(239, 68, 68, 0.13);
  }

  .emoji-btn .emoji-checkmark.negative {
    color: var(--bs-danger);
    border: 1.5px solid var(--bs-danger);
  }

  .survey-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 4px 24px 0 rgba(80, 100, 120, 0.09);
    background: #fff;
    padding: 1rem 2rem;
  }

  .survey-container h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
  }

  .survey-container p.text-muted {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .survey-container label.form-label {
    font-weight: 600;
    color: #374151;
  }

  .survey-container .form-control,
  .survey-container .form-select {
    border-radius: 0.5rem;
    min-height: 44px;
    font-size: 1rem;
  }

  .survey-container .form-check-label {
    font-size: 1rem;
    color: #495057;
  }

  .survey-container .form-check-input:disabled {
    background-color: #e9ecef;
  }

  .survey-container .mb-4 {
    margin-bottom: 2rem !important;
  }

  .survey-container .text-danger {
    margin-left: 0.25rem;
  }

  .survey-container .btn-primary:disabled {
    background: #a7f3d0;
  }

  .emoji-btn {
    border: none;
    background: none;
    transition: transform 0.1s;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    padding: 0;
  }

  .emoji-btn .emoji-checkmark {
    color: var(--bs-primary);
    border: 1.5px solid var(--bs-primary);
  }

  .btn.active.negative,
  .btn:active.negative {
    background-color: var(--bs-danger) !important;
    color: #fff !important;
    border-color: var(--bs-danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.18);
  }

  .survey-container .btn-primary {
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
  }

  .survey-question-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
    padding: 2rem 1rem;
    transition: box-shadow 0.2s;
  }

  .survey-question-card:focus-within,
  .survey-question-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  }

  .survey-footer {
    font-size: 12px;
    color: #718096;
  }

  @media (max-width: 600px) {

    .survey-card {
      border-radius: 0.5rem;
    }

    .survey-container h1 {
      font-size: 1.4rem;
    }

    .survey-modal-content {
      padding: 0;
      border-radius: 0;
      width: 100vw;
      height: 100vh;
      max-width: 100vw;
      max-height: 100vh;
    }

    .survey-modal-scroll {
      padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }

    .survey-modal-close {
      top: 10px;
      right: 10px;
      width: 32px;
      height: 32px;
      font-size: 1.2rem;
    }
  }