/* ===============================
   Global Reset/Setup (Wizard-specific)
   =============================== */
   .wizard-page html,
   .wizard-page body {
     margin: 0;
     padding: 0;
     background-color: rgba(241, 241, 241, 0.3);
     font-family: 'Inter', sans-serif;
   }
   
   .wizard-page #bgVideo {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: -1;
   }
   
   /* ===============================
      Wizard Section
      =============================== */
   .wizard-page .wizard-section {
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 4rem 1rem;
     text-align: center;
   }
   
   .wizard-page .wizard-section h2 {
     font-size: 2rem;
     margin-bottom: 2rem;
     color: #333;
   }
   
   /* ===============================
      Step Indicator - Modernized
      =============================== */
   .wizard-page .wizard-steps-indicator {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 4rem;
     margin-bottom: 2rem;
     position: relative;
   }
   
   .wizard-page .step-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     position: relative;
   }
   
   .wizard-page .step-item::after {
     content: '';
     position: absolute;
     top: 17.5px; /* half of the circle’s 35px height */
     transform: translateY(-50%);
     width: 3.9rem; /* extended line length */
     right: -4.3rem; /* offset for centering between steps */
     height: 2px;
     background-color: #ddd;
   }
   
   .wizard-page .step-item:last-child::after {
     display: none;
   }
   
   .wizard-page .step-circle {
     width: 35px;
     height: 35px;
     background-color: #ddd;
     color: #fff;
     border-radius: 50%;
     line-height: 35px;
     text-align: center;
     font-weight: 600;
     transition: background-color 0.3s, transform 0.3s;
     margin-bottom: 0.25rem;
   }
   
   .wizard-page .step-label {
     font-size: 0.85rem;
     color: #666;
   }
   
   .wizard-page .step-item.active .step-circle {
     background-color: #0d47a1; /* brand color */
     transform: scale(1.05);
   }
   
   .wizard-page .step-item.active ~ .step-item .step-circle {
     background-color: #ddd;
   }
   
   /* ===============================
      Main Wizard Container
      =============================== */
   .wizard-page .wizard-container {
     background-color: rgba(255, 255, 255, 0.85);
     max-width: 720px;
     width: 100%;
     margin: 0 auto;
     padding: 2rem;
     border: 1px solid #ddd;
     border-radius: 8px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
     text-align: left;
   }
   
   /* ===============================
      Each Wizard Step
      =============================== */
   .wizard-page .wizard-step {
     margin-bottom: 2rem;
   }
   
   .wizard-page .wizard-step h3 {
     font-size: 1.25rem;
     color: #0d47a1;
     margin-bottom: 1rem;
   }
   
   /* ===============================
      Protocol Options (Flex layout)
      =============================== */
   .wizard-page .protocol-options-grid {
     display: flex;
     flex-wrap: wrap;
     gap: 1rem;
     justify-content: center;
   }
   
   .wizard-page .protocol-option {
     width: 240px;
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
     background-color: #fafafa;
     border: 1px solid #ddd;
     border-radius: 6px;
     padding: 1.25rem;
     cursor: pointer;
     transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
   }
   
   .wizard-page .option-icon {
     width: 60px;
     height: 60px;
     margin-bottom: 0.75rem;
   }
   
   .wizard-page .option-icon img {
     width: 100%;
     height: auto;
     object-fit: contain;
   }
   
   .wizard-page .option-content h4 {
     margin: 0 0 0.25rem;
     font-size: 1.1rem;
     color: #333;
   }
   
   .wizard-page .option-content p {
     margin: 0;
     font-size: 0.9rem;
     color: #666;
   }
   
   /* Hover & Selected Effects */
   .wizard-page .protocol-option:hover {
     background-color: #f0f0f0;
     transform: translateY(-2px);
     box-shadow: 0 2px 6px rgba(0,0,0,0.1);
   }
   
   .wizard-page .protocol-option.selected {
     background-color: #e8f0fe;
     border-color: #0d47a1;
     transform: translateY(-2px);
   }
   
   /* ===============================
      Form Labels & Inputs (within wizard)
      =============================== */
   .wizard-page #wizard form label {
     font-size: 1rem;
     color: #333;
     display: block;
     margin-bottom: 0.5rem;
   }
   
   .wizard-page #wizard form input[type="number"],
   .wizard-page #wizard form input[type="text"],
   .wizard-page #wizard form select {
     width: 100%;
     padding: 0.5rem;
     border: 1px solid #ddd;
     border-radius: 4px;
     margin-bottom: 1rem;
     font-size: 1rem;
   }
   
   /* ===============================
      Range Slider
      =============================== */
   .wizard-page input[type="range"] {
     -webkit-appearance: none;
     width: 100%;
     height: 8px;
     border-radius: 5px;
     background: #ddd;
     outline: none;
     margin-bottom: 1rem;
     --rangePercent: 0%;
   }
   
   .wizard-page input[type="range"]::-webkit-slider-runnable-track {
     height: 8px;
     border-radius: 5px;
     background: linear-gradient(
       to right,
       #0d47a1 0%,
       #0d47a1 var(--rangePercent, 0%),
       #ddd var(--rangePercent, 0%),
       #ddd 100%
     );
   }
   
   .wizard-page input[type="range"]::-webkit-slider-thumb {
     -webkit-appearance: none;
     width: 20px;
     height: 20px;
     border-radius: 50%;
     background: #0d47a1;
     border: 2px solid #fff;
     margin-top: -6px;
     cursor: pointer;
     box-shadow: 0 2px 4px rgba(0,0,0,0.3);
     transition: transform 0.3s ease, background 0.3s ease;
   }
   .wizard-page input[type="range"]::-webkit-slider-thumb:hover {
     transform: scale(1.1);
   }
   .wizard-page input[type="range"]:active::-webkit-slider-thumb {
     background: #1565c0;
   }
   
   .wizard-page input[type="range"]::-moz-range-track {
     height: 8px;
     border-radius: 5px;
     background: linear-gradient(
       to right,
       #0d47a1 0%,
       #0d47a1 var(--rangePercent, 0%),
       #ddd var(--rangePercent, 0%),
       #ddd 100%
     );
   }
   .wizard-page input[type="range"]::-moz-range-thumb {
     width: 20px;
     height: 20px;
     border-radius: 50%;
     background: #0d47a1;
     border: 2px solid #fff;
     cursor: pointer;
     box-shadow: 0 2px 4px rgba(0,0,0,0.3);
     transition: transform 0.3s ease, background 0.3s ease;
   }
   .wizard-page input[type="range"]::-moz-range-thumb:hover {
     transform: scale(1.1);
   }
   .wizard-page input[type="range"]:active::-moz-range-thumb {
     background: #1565c0;
   }
   
   /* ===============================
      Wizard Navigation Buttons
      =============================== */
   .wizard-page .wizard-buttons {
     display: flex;
     justify-content: flex-end;
     margin-top: 1rem;
   }
   
   .wizard-page .button {
     background-color: #0d47a1;
     color: #fff;
     border: none;
     padding: 0.75rem 1.25rem;
     border-radius: 4px;
     cursor: pointer;
     margin-left: 1rem;
     transition: background-color 0.3s;
     font-size: 0.9rem;
   }
   
   .wizard-page .button:hover {
     background-color: #1565c0;
   }
   
   .wizard-page .button.secondary {
     background-color: #aaa;
   }
   .wizard-page .button.secondary:hover {
     background-color: #888;
   }
   
   /* ===============================
      Additional Container Styles (if needed)
      =============================== */
   .wizard-page #timeBasedFields,
   .wizard-page #stakingFields {
     margin-top: 1rem;
     padding: 1rem;
     border: 1px dashed #ddd;
     border-radius: 4px;
     background-color: #fff;
   }
   
   /* ===============================
      Fade-in Animation
      =============================== */
   .wizard-page .fade-in {
     animation: fadeIn 0.4s ease forwards;
   }
   
   @keyframes fadeIn {
     from {
       opacity: 0;
       transform: translateY(5px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   /* ========== Toast Notification Styles ========== */
   .toast-container {
     position: fixed;
     bottom: 20px;
     right: 20px;
     z-index: 9999;
     display: flex;
     flex-direction: column;
     align-items: flex-end;
     gap: 0.5rem;
   }
   
   .toast-message {
     background-color: #333;
     color: #fff;
     padding: 0.75rem 1rem;
     border-radius: 6px;
     box-shadow: 0 2px 6px rgba(0,0,0,0.2);
     opacity: 0;
     animation: toastFadeIn 0.3s forwards;
     font-size: 0.9rem;
   
     /* Increase max width and allow text wrapping */
     max-width: 350px;        
     white-space: pre-wrap;    
     word-wrap: break-word;    
     overflow-wrap: anywhere;  
   }
   
   .toast-message.fade-out {
     animation: toastFadeOut 0.5s forwards;
   }
   
   @keyframes toastFadeIn {
     from {
       opacity: 0;
       transform: translateY(20px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   @keyframes toastFadeOut {
     from {
       opacity: 1;
       transform: translateY(0);
     }
     to {
       opacity: 0;
       transform: translateY(20px);
     }
   }
   
   /* ===============================
      Wallet Box
      =============================== */
   .wizard-page #walletBox {
     position: fixed;
     top: 20px;
     left: 20px;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     cursor: pointer;
     z-index: 1000;
   
     /* Tweak the padding to reduce or enlarge size as desired */
     padding: 0.4rem 0.8rem;
     border: 1px solid #0d47a1;
     background-color: #fff;
     color: #0d47a1;
     border-radius: 4px;
     font-weight: 600;
     font-size: 0.9rem;
   }
   
   .wizard-page #walletBox img.wallet-icon {
     width: 20px;
     height: 20px;
   }
   
   /* ===============================
      Disconnect Modal Overlay
      =============================== */
   .modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0,0,0,0.5);
     display: none; /* hidden by default; shown in JS */
     z-index: 2000;
     align-items: center;
     justify-content: center;
   }
   
   .modal {
     background: #fff;
     padding: 2rem;
     border-radius: 8px;
     width: 400px;
     max-width: 90%;
     box-shadow: 0 4px 12px rgba(0,0,0,0.3);
     text-align: center;
   }
   
   .modal h2 {
     margin-top: 0;
     margin-bottom: 1rem;
     color: #0d47a1;
   }
   
   .modal p {
     margin-bottom: 1rem;
     color: #333;
   }
   
   .modal-buttons {
     display: flex;
     justify-content: space-between;
     gap: 1rem;
     margin-top: 1rem;
   }
   
   /* ===============================
      Treasury Note
      =============================== */
   .treasury-note {
     margin-top: 1rem;
     font-size: 0.95rem;
     color: #555;
   }
   
   .treasury-note code {
     background: #f1f1f1;
     padding: 0.1rem 0.3rem;
     border-radius: 3px;
   }
   