/* Research Modal Styles */
.research-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .research-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .research-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
  }
  
  .modal-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .research-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }
  
  .detail-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 120px;
  }
  
  .detail-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    flex: 1;
  }
  
  .research-description-full {
    margin-bottom: 2rem;
  }
  
  .research-description-full h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .research-description-full p {
    color: var(--text-secondary);
    line-height: 1.8;
  }
  
  .research-keywords h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .keyword-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
  }
  
  /* Custom Amount Modal Styles */
  .custom-amount-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .custom-amount-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
  }
  
  .modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
  }
  
  .custom-input {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: inherit;
  }
  
  .custom-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  }
  
  .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  /* Bank Details Modal */
  .bank-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .bank-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .bank-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
  }
  
  .bank-details h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .bank-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }
  
  .bank-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 120px;
  }
  
  .bank-value {
    color: var(--text-primary);
    font-family: monospace;
    font-weight: 600;
    text-align: right;
    flex: 1;
  }
  
  /* Mobile Responsive for Modals */
  @media (max-width: 768px) {
    .research-modal-content,
    .modal-content,
    .bank-details {
      width: 95%;
      max-height: 95vh;
    }
  
    .modal-header {
      padding: 1.5rem;
    }
  
    .modal-header h2 {
      font-size: 1.2rem;
    }
  
    .modal-body {
      padding: 1.5rem;
    }
  
    .detail-row,
    .bank-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  
    .detail-label,
    .bank-label {
      min-width: auto;
      font-size: 0.9rem;
    }
  
    .detail-value,
    .bank-value {
      text-align: left;
    }
  
    .modal-footer,
    .modal-actions {
      flex-direction: column;
      padding: 1.5rem;
    }
  
    .bank-details {
      padding: 1.5rem;
    }
  
    .bank-details h3 {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .research-modal-content,
    .modal-content,
    .bank-details {
      width: 98%;
      max-height: 98vh;
    }
  
    .modal-header,
    .modal-body,
    .modal-footer {
      padding: 1rem;
    }
  
    .bank-details {
      padding: 1rem;
    }
  
    .modal-actions {
      padding: 1rem;
    }
  }
  
  /* Toast Notification Styles */
  .toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-weight: 500;
    max-width: 300px;
    word-wrap: break-word;
  }
  
  .toast-notification.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Success toast */
  .toast-notification.success {
    background: #10b981;
  }
  
  /* Error toast */
  .toast-notification.error {
    background: #ef4444;
  }
  
  /* Warning toast */
  .toast-notification.warning {
    background: #f59e0b;
  }
  
  /* Info toast */
  .toast-notification.info {
    background: var(--accent-color);
  }
  
  /* Scrollbar Styles for Modals */
  .research-modal-content::-webkit-scrollbar,
  .modal-content::-webkit-scrollbar,
  .bank-details::-webkit-scrollbar {
    width: 8px;
  }
  
  .research-modal-content::-webkit-scrollbar-track,
  .modal-content::-webkit-scrollbar-track,
  .bank-details::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 4px;
  }
  
  .research-modal-content::-webkit-scrollbar-thumb,
  .modal-content::-webkit-scrollbar-thumb,
  .bank-details::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
  }
  
  .research-modal-content::-webkit-scrollbar-thumb:hover,
  .modal-content::-webkit-scrollbar-thumb:hover,
  .bank-details::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
  }
  
  /* Animation for modal content */
  .research-modal-content,
  .modal-content,
  .bank-details {
    animation: modalSlideIn 0.3s ease-out;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: scale(0.9) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  /* Focus styles for accessibility */
  .modal-close:focus,
  .custom-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Button styles in modals */
  .modal-footer .btn,
  .modal-actions .btn {
    min-width: 120px;
    justify-content: center;
  }
  
  /* Loading state for buttons in modals */
  .modal-footer .btn:disabled,
  .modal-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .modal-footer .btn:disabled:hover,
  .modal-actions .btn:disabled:hover {
    transform: none;
  }
  