.tax-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.tax-modal-content {
  background: rgb(42, 42, 42);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tax-modal-content::-webkit-scrollbar {
  width: 12px;
}

.tax-modal-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.tax-modal-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 0px;
}

.tax-modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.tax-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #444;
}

.tax-modal-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.tax-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.tax-modal-close:hover {
  opacity: 0.7;
}

.tax-modal-body {
  padding: 24px;
}

.tax-country-selection {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tax-country-selection label {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.tax-country-selection select {
  padding: 8px 12px;
  background: #333;
  border: 1px solid #555;
  border-radius: 0px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.tax-country-selection select:hover {
  background: #444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  border-color: #666;
}

.tax-country-selection select:focus {
  outline: 2px solid #fff;
  outline-offset: -2px;
  background: #444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.tax-country-selection select option {
  background: #333;
  color: white;
  padding: 8px;
}

.tax-country-selection select option:hover,
.tax-country-selection select option:checked:hover,
.tax-country-selection select option:focus,
.tax-country-selection select option:checked,
.tax-country-selection select option:selected {
  background: #555;
  color: white;
}

.tax-generate-btn,
.tax-download-btn,
.tax-back-btn {
  padding: 12px 24px;
  border: 1px solid rgb(68, 68, 68);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tax-generate-btn {
  background: rgb(34, 34, 34);
  color: white;
  width: 100%;
}

.tax-generate-btn:hover {
  background: rgb(68, 68, 68);
}

.tax-generate-btn:disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.tax-report-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tax-report-content {
  background: white;
  color: #222;
  padding: 40px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.tax-report-content h3 {
  margin: 0 0 20px 0;
  color: #222;
  font-size: 20px;
  border-bottom: 2px solid #b9b9b9;
  padding-bottom: 10px;
}

.tax-report-content .report-section {
  margin-bottom: 24px;
}

.tax-report-content .report-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.tax-report-content .report-value {
  color: #222;
  margin-bottom: 12px;
}

.tax-report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.tax-report-content table th,
.tax-report-content table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.tax-report-content table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #222;
}

.tax-report-content table tr:last-child td {
  border-bottom: none;
}

.tax-report-content .report-total {
  font-size: 18px;
  font-weight: 700;
  color: #4a9eff;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #ddd;
}

.tax-report-content .report-note {
  margin-top: 24px;
  padding: 16px;
  background: #fff8e1;
  font-size: 13px;
  color: #666;
}

.tax-report-actions {
  display: flex;
  gap: 12px;
}

.tax-download-btn {
  flex: 1;
  background: rgb(34, 34, 34);
  color: white;
  border: 1px solid rgb(68, 68, 68);
}

.tax-download-btn:hover {
  background: rgb(68, 68, 68);
}

.tax-back-btn {
  background: rgb(34, 34, 34);
  border: 1px solid rgb(68, 68, 68);
  color: white;
}

.tax-back-btn:hover {
  background: rgb(68, 68, 68);
}

.earnings-tax-report {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #444;
}

.tax-report-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgb(34, 34, 34);
  color: white;
  border: 1px solid rgb(68, 68, 68);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}

.tax-report-btn:hover {
  background: rgb(68, 68, 68);
}

.tax-report-btn svg {
  flex-shrink: 0;
}

.tax-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  color: white;
}

.tax-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #444;
  border-top-color: #4a9eff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .tax-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .tax-modal-header {
    padding: 16px;
  }

  .tax-modal-header h2 {
    font-size: 20px;
  }

  .tax-modal-body {
    padding: 16px;
  }

  .tax-report-content {
    padding: 24px;
  }

  .tax-report-actions {
    flex-direction: column;
  }
}
