:root {
  --dgd-bg: #ffffff;
  --dgd-border: #e5e7eb;
  --dgd-text: #1f2937;
  --dgd-text-light: #6b7280;
  --dgd-accent: #f59e0b;
  --dgd-accent-dark: #dc2626;
  --dgd-success: #10b981;
}

#dinh-gia-demo {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 500;
  max-width: 360px;
}

.dgd-panel {
  background: var(--dgd-bg);
  border: 1px solid var(--dgd-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.dgd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.dgd-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.dgd-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dgd-body {
  padding: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

.dgd-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dgd-text);
}

.dgd-select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--dgd-border);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dgd-select:focus {
  outline: none;
  border-color: var(--dgd-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.dgd-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--dgd-accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.dgd-btn:hover:not(:disabled) {
  background: var(--dgd-accent-dark);
}

.dgd-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.dgd-progress {
  margin-top: 12px;
  padding: 12px;
  background: #fef3c7;
  border-radius: 4px;
}

.dgd-progress-title {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--dgd-text);
  font-size: 13px;
}

.dgd-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dgd-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dgd-text-light);
}

.dgd-step-emoji {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dgd-step-name {
  flex: 1;
}

.dgd-result {
  margin-top: 12px;
  padding: 12px;
  background: #ecfdf5;
  border-radius: 4px;
}

.dgd-result-title {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--dgd-text);
  font-size: 13px;
}

.dgd-result-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.dgd-result-item {
  font-size: 13px;
  color: var(--dgd-text-light);
  line-height: 1.5;
}

.dgd-result-item strong {
  color: var(--dgd-text);
  font-weight: 600;
}

.dgd-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.dgd-mode-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--dgd-success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dgd-btn-report {
  padding: 8px 12px;
  background: var(--dgd-success);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.dgd-btn-report:hover {
  background: #059669;
}

.dgd-error {
  margin-top: 12px;
  padding: 12px;
  background: #fee2e2;
  border-radius: 4px;
}

.dgd-error-msg {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.5;
}

.dgd-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s;
}

.dgd-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 640px) {
  #dinh-gia-demo {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
